Jump to content

Add multiple product to cart by productid and attributes


Recommended Posts

Oh, the code?

This is the js code, containing variables used in ajax-cart for the ajax request of adding a product

controller=cart&add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1') + '&id_product=' + idProduct + '&token=' + static_token + ( (parseInt(idCombination) && idCombination != null) ? '&ipa=' + parseInt(idCombination): ''),
Link to comment
Share on other sites

  • 2 months later...

Hi,

I was looking info on this topic and came across this post.

 

Could you provide an example on how to use this:

controller=cart&add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1') + '&id_product=' + idProduct + '&token=' + static_token + ( (parseInt(idCombination) && idCombination != null) ? '&ipa=' + parseInt(idCombination): ''),

What would be the full query like?

And what are the 'answers' this query would generate?

 

THANK you so much for any help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...