Shipping Rules - sharing of successful formulas for non-coders!
Hey, we're all asking about different shipping scenarios than those that are included automatically with PowerStore2. I'm going to start this post (and maybe ask for it to be a sticky one) so that we can start sharing those configurations with eCart that work. I'm intending this to be for non-coders, so I'll write as clearly as possible, each step. Allow me to start by adding my own small victory.
If you have one to offer, then please do so - a beginner out there will be grateful!
Canadian Flat Rate Shipping of $7.00
Open confirm.php (or any cart-related document that contains the calculation)
Using eCart, double click on the eCart Object in the Server Behaviour Tab of DW
Click the Shipping Tab
Click the +ADD button; a new setting dialogue will open
Name your rule. I called mine "Canadian Flat Rate ($7)"
Under Triggers, click +ADD to create the first trigger:
TOTAL NUMBER OF UNIQUE ITEMS IN THE CART (set to "greater than zero")
Click +ADD to create the second trigger:
AND SESSION VARIABLE EXISTS and enter the variable you want to target
- I copied my variable name from the eCart Set Session Value item in Server
behaviors - I chose the eCartCheckoutForm_shipping_country one
Click +ADD to create the third and last trigger:
AND BASED ON SESSION VARIABLE VALUE and paste in your variable name, setting
the value comparison and value. For mine, I chose
eCartCheckoutForm_shipping_country = CA
Once your triggers are set up, go to the bottom of that dialogue box and set up the Calculation - in my instance, I chose Flat Rate and entered 7.
The important step that is needed is to upload the entire eCart directory - it contains the settings you just made. Remember to clear your browser cache and cookies often when testing.