close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Mix of Taxable & Non Taxable Items

Thread began 7/15/2010 6:20 pm by courtyo | Last modified 1/24/2014 11:43 am by Justin@AdventDesign | 2593 views | 10 replies |

courtyo

Mix of Taxable & Non Taxable Items

Can eCart handle tax on a per-item basis?

I need to calculate a tax rule where sales tax is only calculated for designated items. I have a column in the cart called "taxable." For each item, tax should be calculated only if the value of this column is 1.

Sign in to reply to this post

Jason ByrnesWebAssist

in the add to cart button, set the value for the taxable column to 12 for items that should be taxed and 0 for items that should not be taxed

Then in the eCart object, set the tax rule up on the tax tab.

Set the trigger to "Number of items With A Specific Column value":
If the total Number of items where 'taxable' has a value of '1' is '>' than a value of '0'


Set the calculation to "based on items with a specific value":
Total of 'TotalPrice' where 'taxable' has a value of '1' 'times' '.10'

replace '.10' with the correct tax rate you wish to use.

Sign in to reply to this post

courtyo

I'm getting total tax of $0, even when I have one taxable item in the cart.

I double checked and the value of "taxable" is 12 for the taxable item and 0 for the non taxable item. Here is the eCart code - perhaps I have something set incorrectly?:

function WAEC_moringa_cart_SalesTax() {
$totalTax = 0;
if (true && (($this->GetTaxableTotal() > 0) && ((isset($_SESSION['cust_shipst'])?$_SESSION['cust_shipst']:"") == "CA") && ($this->ConditionalTotal("Quantity", "taxable", "1") > 0))) {
$totalTax += ($this->ConditionalTotal("TotalPrice", "taxable", "1") * .0875);//Result
}
return WA_eCart_FormatNumber($totalTax, $this->ForceDecimalsC, $this->DecimalPlacesC);
}

Sign in to reply to this post

Jason ByrnesWebAssist

Sorry, that was a typo in my previous reply, the taxable items need to be set to 1 in the add to cart button, not 12, I guess I had fat fingers when typing the previous instructions.

Sign in to reply to this post

courtyo

Perfect - it worked! Thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

Sign in to reply to this post

Justin@AdventDesign

Troubleshooting Taxable and Nontaxable

I've followed the above instructions to add item specific tax/notax rules to an existing cart system. However, I'm not getting tax applied and I'm having trouble figuring out where the breakdown is. The detail.php page is pulling the '1' properly from the products table, and the Add from Recordset behavior appears to be passing that same Taxable value correctly. However, the cart.php is showing no tax.

I've attached screen shots of the Sales Tax setup in ecart, as well as the pertinent pages. I should mention, tax is only to be added if the ordering party is in Indiana ('IN') AND the item is marked taxable.

Sign in to reply to this post

Jason ByrnesWebAssist

please provide a link where i can test this.

Sign in to reply to this post

Justin@AdventDesign

See private message...

Sign in to reply to this post

Jason ByrnesWebAssist

when i go through the checkout page and select indiana as the state, i see the tax applied on the confirm page. see screen shot.

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