Update vom 05.04.2017
Another way, I went straight at a Magento 1.9.3.2 version, is as follows:
- Plant a file with the euphonious name “getformkey.phtml” im Ordner app / design / frontend /[IhrTemplate]/[IhrTheme]/template
- Insert into this file the following line
<?php echo Mage::getSingleton('core/session')->getFormKey();
- The following link can now be used, go-round place with a desired amount directly to the cart
<a href="/checkout/cart/add?product=[HERE THE PRODUCT ID]&qty=[HERE THE CROWD]&form_key={{block type="core/template" name ="getformkey" template ="getformkey.phtml"}}">Add to cart</a>
The contents of the [] (including. the brackets) needs to be replaced only by the product ID and the amount.
ATTENTION: Currently there are problems if you use Amazon Pay. In this case, the cart by clicking the link remains empty. I now have the U.S. solution used. This also works with Amazon Pay.
Update vom 30.04.2014:
Since version 1.8 no longer works the way below. Here are a few must be programmed. Another possibility, which is free and fast and works well is this little Extension von Salgua. With this extension can then use the URL item will be pushed directly into the shopping cart. Also the direct use of coupon codes is possible with this extension.
Original Article from 21.03.2013:
Are defined in the Magento store items and quantity using a link as. are from a newsletter put directly to the cart, This is quickly done, if you know how it goes. Here we use the following link:
http://[meine Domain]/checkout/cart/?add?product=[product_id]&qty=[Quantity]
This link structure works only for simple products, Configurable products not.
Example:
www.commercers-shop.com/com_de/checkout/cart/add?product=4192&qty = 1
(although there is the license domain must be entered)
Used in Magento versions 1.5.1.0 and 1.7. Ask? Suggestions? Gladly!
Hallo, can you please give me a tip, I 2 or 3 different products can send a direct link to the cart?
Thank you very much
Hi, m.E. can not add multiple products to automatically. A work-around is if necessary:. a bundle product to use: checkout/cart/add/product/[id]/?bundle_option[[option_id]][]=[selection_id]
Good luck!
Hello I added the extension but do not know how to use, it does not appear anywhere in admin but I know he is only installed not appear to me to put a product in the cart automatically, any ideas?
Hi, just use the url in the structure as above http://www.yourshop.com/checkout/cart/add?product=4192&qty=1
There is no admin / backend configuration.
I do not understand, click on the link and did not seem to make sense to me. how to use the url?
any cms page, or phtml xml?
My project: http://www.mezzbrindes.com.br
Magento 1.7.0.2
I downloaded the extension, she even appears in the backend system> advanced> disable modules but do not know how to use the url!