- Posts: 21
- Thank you received: 0
Display with or without taxes after prices
11 years 9 months ago - 11 years 9 months ago #191340
by Paganikon
Display with or without taxes after prices was created by Paganikon
-- url of the page with the problem -- :
exel-motor.fr/toute-la-gamme
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
Hi,
I have two kind of products : with taxes (incl tax, TTC in french) and without taxes (excl taxes, HT in french). On my category listing and products pages, I would like to add after the prices, either TTC for product with taxes, or HT for product without taxes.
Is it possible ?
Regards !
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
Hi,
I have two kind of products : with taxes (incl tax, TTC in french) and without taxes (excl taxes, HT in french). On my category listing and products pages, I would like to add after the prices, either TTC for product with taxes, or HT for product without taxes.
Is it possible ?
Regards !
Last edit: 11 years 9 months ago by Paganikon.
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
11 years 9 months ago #191347
by Mohamed Thelji
Replied by Mohamed Thelji on topic Display with or without taxes after prices
Hello,
The solution will just be to set the "Show taxed prices" of your product listing content menu/module to "With tax", it will just display the price with tax for products which have a tax and the price of the products without tax.
The solution will just be to set the "Show taxed prices" of your product listing content menu/module to "With tax", it will just display the price with tax for products which have a tax and the price of the products without tax.
The following user(s) said Thank You: pwpagency
Please Log in or Create an account to join the conversation.
11 years 9 months ago #191430
by Paganikon
Replied by Paganikon on topic Display with or without taxes after prices
Hi, perfect, thank you. But how do I display the suffix after the price ? For example : 19€80 TTC for products with taxes.
Thanks !
Thanks !
Please Log in or Create an account to join the conversation.
11 years 9 months ago #191441
by Xavier
Replied by Xavier on topic Display with or without taxes after prices
Hi,
This will require the edition of the view "product / listing_price" in order to add a translation key if the product price with tax is different of the product price without tax.
This will require the edition of the view "product / listing_price" in order to add a translation key if the product price with tax is different of the product price without tax.
Please Log in or Create an account to join the conversation.
11 years 9 months ago #191803
by Paganikon
Replied by Paganikon on topic Display with or without taxes after prices
Hi, thanks. Is there a way lo learn how to do that ?
Here is exactly what I want to achieve :
- If product belongs to "TTC" tax category -> Display TTC after the price
- If product belongs to "HT" tax category - > Display HT after the price
I would gladly read a tutorial, but can't find anything related...
Thanks, merci !
Here is exactly what I want to achieve :
- If product belongs to "TTC" tax category -> Display TTC after the price
- If product belongs to "HT" tax category - > Display HT after the price
I would gladly read a tutorial, but can't find anything related...
Thanks, merci !
Please Log in or Create an account to join the conversation.
11 years 9 months ago #191808
by nicolas
Replied by nicolas on topic Display with or without taxes after prices
You can use such code near the end of the file :
<?php
if($this->row->product_tax_id==XXX) echo 'TTC';
else echo 'HT'; ?>
where XX is the id of the "TTC" tax category.
This requires to know PHP but if you know, it's not really complex to do. Learning PHP is something that takes at least months of studying. You can't learn that with a tutorial.
<?php
if($this->row->product_tax_id==XXX) echo 'TTC';
else echo 'HT'; ?>
where XX is the id of the "TTC" tax category.
This requires to know PHP but if you know, it's not really complex to do. Learning PHP is something that takes at least months of studying. You can't learn that with a tutorial.
The following user(s) said Thank You: Paganikon
Please Log in or Create an account to join the conversation.
11 years 9 months ago #191916
by Paganikon
Replied by Paganikon on topic Display with or without taxes after prices
Works like a charm, thank you !!
Maybe it should be implemented in the options ? It seems quite important to be able to display this kind of infos...
Encore merci à vous, super module
Maybe it should be implemented in the options ? It seems quite important to be able to display this kind of infos...
Encore merci à vous, super module
Please Log in or Create an account to join the conversation.
Time to create page: 0.058 seconds