update sales tax to charge only Illinois residents
I need to update my cart to only charge sales tax to IL residents. I'm not seeing that option in the eCart object.
I need to update my cart to only charge sales tax to IL residents. I'm not seeing that option in the eCart object.
Save the State selected as a Session variable on the cart_confirm.php page. Then you can add a tax rule based on the value of that Session variable being equal to "IL"
Thanks Ray, but one of the reasons I bought (and love) eCart is because I don't have deep enough coding knowledge to know how to do what you just prescribed.
Try it... go step by step.
Open the confirm_cart.php page and apply the Server behavior "Set Session Value"
Then update the cart object on the Taxes tab and create a tax rule. Add a condition based on the value of the session variable you created and a charge rule based on a percentage of the subtotal.
OK. Step by step. I have the "Set Session Value" box open. What should I be putting in the "Trigger", "Session name", and "Value" fields?
You may need to add the form values to the bindings from the checkout page if they don't show up automatically.
Trigger: click the lightning bolt and find the checkout form and the State field
Session Name: Can be anything... use "ShippingState"
Value: Same as the trigger... lightning bolt to the field from the checkout form
If the checkout form doesn't appear in the bindings, then open the bindings panel first and click the plus button and choose "Add form" and browse to the checkout page.
OK. Set Session Value is done. I'm now in the eCart Merchandising Rule for Sales Tax in the eCart Object.
Condition "Based on session variable value" Enter the session variable you just saved and the value = "IL"
Amount should be "Based on Cart Subtotal" times 0.08 (or whatever the tax rate is)
All set. Are the files I've altered "coolCart_JSON.php" and "WA_eCart_Definition_PHP"? I just want to make sure I only upload what I changed just now.
Ray, I uploaded all files - and now I have no sale tax at all. I'm attaching a screen shot of Session variable. Please advise.
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.