- Posts: 137
- Thank you received: 2
Need to show required price addition
13 years 2 months ago #122460
by 1fcb
Need to show required price addition was created by 1fcb
-- url of the page with the problem -- :
mywebsite.com/mypage
-- HikaShop version -- : 2.2.1
-- Joomla version --
.1.5
Hi, German law requires to depict behind each and every price listing to add a phrase saxing "(includes 19% MWSt)" or to show a disclaimer on all pages with prices that shown prices include the 19% VAT. Up to now I have complied in adding just the above term in my German language file for the HIKASHOP_FINAL_TOTAL and translating the PER_UNIT into (enthält 19% MWSt). With this solution it is shown right next to each price on the category listing, product page, cart and checkout.
I now realize that if someone from Switzerland (German speaking but prices do not contain VAT) gets the same message, however he should read (excludes VAT).
How could I accomplish this? I think one option would be to display on each page the footnote:" Prices contain 19% MWSt" if the client is in a country where VAT applies and the remark "Prices do not contain VAT). And how can I make sure this footnote is shown on each page?
The other option (preferred) would be to show the correct remark next to each price. How could I accomplish that?
-- HikaShop version -- : 2.2.1
-- Joomla version --
.1.5Hi, German law requires to depict behind each and every price listing to add a phrase saxing "(includes 19% MWSt)" or to show a disclaimer on all pages with prices that shown prices include the 19% VAT. Up to now I have complied in adding just the above term in my German language file for the HIKASHOP_FINAL_TOTAL and translating the PER_UNIT into (enthält 19% MWSt). With this solution it is shown right next to each price on the category listing, product page, cart and checkout.
I now realize that if someone from Switzerland (German speaking but prices do not contain VAT) gets the same message, however he should read (excludes VAT).
How could I accomplish this? I think one option would be to display on each page the footnote:" Prices contain 19% MWSt" if the client is in a country where VAT applies and the remark "Prices do not contain VAT). And how can I make sure this footnote is shown on each page?
The other option (preferred) would be to show the correct remark next to each price. How could I accomplish that?
Please Log in or Create an account to join the conversation.
13 years 2 months ago #122464
by nicolas
Replied by nicolas on topic Need to show required price addition
Hi,
If you want to display a different PER_UNIT message, edit the file "listing_price" via Display->Views and change the code:
echo JText::_('PER_UNIT');
to:
if($price->price_value==$price->price_value_with_tax){echo' (excludes VAT)';}else{echo ' (includes VAT)';}
If you want to display a different PER_UNIT message, edit the file "listing_price" via Display->Views and change the code:
echo JText::_('PER_UNIT');
to:
if($price->price_value==$price->price_value_with_tax){echo' (excludes VAT)';}else{echo ' (includes VAT)';}
Please Log in or Create an account to join the conversation.
13 years 2 months ago #122526
by 1fcb
Replied by 1fcb on topic Need to show required price addition
Hi, this is exact what I was looking for. Now I want to include this into cart as well to show incl VAT or excl VAT for the HIKASHOP_FINAL_TOTAL.
However this exact solution does not work. It would show always excl VAT. Could you help me with the correct syntax to include after the line
<?php echo JText::_('HIKASHOP_FINAL_TOTAL');
thanks in advance!
However this exact solution does not work. It would show always excl VAT. Could you help me with the correct syntax to include after the line
<?php echo JText::_('HIKASHOP_FINAL_TOTAL');
thanks in advance!
Please Log in or Create an account to join the conversation.
13 years 2 months ago #122600
by nicolas
Replied by nicolas on topic Need to show required price addition
You should use:
if($this->full_total->prices[0]->price_value==$this->full_total->prices[0]->price_value_with_tax){echo' (excludes VAT)';}else{echo ' (includes VAT)';}
if($this->full_total->prices[0]->price_value==$this->full_total->prices[0]->price_value_with_tax){echo' (excludes VAT)';}else{echo ' (includes VAT)';}
Please Log in or Create an account to join the conversation.
Time to create page: 0.058 seconds