News:

Looking for documentation? Take a look on our wiki

Main Menu

Excluding Vat

Started by CreativeDesigns, November 11, 2013, 17:01:14 PM

Previous topic - Next topic

CreativeDesigns

Is there a way to have "excl. vat" next to each price in the shop?
If coding etc needs to be changed or added, I'm happy to do it, just let me know which files needs to be changed and what code needs to be added :)

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

CreativeDesigns

Hi Maxim,

Thank you for your response.
Could you please explain what to write in the overrides in order to make this work?
I am not hugely familiar with the language overrides and only discovered it a month or 2 back :)


Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


Maxim Pishnyak

You could edit template override for product details prices.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

CreativeDesigns

#7
Hi Maxim

Could you tell me what needs to be written in the Language Constant area for the override?
I presume that the block below that needs to say "excluding vat"?


CreativeDesigns

I tried the following:

Language Constant: COM_VIRTUEMART_PRODUCT_PRICE
Text: excl. vat

Didn't work.

Language Constant: COM_VIRTUEMART_PRODUCT_DETAILS_PRICE
Text: excl. vat

Didn't work.


So really not sure what else I can put in there?
I really hope you can assist.

CreativeDesigns

It might be beneficial for me to give you a full picture view of what I am wanting to achieve.

Untitled1 - shows a category view, and where I would like the "excl. vat" to appear.
Untitled2 - shows a product view, where I need the 2 different prices removed, but the main price to be displayed without vat.

The checkout process should still include the vat per item.

I really do hope that you can assist. I haven't been able to find a VM developer who is knowledgeable enough to trust this to.

[attachment cleanup by admin]

Maxim Pishnyak

Quote from: Maxim Pishnyak on November 13, 2013, 18:36:34 PM
You could edit template override for product details prices.
Did you have mentioned file? You need to look into it.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

CreativeDesigns

Hi Maxim,

As per the post I made earlier:

I tried the following:

Language Constant: COM_VIRTUEMART_PRODUCT_PRICE
Text: excl. vat

Didn't work.

Language Constant: COM_VIRTUEMART_PRODUCT_DETAILS_PRICE
Text: excl. vat

Didn't work.


So really not sure what else I can put in there?
I really hope you can assist.


jenkinhill

COM_VIRTUEMART_PRODUCT_PRICE  is a backend (admin) variable, not frontend. COM_VIRTUEMART_PRODUCT_DETAILS_PRICE does not exist as a variable at all (in VM2.0.24)

See the FE variables to override in the template, components/com_virtuemart/views/productdetails/tmpl/default_showprices.php
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Maxim Pishnyak

Quote from: jenkinhill on November 14, 2013, 15:18:54 PM
See the FE variables to override in the template, components/com_virtuemart/views/productdetails/tmpl/default_showprices.php
Study template override technique from appreciative forum section, official tutorial.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

CreativeDesigns

I will try to look over these variables AGAIN to see if I can understand them.
However, it still doesn't tell me how I can show the price that excludes vat in the shop, and then add the vat when checking out.
Can you tell me how to do that? I couldn't find anything like that in the user manual, and I have never had to do that before in other stores created.