Pass Custom Attribute Value when Adding to Cart

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • krusk
    Mini Mivite

    • Oct 2015
    • 29

    #1

    Pass Custom Attribute Value when Adding to Cart

    Hi all,

    I have a custom attribute for a product with a code of "file_name" and a Prompt of "File Name". I keep trying to add to a cart via a querystring on my Website (which works if I don't have the custom attributes), but it gives me a blank basket instead of showing the item in my basket.

    Here is my querystring to add to a cart:

    Screen=BASK&Store_Code=mystore&Product_Code=My Product&Product_Attributes[1]:code=file_name&Product_Attributes[1]:value=myfile.jpg&Attributes=Yes&Quantity=1&Action =ADPR

    Any ideas why it can't add this to the cart?

    Thanks,

    Kelly
  • krusk
    Mini Mivite

    • Oct 2015
    • 29

    #2
    Re: Pass Custom Attribute Value when Adding to Cart

    Its working now! Needed to remove the &Attributes=Yes

    Comment

    Working...
    X