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

TOPIC: Pricing labels

Pricing labels 11 years 5 months ago #1233

I am having issues with the text labels that go next to the prices. For instance:

I want the prices to read:

Regular Price: $199 (striked through)
Sale Price: $179
Discount/You Save: $20


Right now my site displays only "Discount:" when in grid view, and when in long view it only shows "Sales price without tax" for the regular price, and thats it. When in the actual full item description, it only shows the "Discount:" one. I have played with the settings a lot and matched them up to the way it is shown in the pdf tutorial, but I still cant figure this out.

I know I can edit the eng-gb file to change the actual words which I did already, but I cant even get them to show up..

My live site is www.taiffstore.com/v2 if you would like to see for yourself. Thanks for the assistance.
The topic has been locked.

Pricing labels 11 years 5 months ago #1253

I am seeing price label shows correctly, i guess you figured it out by yourself.

Also look at the TUTORIAL.PDF if you want to change the text of "Sales price without tax" to "Market Price", "List Price" or what you want.

This modification has been explained in tutorial.pdf, basically you are going to change it through Virtuemart Language INI file.

Flexible Forum Support
The topic has been locked.

Pricing labels 11 years 5 months ago #1298

Not quite.. Here is a link to a product page on the live site: taiffstore.com/v2/index.php/products/hair-dryers/onix-detail.html

As you can see the first two prices dont have labels, and only Discount: shows. When in grid view, same thing. And when in List view, I get "Price without tax".. very inconsistent and weird... it is not behaving at all like I want it to.
The topic has been locked.

Pricing labels 11 years 5 months ago #1308

Hi,

It is because we have hided the PRICE label for product details page and GRID views.
It was simply because there wasn't enough space. You can bring them back though, but you will need some PHP editing.

For Product Details page; Open this PHP file:
taiffstore.com/v2/templates/siteground25/html/com_virtuemart/productdetails/flexv2.php

And find this line:
echo '<span class="line-through">'.$this->currency->createPriceDiv('priceWithoutTax', '', $this->product->prices).'</span>';

change it with this:
echo '<span class="line-through">'.$this->currency->createPriceDiv('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices).'</span>';

This will put the LABEL for the prices that gets line-through in product details page. For Category browse page, you should do the same thing but in a different PHP file, which is this:

taiffstore.com/v2/templates/siteground25/html/com_virtuemart/category/flexv2.php

Now, find this PHP line:
echo '<span class="line-through">'.$this->currency->createPriceDiv('priceWithoutTax', '', $product->prices).'</span>';

and change it with this:
echo '<span class="line-through">'.$this->currency->createPriceDiv('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $product->prices).'</span>';

Cheers.
Flexible Forum Support.
The topic has been locked.

Pricing labels 11 years 5 months ago #1338

Thank you, the fix worked great!

The only thing is it only worked for the Regular price label, the first one...

I tried replicating the procedures for the other label that wasn't showing up, the second one, "Sales Price" and I still cant get it to show on 2/3 of the views as well as when you're in the actual full product description page.
The topic has been locked.

Pricing labels 11 years 5 months ago #1355

IF you would liek to repeat the same procedure for labels, (for example: "Sales Price")

then find this line:
echo $this->currency->createPriceDiv('salesPrice', '', $this->product->prices);

and change it with this:
echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices);

you can look at this PHP file which is original Virtuemart file includes those original lines for price labeling:
ROOT/components/com_virtuemart/views/productdetails/tmpl/default_showprices.php

But this PHP isn't used in our vM Template, just take a look at it as reference to get the appropriate PHP lines.

Forum Support.
The topic has been locked.
Time to create page: 0.207 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