Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: adding "price" near the "$" or "€ " value

adding "price" near the "$" or "€ " value 10 years 9 months ago #5685

Dear Sir,
is it possible to add a line with the word "PRICE" near or over the value of the items in "product detail page ver.1"
See screenshot for a better explaination.
I would like to add this feature to help customers.
I've been trying to find out how to do using firebug and other debugging tools , but still I can't find a solution...

Attachment PRICE.jpg not found



I know that this is not a "standard feature" of your tempate but would you be so kind to point me in the right direction?
Do you think that it's possible to insert a code that will switch language ? do I have to modify the VM core or it's possible to add this word just adding a little modification in your template?
thank you very much.
regards
Giancarlo
The topic has been locked.

adding "price" near the "$" or "€ " value 10 years 9 months ago #5694

First make your new language vars for the words you want

please read the joomla how to

www.inmotionhosting.com/support/edu/joomla-25/language/add-new-language-override

then in the file templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/flexv2.php ~ line 375 look for

<Br/>
<br/>
<?php

add immediately after (if your new var is COM_VIRTUEMART_MYPRICE )

[code type=php-brief]


echo JText::_('COM_VIRTUEMART_MYPRICE').'<br />';
[/code]

so before

// Product Price

your text will appear there - you can style it by adding a class etc

e.g.

echo '<div class="myprice" >'.JText::_('COM_VIRTUEMART_MYPRICE').'</div><br />';

cheers
The topic has been locked.

adding "price" near the "$" or "€ " value 10 years 9 months ago #5700

It works like a charm!
Thank you very much John.
you can mark this thread as [SOLVED] , this workaround will help other customers for sure.
regards
Giancarlo
The topic has been locked.

adding "price" near the "$" or "€ " value 10 years 9 months ago #5704

Excellent - marked solved

Cheers
The topic has been locked.
Time to create page: 0.047 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo