special tax

  • Posts: 32
  • Thank you received: 2
11 years 7 months ago #94711

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 ?

Please Log in or Create an account to join the conversation.

  • Posts: 82795
  • Thank you received: 13354
  • MODERATOR
11 years 7 months ago #94713

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

Attachments:
The following user(s) said Thank You: nibel59

Please Log in or Create an account to join the conversation.

  • Posts: 32
  • Thank you received: 2
11 years 7 months ago #94738

About the 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.

  • Posts: 82795
  • Thank you received: 13354
  • MODERATOR
11 years 7 months ago #94749

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.045 seconds
Powered by Kunena Forum