Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
How to dynamically set the tax rate based on a product attribute value?
Post Body

Hello. My client sells semi-trailers. There are thousands of products in their WooCommerce store (synced using Zoho). Each one has a taxonomic attribute called "Control Branch" that indicates the city where the trailer is located. The attribute values are codes like "1CA01" which means Irvine, "1CA02" which means Fontana, and so on. They want taxes to be calculated based on this attribute value, so the rate will change depending on the trailer's location. How would I go about doing this? I want to be able to look up a tax rate in WC's standard rates table. I could ignore that table altogether and just put together my own tax table using Advanced Custom Fields, but then the client would have to manually update tax rates from time to time. Thanks in advance.

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,125
Link Karma
983
Comment Karma
4,129
Profile updated: 3 days ago
Posts updated: 7 hours ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago