VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: CreativeDesigns on November 11, 2013, 17:01:14 PM

Title: Excluding Vat
Post by: CreativeDesigns on November 11, 2013, 17:01:14 PM
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 :)
Title: Re: Excluding Vat
Post by: Maxim Pishnyak on November 11, 2013, 22:12:30 PM
Language Overrides.
Title: Re: Excluding Vat
Post by: CreativeDesigns on November 12, 2013, 07:01:15 AM
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 :)

Title: Re: Excluding Vat
Post by: Maxim Pishnyak on November 12, 2013, 18:04:07 PM
URL?
Title: Re: Excluding Vat
Post by: jenkinhill on November 12, 2013, 18:21:25 PM
See this FAQ for language overrides:  http://forum.virtuemart.net/index.php?topic=113895.0
Title: Re: Excluding Vat
Post by: CreativeDesigns on November 13, 2013, 06:32:29 AM
Quote from: Maxim Pishnyak on November 12, 2013, 18:04:07 PM
URL?

http://www.creativedev2.co.za/MotorMerchandise/
Title: Re: Excluding Vat
Post by: Maxim Pishnyak on November 13, 2013, 18:36:34 PM
You could edit template override for product details prices.
Title: Re: Excluding Vat
Post by: CreativeDesigns on November 13, 2013, 18:53:36 PM
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"?

Title: Re: Excluding Vat
Post by: CreativeDesigns on November 14, 2013, 08:10:45 AM
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.
Title: Re: Excluding Vat
Post by: CreativeDesigns on November 14, 2013, 10:17:42 AM
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]
Title: Re: Excluding Vat
Post by: Maxim Pishnyak on November 14, 2013, 10:33:34 AM
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.
Title: Re: Excluding Vat
Post by: CreativeDesigns on November 14, 2013, 10:36:49 AM
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.

Title: Re: Excluding Vat
Post by: jenkinhill on November 14, 2013, 15:18:54 PM
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
Title: Re: Excluding Vat
Post by: Maxim Pishnyak on November 14, 2013, 16:50:28 PM
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.
Title: Re: Excluding Vat
Post by: CreativeDesigns on November 15, 2013, 06:46:53 AM
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.
Title: Re: Excluding Vat
Post by: CreativeDesigns on November 17, 2013, 09:24:20 AM
Guys, I am prepared to pay someone to help me with this problem. I REALLY need this resolved for my client.
I am NOT winning, and the client needs this site up and live ASAP.

Please please please tell me what I need to do to get this working, or let me PM you my details and I will pay you to do it for me.

I am honestly desperate now.