Friday, January 11, 2019

Display a Custom Message in Shopping Cart page for Customers under a Specific State Only


To display a custom disclaimer message in the Shopping Cart that will display only for customers under a specific State (e.g. California), below
are the steps to be able to do this using Javascript:

A. Create a Sales Rules
1. Navigate to Setup > Sales > Sales Rules > New > Select State
2. Assign a name > Set Criteria to any of > Select California in State field

B. Create a Sales Territory
1. Navigate to Setup > Sales > Sales Territories > New
2. Apply the rule created in step A
3. Assign the Sales Rep that will handle the California Sales Territory

C. Enter the following code in the Shopping Cart tab:

No comments:

Post a Comment