Skip to main content

Hi,

 

I would like to pass information based on the answers of a form in order to create a cart in my CMS check-out. 

Concretely, a customer creates his own box by selecting the product they want in the box. We gather the answers and push them to create a basket for the checkout in our CMS (magento 2).
 

Thank you for your help.


Bastien

 

Hi @Bastien Happy Wednesday! Thanks for stopping by. How do you have the shopping cart on your site? For example, is it embedded on a webpage using Magento? Any further information you can provide would be handy!


Hi Liz,

Thank you for taking the time to answer. Yes it is embedded in the site but on a specific page (check-out page): https://www.slow-cosmetique.com/checkout/cart/

The idea would be to push the product in the cart based on the product ID.

 


Thanks, @Bastien ! This site looks so cute. :heart_eyes: I’m asking a few colleagues if they’ve worked in Magento before to help me answer this question a bit more in-depth. 


Hey @Bastien 
That sounds like a nice workflow.
I looked around and it seems like this is not possible since 1.8

Now you need a formkey to be able to redirect the user to that URL and add directly to their cart.

I checked two topics on StackOverflow that could be helpful

https://magento.stackexchange.com/questions/28893/magento-1-9-0-1-add-a-product-to-the-cart-by-url/58653

https://magento.stackexchange.com/questions/37779/i-want-to-use-add-to-cart-via-url-in-magento-1-8-but-dont-know-which-files-to-c

Hope it helps :)


Thank you, @picsoung !!


Thank you very much @picsoung . This helps definitively!!!. I will report it to our developpers.

 


Reply