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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Show an inclusive tax

Thread began 9/10/2009 9:13 pm by timespider372434 | Last modified 9/15/2009 7:31 pm by Jason Byrnes | 1901 views | 12 replies |

timespider372434

Show an inclusive tax

Hello, could someone direct me on how to show a tax of 12.5% that is already included in the product price, it can be on the total not on each item. Here in New Zealand we have a tax on all goods called GST that is 12.5%

EXAMPLE: $100 total
The gst on this is $12.50
How do I show this $12.50 without adding it to the $100

Thanks for any help

Sign in to reply to this post

Jason ByrnesWebAssist

In the cart object, create a new calculation named "GST" as:
([Price] * [Quantity]) * 0.125


Where you want to display this, add:
<?php echo WA_eCart_DisplayMoney($eCart1, $eCart1->TotalColumn("GST")); ?>

where "$eCart1" is the name of your cart

Sign in to reply to this post

timespider372434

Thanks

Thanks Jason

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

Sign in to reply to this post

timespider372434

Trouble showing GST

Hi, I'm still having trouble showing the gst(the tax in my first post).

I have uploaded a zipped folder with a screen shot of the calculation & one of the code in the view cart where I think it should be. Could you elaborate on what I'm doing wrong. In the screen shot my cart is called '$cartOnlineMC' & the code is highlighted where I'm trying to show it.

Attached Files
eCartCalc.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Are any of the tax rules showing?

You have placed the code in a region of the page that will only be displayed if there is a rule from the tax tab that is showing.

Sign in to reply to this post

timespider372434

Getting There

Hi Jason, I have moved the code out of this area & presto the gst is showing. But is there a way to show this as a tax? I have no other tax rules as I don't require them. Sorry that I'm sounding like such a beginner but I'm just getting used to eCart & finding my way in the dark, & I have been reading the pdf files but finding it a little confusing.

Again thanks for the help. Chris

Sign in to reply to this post

Jason ByrnesWebAssist

Sure, you could create a rule on the tax tab so it is displayed.


Use the trigger:
subtotal For Any Column:
if the subtotal of column "GST" is ">" a value of "0"


and the calculation:
based on column Subtotal:
Subtotal of Column "GST" "Plus" "0"

Sign in to reply to this post

timespider372434

Do I keep the gst calculation I added earlier(I have) as when I get to the last bit in tax area that you said to do

"and the calculation:
based on column Subtotal:
Subtotal of Column "GST" "Plus" "0""

GST doesn't exist in the dropdown menu yet it does exist in the first dropdown menu.

Sign in to reply to this post

timespider372434

My brain is a gloopy mess

I have changed the calculation

From "GST" as: ([Price] * [Quantity]) * 0.125

To "GST" as: ([Price] * [Quantity]) /9

as it was adding the gst to the total & 12.5% works out to be a ninth when inclusive.

But as I said above the GST only shows in the condition area dropdown menu & doesn't show in the calculation area dropdown menu.

So I have used "Based on column subtotal" 'subtotal of column' "price" - it now shows the GST correctly(well sort of) but the total price now shows double the amount in my page.

For example it shows. One item subtotal of $19.95 then GST of $2.22 this is correct
then the total is $39.90 which is double & incorrect.

Any other ideas?

Chris

Sign in to reply to this post
loading

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