Detect if ordered from certain page/order form

celerstew
Shopify Partner
2 0 0

I have an order form set up on a page that people can order a mixture of products from, what I am wondering is if there is a way to detect this via a shopify script I am using to edit line items. Some type of hidden form field or something that passes along a value that I can detect that says the user came from that page/order form.

What would be the most simple way to accomplish this? Any particular variables/objects I should be looking at to accomplish this?

0 Likes
Ignitor2501
Excursionist
21 0 6

Hi Celerstew,
It would be great if you can provide the link to that page.If you're adding products to cart after filling that form than you can use hidden line item properties and can set them according to the page handle or unique form id . These line item properties than can be used in the line item scripts to offer some discounts etc...
Thanks.

0 Likes