- Posts: 17
- Thank you received: 0
Splitting taxes on the invoice
- melkvoordieren
-
Topic Author
- Offline
Less
More
11 years 6 months ago #196800
by melkvoordieren
Splitting taxes on the invoice was created by melkvoordieren
-- url of the page with the problem -- :
www.melkvoordieren.nl
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : Firefox
I'm trying to split the taxes on our invoice.
Specifically, we have two types of taxes -High and Low.
On our invoice, I'd like to add a line that totals all the prices -before tax- of the High category, and another line that does the same for the Low category.
So for example, if our tax rates are 1% and 10%, we'd like to see:
Low taxes: 100$ before tax, 101$ with tax
High taxes: 50$ before tax, 55$ with tax
What codes would I add in the invoice PHP? I tried switching on the 'show both' button in the tax settings, but that does not seem to make any difference, even if I revert to the standard invoice code.
-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : Firefox
I'm trying to split the taxes on our invoice.
Specifically, we have two types of taxes -High and Low.
On our invoice, I'd like to add a line that totals all the prices -before tax- of the High category, and another line that does the same for the Low category.
So for example, if our tax rates are 1% and 10%, we'd like to see:
Low taxes: 100$ before tax, 101$ with tax
High taxes: 50$ before tax, 55$ with tax
What codes would I add in the invoice PHP? I tried switching on the 'show both' button in the tax settings, but that does not seem to make any difference, even if I revert to the standard invoice code.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #196804
by Xavier
Replied by Xavier on topic Splitting taxes on the invoice
Hi,
In Hikashop you can enable the option for the detailed tax display, so it allow to display the tax amount of each taxes.
So in the code, you can potentially edit the part of the code which display the detailed amount by the amount of the product prices with a particular tax and the amount of this tax.
So for example in the view "order / show" the code to edit/replace will be:
It require PHP knowledges.
In Hikashop you can enable the option for the detailed tax display, so it allow to display the tax amount of each taxes.
So in the code, you can potentially edit the part of the code which display the detailed amount by the amount of the product prices with a particular tax and the amount of this tax.
So for example in the view "order / show" the code to edit/replace will be:
Code:
foreach($this->order->order_tax_info as $tax){ ?>
<tr>
<td colspan="<?php echo $colspan; ?>">
</td>
<td class="hikashop_order_tax_title key">
<label>
<?php echo $tax->tax_namekey; ?>
</label>
</td>
<td class="hikashop_order_tax_value">
<?php echo $this->currencyHelper->format($tax->tax_amount,$this->order->order_currency_id); ?>
</td>
</tr>
<?php
}
It require PHP knowledges.
Please Log in or Create an account to join the conversation.
Time to create page: 0.153 seconds