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

TOPIC: Can I make the price display like this?

Can I make the price display like this? 11 years 2 months ago #2627

My client is VERY specific about how they want the various elements for their new site to be displayed. For instance, this is how they want the pricing information to display:

List Price $17.99
Our Price $15.29 (in Red)
You Save $2.70 (15%)

It's pretty close now and I can edit the language file to get it exactly like they want, but for the life of me, I can't figure out how to display the List Price (price before discount). I have set up a few Virtuemart 1 stores, but this is my first VM2 store and it's very different!
The topic has been locked.

Can I make the price display like this? 11 years 2 months ago #2659

Hello there,

I'd love to get a response to this question. My client is waiting for me to deliver their site and I can't finish it until this is worked out.

Thanks!
The topic has been locked.

Can I make the price display like this? 11 years 2 months ago #2683

Hi,

We have hided the labels from the SALE price. To bring it back,

Open this PHP file:

ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php
(default.php or flexv2.php. There are 2 different product details page layouts and you are using only one of them depends on what ever you chose from VM Configuration)

and 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);

So the price will be displayed as:
Sales Price: $100

You would need to change this "Sales Price: " from Virtuemart language file which has been explained in the TUTORIAL.PDF
You can download it through here if you have lost it:
www.flexiblewebdesign.com/puremart/TUTORIAL.pdf
(follow the same procedure to change the "Discount: " to "You Save: " )

look at the 5th page.

If you want to change of those element's colors. Then you should do it through CSS.
Open this CSS file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/assets/css/flexibleVM2Global.css

To the bottom of this CSS file, add these CSS rules:
div.PricediscountAmount, div.PricediscountAmount span.PricediscountAmount {
color:#000;
}
div.PricesalesPrice span.PricesalesPrice {
     color: #FF0000;
}

About showing the percentage next to SAVING. It is not something that comes neither with our VM Template nor Virtuemart itself.
It requires some extra modifications. And our free support doesn't cover any kind of custom modifications. You should purchase (minimum 2 hours) our Premium Support option if you want us to take care of this modification for your current website:
www.flexiblewebdesign.com/Premium-Support/Virtuemart-Premium-Support

So the pricing elements will look like this in your website.
flexiblewebdesign.com/virtuemart-2-template-darkmart/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=33&virtuemart_category_id=12&Itemid=478

(this is the DEMO of our new Joomla+Virtuemart Template, it is not currently ready yet and the "discount percentage" feature you are looking for comes built-in with it, most likely it will be ready to be sold tomorrow, tests are still continuing)

Regards.
Forum Support.
The topic has been locked.

Can I make the price display like this? 11 years 2 months ago #2717

Thank you! I will try this and report back.
The topic has been locked.

Can I make the price display like this? 11 years 2 months ago #2730

Sure.

Case solved.

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