close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Tax-inclusive prices in Power Store 3

Thread began 2/17/2010 6:14 am by info275691 | Last modified 2/24/2010 4:25 pm by info275691 | 1255 views | 10 replies

Eric Mittman

One way you could do this would be to add 19% to the price of the item when it is being inserted by the add to cart server behavior. In your add to cart code find the place where the price is being set like this:

$ATC_itemPrice = floatval("<your price>");// column binding

Just after this add in this line:

$ATC_itemPrice += ($ATC_itemPrice * .19);// column binding

This will ensure that the price of the item in the cart will include the tax in it. Next you can add in a row to the cart display that will show you how much tax was applied to the order. To do this go to your cart display page and look for the "Total:" line. You should add in a new row just above this one that looks like this:

<tr class="">
            <td class="eC_SummaryLabel">Tax:</td>
            <td><?php echo WA_eCart_DisplayMoney($eCart1, ($eCart1->GrandTotal() - ($eCart1->GrandTotal() / 1.19))); ?></td>

This will ensure that the users can easily see the amount of tax that has been applied to the order. You will need to update this code to use your cart object instead of the default $eCart1.

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





Ease of use


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...