Magento and outputting of User Agent in Transactional Emails - magento

I am looking to output the "user agent" information of the client who placed an order through our Magento driven shopping cart.
I've figured out that {{var order.getRemoteIp()}} outputs the IP address of the client.
I need a way to output the user-agent of the client, as well.
Is it even possible?
Many thanks.

Looking at the code for 1.5 (as you didn't specify a version), I would say it's not possible as they have no provision for storing that info on the order or quote. You could write and extension to help you with that, but as it stands it seems to be in the 'not possible' category.

Related

Is it possible to replace the 'Add to cart' with 'ask for an estimate' button in Magento?

I'm trying to build an ecommerce website based on Magento but having a regular shop behaviour, instead of showing product prices, i want visitors to ask for an estimate for a single or several products (by adding them to a cart and then asking for a global estimate).
As a store manager, I should get these estimate requests by email along with customer information (name, email, phone, company, address .. )
Is this achievable with Magento?
If not, which cms/platform would be best suitable for such a project?
Not without some customization. You could put all your products in with a price of $0 and then change your theme so all the buttons say "request a quote" and the price isn't displayed anywhere. Then the checkout page might not ask for credit card info, but I'm not certain about that. If it did you would have to remove that part of the checkout module. Once a user finished checking out you would get an email with all their information. I don't think this is the best way to go about getting what you want though.
I don't know if other ecommerce platforms have what you are looking for. I'm not very familiar with them beyond Magento. But you could certainly use something like drupal or wordpress to build a site and have a request a quote form on it. This would only be managable with a small number of products though.
there is many extension available for this type features.link 1
link 2
Thank you guys,
This extension : link does precisely what i was looking for.

Fedex Integration Magento

I have configured FedEx to work with magento 1.7.0.2, have entered all the required parameters and have also turned on the logging. Everything seems to work fine, there are no errors anywhere and even in shipping_fedex.log file the results are successful means the quotes are returned from FedEx. But in the front end in the 'Select Shipping Method' page it's not showing up. When I choose specified countries in the configuration and put an invalid address then it shows up there with the message that it is not applicable in this situation.
Please provide me suggestion on how to solve this. Where are the FedEx code stored in magento so that i can debug them to see what the problem could be??
I came across that same situation and found out that my products were setup with weights in kilograms so some were just invalid, others would return astronomic shipping costs (like $3000 and more), when I converted the weight to pounds or fractions of pounds, it all worked fine.
You need to be sure that your shopping cart is configured correctly. Are you using the built in one page checkout module?
For general details on how to setup Magento to use FedEx webservices, please see the following URL:
http://www.cobbconsulting.net/magento-fedex-setup.html

Magento fixed shipping address on pickup

I'm in need of help to locate the place, where I can set up an fixed shipping address for pick-ups.. I want our company's adress to be printed on the order confirmation, instead of the customers own adress.
But I cannot seem to locate the right spot to do so, maby a custom deliverymethod is needed?
You can use Javascript on the server side and Observers sales_order_place_before that will check for the payment method and adjust the address based on this

How to find which admin user posted the product?

Currently Im working on a magento project and it have a plugin developed by another team. This project have merchant logins also. But the issue I am facing now is. When I add a product from merchant panel, it is not getting displayed in his product list. It is shown in admin product list. I want to track down what userid is entering corresponding to that record inserting from merchant login.
In which table I have look? After searching a lot I believe they are not storing any userid corresponding to each product. But I am not sure about that. How can I confirm that?
Please help me
Thanks in advance
There is no such functionality in magento admin, as far as I know. But you can write your own module to controller_action_predispatch or to core_abstract_model_save_after(or something like this) events. And you will be able to see who did what.
UPDATE 1
If I am right, meaning this is not implemented, then you should your own custom logging module.
Module should use Observer functionality. If you want particullarly catch the product save, then you should catch the events of product saving.
here.
To compare product data you can see an example here.
Well to get current user you can read this example.
Moreover in case it is not enough, you may watch here, something might be interestring for you.

How does Magento achieve multi-domain checkout in one single cart?

One of the great features of Magento is the ability to have several domains but with the ability to have the shopping cart contents consistent across each website. Thus reducing the need for customers to repeat the checkout process for each domain.
My question is how is this achieved from a programmer's point of view? How is the session/cookie/whatever it is able to work across different domains?
Thank you
From what I understand they put a little bit of code on the end of the URL when you jump from domain to domain telling you what your session ID is so that it can copy the information over to the new cookie that you are using.

Resources