close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Tax Rule Question

Thread began 8/05/2010 11:51 am by vincent.rycx336448 | Last modified 8/05/2010 7:59 pm by Jason Byrnes | 762 views | 7 replies |

vincent.rycx336448

Tax Rule Question

I would like to add a tax based on the customer State.
This should be simple but I cannot make it work.

I select "based on session variable value"

and

$_SESSION["eCartCheckoutForm_shipping_state_province"] = OH

I have tried other conditions and those work OK

Thanks for the help.

Sign in to reply to this post

Jason ByrnesWebAssist

NOTE: when creating a tax rule to trigger off the ecart session values, the tax will not be applied untill the user submits the checkout page and gets to the confirm page.

add the following to the body of your confirm page to see what the session variables value is:

php:
<?php echo("Shipping State: ".$_SESSION["eCartCheckoutForm_shipping_state_province"]."<br />"); ?>




this will tel us what is being stored in the eCartCheckoutForm_shipping_state_province session.

Sign in to reply to this post

vincent.rycx336448

It shows the session value is OH.
It still don't get the tax value.
If I use "=! "it will show the tax value but that for any state value as well.

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the cart object file from the WA_eCart folder so I can examine the tax rule code.

Sign in to reply to this post

vincent.rycx336448

The file is attached.

Attached Files
eCart File.txt
Sign in to reply to this post

Jason ByrnesWebAssist

it looks like when entering the session mane in the rules trigger, you entered "$_SESSION["eCartCheckoutForm_shipping_state_province"]" instead of just the name "eCartCheckoutForm_shipping_state_province.


you dont need to enter the code for the session in the based on session variable value, only the name of the session.

Sign in to reply to this post

vincent.rycx336448

That was it, thank you Jason

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...