I have the following problem:

I need to add products into the cart with for example:


I have tried to create a module to "catch" the GET request and to proceed some process and then to redirect the user to the checkout page

I have tried this solution:

Passing the Product id and form key but not adding to cart in magento2

But it doesn't work. Any ideas on how to make this work? My Module Structure is Gep/Cartadd

1 Answer 1


In magento 1.9.3 you can try something like this:

<?php echo Mage::helper('checkout/cart')->getAddUrl($_product) ?>   

It will give you an add url with form key, which you don't have. Then you can add for example:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.