Pass information to our CMS check-out | Community
Skip to main content
Answered

Pass information to our CMS check-out


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

 

Best answer by picsoung

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 :)

View original

6 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15008 replies
  • August 4, 2021

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!


  • Author
  • Explorer
  • 3 replies
  • August 5, 2021

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.

 


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15008 replies
  • August 5, 2021

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. 


picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • 390 replies
  • Answer
  • August 6, 2021

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 :)


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15008 replies
  • August 9, 2021

Thank you, @picsoung !!


  • Author
  • Explorer
  • 3 replies
  • August 11, 2021

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

 


Reply