[Skip to main content](#vessel-content)

#   Order Size Limited Sales Tax

##

- **[daduts](/forum/user/1658-daduts "View daduts's Profile")**
- [![daduts's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1658-daduts "View daduts's Profile") Topic Author
- [ Offline](/forum/user/1658-daduts)

Less More

- Posts: 97
- Thank you received: 8
-
-

2 years 7 months ago [\#359965](#359965) by [daduts](/forum/user/1658-daduts "View daduts's Profile")  *[Order Size Limited Sales Tax](/forum/40-taxes/907946-order-size-limited-sales-tax#359965 "-- url of the page with the problem -- :   safetyzonespecialists.com  -- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.0.30  Greetings,  The % varies but Florida counties have a say 1% sales tax that has a maximum limit of a $5000 order size.  That is:  On orders from $0 to $5000, 1% is charged.  On orders above $5000 a flat rate of $50 is charged (1% of $5000).  How can I structure taxes based on order size ?  Thanks  Dave")* was created by *[daduts](/forum/user/1658-daduts "View daduts's Profile")*

-- url of the page with the problem -- : [ safetyzonespecialists.com](https://safetyzonespecialists.com)
-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.3.4
-- PHP version -- : 8.0.30

Greetings,

The % varies but Florida counties have a say 1% sales tax that has a maximum limit of a $5000 order size.

That is:

On orders from $0 to $5000, 1% is charged.

On orders above $5000 a flat rate of $50 is charged (1% of $5000).

How can I structure taxes based on order size ?

Thanks

Dave

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzkwNzk0Ni1vcmRlci1zaXplLWxpbWl0ZWQtc2FsZXMtdGF4P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

2 years 7 months ago [\#359967](#359967) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order Size Limited Sales Tax](/forum/40-taxes/907946-order-size-limited-sales-tax#359967 "-- url of the page with the problem -- :   safetyzonespecialists.com  -- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.0.30  Greetings,  The % varies but Florida counties have a say 1% sales tax that has a maximum limit of a $5000 order size.  That is:  On orders from $0 to $5000, 1% is charged.  On orders above $5000 a flat rate of $50 is charged (1% of $5000).  How can I structure taxes based on order size ?  Thanks  Dave")*

Hi,

Adding an extra charge of 1% with a threshold above which the charged amount is flat is possible with the cart fees plugin:
[ www.hikashop.com/marketplace/product/279-cart-fee.html](https://www.hikashop.com/marketplace/product/279-cart-fee.html)
With two formulas:
- one with a condition {price}&lt;5000 and a formula {price}*0.01
- one with a condition {price}&gt;=5000 and a formula 50
So that's not a problem.

The big problem you'll have is that there is no mechanism to restrict a formula based on the county. In fact, there is no easy way to know the county based on the address of the user.
It would first require an integration with a paid service like [ opencagedata.com/api](https://opencagedata.com/api) to provide the address and get back the county, so that you can then apply the correct charge based on the county ( [ pointmatch.floridarevenue.com/General/Di...alesSurtaxRates.aspx](https://pointmatch.floridarevenue.com/General/DiscretionarySalesSurtaxRates.aspx) )

Also, the surtax might not apply based on the type of product being sold:
[ floridarevenue.com/taxes/taxesfees/Pages/sales\_tax.aspx](https://floridarevenue.com/taxes/taxesfees/Pages/sales_tax.aspx)
For example, if you sell services as well as physical products, you can't blindly take into account the total amount of the order, but only the portion for the type of product for which the surtax applies.

So, if you want to get a complete solution, handling both the product type and different rates for different counties, with a threshold, I'm afraid the only solution is to develop a custom plugin to handle this.
By implementing the onHikashopGetTax(&amp;$obj, $zone_id, $tax_category_id, $type, &amp;$matches, &amp;$taxPlans) event in a hikashop plugin, you can force the list of taxes in $obj-&gt;taxRates (with objects similar to what you have in $matches or $taxPlans), empty $matches and $taxPlans and the system will us your tax rate objects to calculate the tax. And to base yourself on the user address, you can load the cart address: Code:

$checkoutHelper = hikashopCheckoutHelper::get(); $cart = $checkoutHelper-&gt;getCart(); echo $cart-&gt;shipping_address-&gt;address_city;

That way, you can pass the address to the API of the service to get back the county name.
And you can use $tax_category_id to check the type of product.
And then, you need to implement the event onAfterCartShippingLoad(&amp;$cart) to check if the surtax calculated goes above the threshold and if so you can force the value and recalculate the total.
So, if you're a skilled developer, or can hire one, with the information above, it should be totally possible to do it. It's not simple though and it will require at least a few days of work, if not a few weeks.

A better solution would be to use TaxCloud: [ www.hikashop.com/support/documentation/260-taxcloud.html](https://www.hikashop.com/support/documentation/260-taxcloud.html)
The integration plugin is included for free in HikaShop. And with it, TaxCloud will calculate the taxes for your products based on their TIC and the address of the user.

The following user(s) said Thank You: [daduts](/forum/user/1658-daduts "View daduts's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzkwNzk0Ni1vcmRlci1zaXplLWxpbWl0ZWQtc2FsZXMtdGF4P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[daduts](/forum/user/1658-daduts "View daduts's Profile")**
- [![daduts's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1658-daduts "View daduts's Profile") Topic Author
- [ Offline](/forum/user/1658-daduts)

Less More

- Posts: 97
- Thank you received: 8
-
-

2 years 7 months ago [\#359974](#359974) by [daduts](/forum/user/1658-daduts "View daduts's Profile")  Replied by *[daduts](/forum/user/1658-daduts "View daduts's Profile")* on topic *[Order Size Limited Sales Tax](/forum/40-taxes/907946-order-size-limited-sales-tax#359974 "-- url of the page with the problem -- :   safetyzonespecialists.com  -- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.0.30  Greetings,  The % varies but Florida counties have a say 1% sales tax that has a maximum limit of a $5000 order size.  That is:  On orders from $0 to $5000, 1% is charged.  On orders above $5000 a flat rate of $50 is charged (1% of $5000).  How can I structure taxes based on order size ?  Thanks  Dave")*

thanks nicolas

yah, the county thing adds another level of trickiness. as you know, we americans tax by county but don't use the county in our addresses.

we have the florida list of cities/counties so we're planning to assign tax zones by city. the client has been using this manually for decades and believes it to be reliable.

can you confirm I can assign the cart fee plugin by tax zones ?

fyi, on taxcloud. we've been using taxcloud and it works well. they recently raised minimum rates from $30/mth to $79/mth. client asked me to explore a different approach based on that.

cheers

dave

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzkwNzk0Ni1vcmRlci1zaXplLWxpbWl0ZWQtc2FsZXMtdGF4P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

2 years 7 months ago [\#359975](#359975) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Order Size Limited Sales Tax](/forum/40-taxes/907946-order-size-limited-sales-tax#359975 "-- url of the page with the problem -- :   safetyzonespecialists.com  -- HikaShop version -- : 5.0.0 -- Joomla version -- : 4.3.4 -- PHP version -- : 8.0.30  Greetings,  The % varies but Florida counties have a say 1% sales tax that has a maximum limit of a $5000 order size.  That is:  On orders from $0 to $5000, 1% is charged.  On orders above $5000 a flat rate of $50 is charged (1% of $5000).  How can I structure taxes based on order size ?  Thanks  Dave")*

Hi,

No, there is no mechanism to restrict a fee formula to a tax zone.
The condition option of the plugin allows you to take into account the data of the current cart. So you have access to the billing/shipping address information.
You could use a condition like Code:

{cart.shipping_address.address_state} == 'state_Florida_4270' &amp;&amp; strtoupper(trim('{cart.shipping_address.address_city}'))=='CHARLOTTE'

in order to target a specific city of a specific state.
However, note that if the user made a typo in the name of the city, then it won't match.

In think TaxCloud is much more appropriated. Configuring the cart fees plugin with dozens of fees (1 per county in Florida ) is a lot of work and its a bit clunky. It's a shame for the raise in prices.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3RheGVzLzkwNzk0Ni1vcmRlci1zaXplLWxpbWl0ZWQtc2FsZXMtdGF4P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.117 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
