0

I'm having an issue creating a query string that will allow me to add a product to the users cart. I've followed the steps mentioned in this exchange and still can't get it to work. I've been using this link to try and add the configurable product:

http://example.com/checkout/cart/add/product/6184?super_attribute[179]=7927

The configurable product ID is 6184, the supper attribute (format) is 179 and the product ID 7927.

I just want to have a link in an email blast that, once clicked, the customer will automatically have the item added to their cart. Am I doing something wrong? I've read in some places that Magento no longer supports this standard query any more. Is that the case?

1

The super_attribute part of the url should be as follows:

super_attribute[attribute_id]=attribute_option_value

In you question you say you used the product id but it should not be the product id but the attribute value selected of the simple product.

| improve this answer | |
  • Thanks David! Where would I find the "attribute value selected of the simple product." – Casey May 21 '14 at 17:28
  • How are the options shown on the page? – David Manners May 21 '14 at 17:29
  • On the back end or front end? – Casey May 21 '14 at 17:32
  • On the Front end side – David Manners May 21 '14 at 17:33
  • It's a configurable product, the customer hits "choose an option" and is given three options: an MP3, MP4, or CD. – Casey May 21 '14 at 17:35

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.