VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: zippygaloo on December 30, 2011, 20:24:06 PM

Title: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: zippygaloo on December 30, 2011, 20:24:06 PM
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?
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: interzis on December 31, 2011, 03:42:05 AM
so do I.
there are any fix for this?
thanks
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: flaterik on December 31, 2011, 10:56:02 AM
same problem
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: 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

Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: zippygaloo on December 31, 2011, 23:31:23 PM
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..."
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: 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>";
            }
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: zippygaloo on January 01, 2012, 01:12:41 AM
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"
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: PRO on January 01, 2012, 15:29:32 PM
Change the language string of sales price to Price in bold
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: zippygaloo on January 02, 2012, 01:21:19 AM
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?
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: PRO on January 02, 2012, 13:22:11 PM
same place, but you have to edit the file
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: bunglehaze on January 02, 2012, 13:59:22 PM
Just turn off price label in the configuration - worked for me. show price is ticked, label is unticked
Title: Re: "Price" on product page isn't showing up. Only "Sales price" shows up.
Post by: lipes on April 03, 2012, 04:52:56 AM
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?