Product Tax for single California location
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Product Tax for single California location
Aimeos V 2019.10 and PHP 7.2 Linux (Dev environment Aimeos V 2019.10 and PHP 7.2 Windows 10 / Xampp)
Some products in my location are taxable, others are not - but typically they are never "included" in the retail price.
Items need to be shown in the basket without tax followed by a Subtotal, then tax (the cumulative tax amount) and then tax + subtotal as the final TOTAL.
After adding tax percentages for some taxable products and then adding them to the basket, my basket currently shows - for example:
The cumulative tax amount for all products in the basket needs to be shown as separate line item after the products and product Subtotal and before the final total. Like so:
I have tried playing around with the config settings
but there is no difference whether I set 'taxflag' to 0 or 1
I ended up hardcoding the value in ext/myshop/client/html/templates/common/sumary/detail-standard.php
(I thought that had been fixed in the 2016 release?)
Am I missing something here?
Some products in my location are taxable, others are not - but typically they are never "included" in the retail price.
Items need to be shown in the basket without tax followed by a Subtotal, then tax (the cumulative tax amount) and then tax + subtotal as the final TOTAL.
After adding tax percentages for some taxable products and then adding them to the basket, my basket currently shows - for example:
Code: Select all
3 articles Total $ 53.00
Incl. 7.75% VAT $ 3.81
Code: Select all
3 articles Subtotal $53.00
Tax $ 3.81
Total $ 56.81
Code: Select all
'mshop' => [
'price' => [
'taxflag' => 0,
],
],
I ended up hardcoding the value in ext/myshop/client/html/templates/common/sumary/detail-standard.php
Code: Select all
<?php //MOD RMP - Hard Coded Tax Flag (Not working from shop.php)
$priceTaxflag = false;
if( $priceTaxflag === true ) : ?>
<tr class="total">
<td colspan="3"></td>
<td class="quantity"><?= $enc->html( sprintf( $this->translate( 'client', '%1$d article', '%1$d articles', $totalQuantity ), $totalQuantity ) ); ?></td>
<td><?= $enc->html( $this->translate( 'client', 'Total' ) ); ?></td>
<td class="price"><?= $enc->html( sprintf( $priceFormat, $this->number( $this->summaryBasket->getPrice()->getValue() + $this->summaryBasket->getPrice()->getCosts(), $precision ), $priceCurrency ) ); ?></td>
<?php if( $modify ) : ?>
<td class="action"></td>
<?php endif; ?>
</tr>
<?php endif; ?>
Am I missing something here?
Re: Product Tax for single California location
This is correct because then, all prices you've added in the backend are treated as net prices:
The difference is in the way the tax is then displayed in the basket, during the checkout process and in the order (incl. tax vs. +tax). Maybe your template isn't up to date with the official one regarding how to show taxes:
- https://github.com/aimeos/ai-client-htm ... #L123-L134
- https://github.com/aimeos/ai-client-htm ... #L361-L407
BTW: There's also a basket plugin in the 2020.x release where you can set tax rates depending on the country and state:
https://github.com/aimeos/aimeos-core/b ... xrates.php
Code: Select all
'mshop' => [
'price' => [
'taxflag' => 0,
],
],
]
- https://github.com/aimeos/ai-client-htm ... #L123-L134
- https://github.com/aimeos/ai-client-htm ... #L361-L407
BTW: There's also a basket plugin in the 2020.x release where you can set tax rates depending on the country and state:
https://github.com/aimeos/aimeos-core/b ... xrates.php
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star