0

Hey I´m trying to send a URL to customers where they already have products in the shopping cart.

I used this method

mywebsite/checkout/cart/add/product/PRODUCTID/qty/NUMBER/form_key/WSFiE69HmvU854G2

And it also adds a product but somehow it doesn´t show up, see image below.

No product is in the cart

Any ideas?

5
  • What have you tried so far to debug? Are there any errors? Does it work via the normal add to cart way?
    – Sander Mangel
    Sep 7, 2015 at 9:46
  • On other pages the product add to cart works fine.
    – Klettseb
    Sep 7, 2015 at 9:51
  • I wonder if the form_key is expiring
    – Smartie
    Sep 7, 2015 at 9:57
  • Yes, ditch form_key, it's session dependent. And use uenc parameter if you need it. It contains a go back url encoded. Sep 7, 2015 at 10:17
  • I´ve tried to remove the form_key but have the same result. What is the uenc parameter?
    – Klettseb
    Sep 7, 2015 at 11:43

1 Answer 1

0
http://www.example.com/checkout/cart/add/product/PRODUCTID/

That worked for me. Sadly I can´t use the product SKU which I hoped for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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