Thursday, January 10, 2019

Web Site Tag for the Shipping Country and State

Some users would like to implement a certain customization/behavior on the checkout which is dependent upon the Shipping destination. For example, to make a Transaction Body Field mandatory if the Shipping destination is outside the United States. As of the moment, there is no standard option for this. However, the Shipping Country or State can be accessed using the following Web Site Tags, that can be incorporated within the custom script on the Review and Submit page of the checkout to achieve the desired behavior.

Access the Country and State of the Shipping destination of an order with the following Web Site Tags:


In addition, here is for the Billing Address:


Knowledge in HTML and JavaScript is needed to be able to make this information helpful.

Note: The tags given will only return a value if a shopper is signed in to the web store.

No comments:

Post a Comment