Group Discounts
I need advise on how to set up a Discount in eCart based on a session variable that holds a percentage amount. The session variable is on the cart page. Any advise would be greatly appreciated.
I need advise on how to set up a Discount in eCart based on a session variable that holds a percentage amount. The session variable is on the cart page. Any advise would be greatly appreciated.
This type of discount is fairly straight forward. If you are already setting the session variable to a percentage then in the discount rule you will specify 'if session variable exists' and enter the name for your variable. Then for the calculation portion you just base it off of the cart subtotal times your percentage, you can just enter the session variable like this:
$_SESSION['<your var name>']
We have more information on discounts, charges and coupons that can be found on the eCart support page under Solution Recipes and How Tos.
ecart/
Thanks for your advise. It worked perfectly. Other than your advise, I just had to add a decibel point to the the session variable.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.