News:

Looking for documentation? Take a look on our wiki

Main Menu

"Price" on product page isn't showing up. Only "Sales price" shows up.

Started by zippygaloo, December 30, 2011, 20:24:06 PM

Previous topic - Next topic

zippygaloo

The "Price" on product page isn't showing up. Only "Sales price" shows up.

This is what shows up on the product page...

Price:
Sales price: $89.95

This is what I would like to show up on the product page?

Price: $89.95


How do I go about fixing this?



PRO

views/productdetails/tmpl/default.php

remove
else {
               echo "<strong>" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . "</strong>";
            }

And do a template override
http://forum.virtuemart.net/index.php?topic=90935.0



change text by language override
http://forum.virtuemart.net/index.php?topic=92944.0


zippygaloo

Quote from: BanquetTables.pro on December 31, 2011, 11:48:16 AM
views/productdetails/tmpl/default.php

remove
else {
               echo "<strong>" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . "</strong>";
            }

And do a template override
http://forum.virtuemart.net/index.php?topic=90935.0



change text by language override
http://forum.virtuemart.net/index.php?topic=92944.0



That broke it. Produced... "Parse error: syntax error, unexpected $end in..."

PRO

remove

            if ($this->product->product_unit && VmConfig::get ( 'price_show_packaging_pricelabel' )) {
               echo "<strong>" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE_PER_UNIT' ) . ' (' . $this->product->product_unit . "):</strong>";
            } else {
               echo "<strong>" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . "</strong>";
            }

zippygaloo

Quote from: BanquetTables.pro on December 31, 2011, 23:57:59 PM
remove

            if ($this->product->product_unit && VmConfig::get ( 'price_show_packaging_pricelabel' )) {
               echo "<strong>" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE_PER_UNIT' ) . ' (' . $this->product->product_unit . "):</strong>";
            } else {
               echo "<strong>" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . "</strong>";
            }

That worked, but not for what I was wanting. I think you are misunderstanding what I want. I would prefer the price of the product to appear next to the bold "Price" and remove "Sales Price"

PRO


zippygaloo

Quote from: BanquetTables.pro on January 01, 2012, 15:29:32 PM
Change the language string of sales price to Price in bold


I'm running 1.5.14. The link provided says 1.7 has overrides. Since I'm using v1.5.14, where is the language file and how do I change it?

PRO


bunglehaze

Just turn off price label in the configuration - worked for me. show price is ticked, label is unticked

lipes

in the Product Details:
        <?php
// Product Price
if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) {
    echo $this->loadTemplate('showprices'); } ?>


I get this:
Price:
5,00 €


In my BE /administrator/index.php?option=com_virtuemart&view=config
4th TAB (Configuration > Pricing)  Show Label -> all box are not checked!
This function isnt working because in front end i get the label "Price:" and i only want the "5,00 €" value

how can i solve this?
VM V. online: J2.5.14 | VM 2.0.20a | SQL 5.1.70 | PHP 5.3.25