3

I need to pass a custom, and dynamic field through from the page that has the Add to Cart button on it, all the way through checkout. How would I go about doing this?

Basically, I have some Add to Cart buttons that add a specific "product" from the Store Products channel and the Product they add, depends on the entry from a secondary channel so I need to pass the entry_id from that secondary channel all the way through.

Hopefully this makes sense and hopefully it's a quick answer. :-)

3

You want to take a look at custom product modifiers:

https://exp-resso.com/docs/store/product_tag.html#inputcustom_modifier_name

This will let you pass any text along with the product through to the checkout.

2
  • Thanks for the response Adrian. I saw that, the issue is that I don't want a text input, I need it to be a hidden value because I am just using the data to populate backend product/order data. – Jacob Graf Sep 3 '13 at 14:02
  • There is nothing stopping you from using different types of inputs. Text, hidden, checkbox, radio - anything will work. You still need to specify it in the template though so that Store knows about the input parameter. – Adrian Macneil Sep 5 '13 at 21:51

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.