Add the text "+VAT" after all prices

  • Posts: 30
  • Thank you received: 0
12 years 10 months ago #41644

Hi there,

I'm working with some clients who want to display the price without VAT on the site but would also like the text "+VAT" to appear after prices, e.g

£2000 + VAT

I know I can just show prices including my tax rule but they do not want to do this.

Any help would be appreciated.

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
12 years 10 months ago #41817

Hi,

You could override the translation key PRICE_END in order to add that text after prices:
www.hikashop.com/en/download/languages.html#modify

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

  • Posts: 30
  • Thank you received: 0
12 years 10 months ago #41945

Thanks thats worked perfectly!

Is there a way to add it to the 'price with options' as on screenshot?

I could change that to 'price with options (+ VAT), but would be better after the price as on the rest?

Also, will the language file not get overwritten by updates to the component?

Thanks

Attachments:

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
12 years 10 months ago #42075

For that price, it's the translation key PRICE_WITH_OPTIONS that you need to override.

If you enter your modifications in the override area when you edit the translation file and not directly in the translation file, as it is explained in the documentation, you won't loose your changes when you update.

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
12 years 10 months ago #42113

If you want to put the text after the price, the explanation in my last post won't do sorry.


You need to edit the file "option_price" via the menu Display->Views and add your text like that:
echo ' (+VAT)';

before the code:
exit;

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

  • Posts: 30
  • Thank you received: 0
12 years 10 months ago #42130

sounds good, did it as in screenshot, but not working?

code7dev4.co.uk/index.php?option=com_hik...related_product=1059

Attachments:

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

  • Posts: 83103
  • Thank you received: 13416
  • MODERATOR
12 years 10 months ago #42211

The modification you did is correct. Make sure that you're editing the view for the correct template.

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

  • Posts: 30
  • Thank you received: 0
12 years 10 months ago #42229

Thanks very much, I see now there is a view for each template, works perfectly!

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

Time to create page: 0.081 seconds
Powered by Kunena Forum