- Posts: 32
- Thank you received: 2
special tax
13 years 6 months ago #94711
by nibel59
special tax was created by nibel59
Hi,
in Italy here is a special tax called "siae" that depends from the capacity of a pendrive.
This tax has a fixed price per unit, not in percentage.
So if you buy:
10 pendrive of 1Gb then you pay €0.10x10 = 1€
10 pendrive of 32Gb then you pay €2.88x10 = 28.8€
Is it possible to add this new item on checkout ?
in Italy here is a special tax called "siae" that depends from the capacity of a pendrive.
This tax has a fixed price per unit, not in percentage.
So if you buy:
10 pendrive of 1Gb then you pay €0.10x10 = 1€
10 pendrive of 32Gb then you pay €2.88x10 = 28.8€
Is it possible to add this new item on checkout ?
Please Log in or Create an account to join the conversation.
13 years 6 months ago #94713
by nicolas
Replied by nicolas on topic special tax
Hi,
There is no option to do that. You would need to create a hikashop plugin which would calculate that special tax and add it to the cart total.
Here is an example of such plugin
There is no option to do that. You would need to create a hikashop plugin which would calculate that special tax and add it to the cart total.
Here is an example of such plugin
The following user(s) said Thank You: nibel59
Please Log in or Create an account to join the conversation.
13 years 6 months ago #94738
by nibel59
Replied by nibel59 on topic special tax
About the code:
So I have to create a new entry siae for product ?
Code:
//add the amount only for products with a siae price set
if(!empty($oneProduct->siae)) continue;
$amount+=$oneProduct->siae*$oneProduct->cart_product_quantity;
}
So I have to create a new entry siae for product ?
Please Log in or Create an account to join the conversation.
13 years 6 months ago #94749
by nicolas
Replied by nicolas on topic special tax
Yes, in that example, you would have to create a custom product field with the column name "siae" where you would enter the tax amount for one product.
Please Log in or Create an account to join the conversation.
Time to create page: 0.178 seconds