Skip to product information
1 of 1
Published:2023.10.11

An example of how to set up Shopify to pass on specific parameter names and values to order information as order.attributes when a specific parameter is entered

An example of how to set up Shopify to pass on specific parameter names and values to order information as order.attributes when a specific parameter is entered

Applications

  • Order information management and editing

How to implement

  • Javascript
View full details

This is a slightly nerdy example of customization. This is a setting example for passing on the parameter name and its value to the order data so that it can be determined that the purchase came from a specific inflow route, such as in an ambassador campaign. If the specified parameter is given when accessing the store, the value is passed to the cart attributes.


An example of a setting that, when a specific parameter is entered, passes the parameter name and value to the order information as order.attributes.


Setup procedure: Create a new section file "takeover_urlparam_to_order.liquid" and set the Schema


How to use: Add "Parameters to pass to order" to the footer section group and specify the parameter name


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Create a new section file "takeover_urlparam_to_order.liquid" and set the Schema

Related Post