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

TOPIC: Default_showprices not appearing on Details pages

Default_showprices not appearing on Details pages 10 years 6 months ago #6575

Hello -

I purchased and installed your Clean Mart theme today and everything went smoothly. However, I had added a template override (productdetails/default_showprices.php) to show a quantity pricing table (similar to the old pricing table in VM1). I very much need to show the pricing breaks in the shop, and this override worked great. VM Forum default_showprices override (Code is about 5 posts from top.)

So today, when I installed all of the Clean Mart template override files, my quantity pricing tables no longer appeared. (I retained my override file, in the same productdetails folder with all of yours). I see the price breaks and table tags in the page's html -- and I have checked your css file for possible display:none -- but I can't figure out why the table doesn't appear.

I know this is rather complicated, so please let me know if I need to explain better or you need more info.

(Edited - I was mistaken about seeing the price breaks and table tags in html - it was something different - so I've stricken through that line above.)

Thank you!
Last Edit: 10 years 6 months ago by Peter Beare. Reason: mistaken info
The administrator has disabled public write access.

Default_showprices not appearing on Details pages 10 years 6 months ago #6586

Hi,

We have used our own pricing structure (to show Discount Percentage).

You need to go back to original virtuemart price layout to re-activate your template overwriting for the prices.

Open this PHP files:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php
(default.php or flexv2.php which ever you are using currently)

And start highlight lines from 448th line:
- which starts with:
<?php 
     // Product Price
           if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) {

Attachment ScreenShot2013-09-27at2.06.53AM.png not found



and keep selecting through 504th line,
- which ends with:
<?php } ?>
</div>
<?php } ?>


Attachment ScreenShot2013-09-27at2.07.28AM.png not found



Remove these highlighted lines and replace them with this:
<?php
	echo $this->loadTemplate('showprices');
?>

Now, the "template overriding" you previously created will start working for prices.
But make sure to drag-n-drop your old template-override PHP file to here:

/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default_showprices.php

Regards.
Support & Development
Last Edit: 10 years 6 months ago by Support.
The administrator has disabled public write access.

Default_showprices not appearing on Details pages 10 years 6 months ago #6602

Thank you, your instructions worked perfectly.
The administrator has disabled public write access.

Default_showprices not appearing on Details pages 10 years 5 months ago #6620

I am glad it worked out.

Case solved. Topic is closed.

Regards,
Support & Development
The administrator has disabled public write access.
Time to create page: 0.174 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