Just want to show one price on product pages
Rate this topic: 




1.00 out of 6 based on 1 vote(s)






- GK User
- Fri Jan 25, 2013 5:40 pm
- Reply with quote
- Report this post
Guys,
On my product pages I only want to display Price: and show one price.
At the moment I see Price, Sales Price with tax and Sales Price.
How can I just show one - the div.PricesalesPrice ??
Thx
On my product pages I only want to display Price: and show one price.
At the moment I see Price, Sales Price with tax and Sales Price.
How can I just show one - the div.PricesalesPrice ??
Thx
-
- Gold Boarder
- GK User
- Fri Jan 25, 2013 6:06 pm
- Reply with quote
- Report this post
This prices comes from your VM configuration - please just disable this prices in VM configuration.
-
- Platinum Boarder
- GK User
- Fri Jan 25, 2013 6:40 pm
- Reply with quote
- Report this post
On the Virtuemart > Configuration > Pricing page, I only have one option selected and that is "Show Prices". If I turn this off, ALL prices disappear and that isn't a good solution 
Do you think this must be a bug? I did update my Virtuemart to version 2.0.18a if that helps.

Do you think this must be a bug? I did update my Virtuemart to version 2.0.18a if that helps.
-
- Gold Boarder
- GK User
- Fri Jan 25, 2013 9:39 pm
- Reply with quote
- Report this post
If Show prices is all you have checked then you actually shouldn't see any prices. Below that are a bunch of options to check. Are some of them already checked? If you just want one price to show I think Final salesprice is the best option. I also use discount amount so customers can see what they're saving if an item is on sale.
-
- Fresh Boarder
- GK User
- Sat Jan 26, 2013 8:10 pm
- Reply with quote
- Report this post
I mean to disable selected prices not all prices at all. Please just configure your VM to show the price you want to then template will takie this settings and show only this part that you want to - exactly the same it is working with default component template.
-
- Platinum Boarder
- GK User
- Tue Jan 29, 2013 11:25 am
- Reply with quote
- Report this post
Please look at the attache screenshot. It shows one price but I cannot work out to get rid of the grey box with price in it. If I change the VM settings, it not only removes the grey box and price - but the Sales Price: £3.99 too.
I have tried using CSS to display: none but I have the same issue.
Can I separate these elements? All I want to do is get rid of that grey box! :-S
I have tried using CSS to display: none but I have the same issue.
Can I separate these elements? All I want to do is get rid of that grey box! :-S
-
- Gold Boarder
- GK User
- Tue Jan 29, 2013 1:57 pm
- Reply with quote
- Report this post
Hi teainsider.
In templates\gk_bikestore\html\com_virtuemart\productdetails\default.php, about line 164:
Replace with this:
I don't know if this is the best way to get you want, but i got so.
Regards.
In templates\gk_bikestore\html\com_virtuemart\productdetails\default.php, about line 164:
- Code: Select all
if ($this->showBasePrice) {
echo $this->currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices );
echo $this->currency->createPriceDiv ( 'basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices );
}
echo $this->currency->createPriceDiv ( 'variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices );
echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices );
echo $this->currency->createPriceDiv ( 'discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE', $this->product->prices );
echo $this->currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices );
echo $this->currency->createPriceDiv ( 'priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices );
echo $this->currency->createPriceDiv ( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices );
echo $this->currency->createPriceDiv ( 'taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices );
if (!empty($this->product->customfieldsSorted['ontop'])) {
$this->position='ontop';
echo $this->loadTemplate('customfields');
} // Product Custom ontop end
echo $this->currency->createPriceDiv ( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices );
Replace with this:
- Code: Select all
echo $this->currency->createPriceDiv ( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices );?><?php
if (!empty($this->product->customfieldsSorted['ontop'])) {
$this->position='ontop';
echo $this->loadTemplate('customfields');
} // Product Custom ontop end
I don't know if this is the best way to get you want, but i got so.
Regards.
-
- Senior Boarder
- GK User
- Thu Jan 31, 2013 10:17 am
- Reply with quote
- Report this post
Could you give me URL to example page ? I'll try to prepare a CSS code to disable this price box.
-
- Platinum Boarder
- GK User
- Mon Feb 11, 2013 1:46 pm
- Reply with quote
- Report this post
I have same problem.
what is the best solution bkrztuk?
what is the best solution bkrztuk?
-
- Fresh Boarder
- GK User
- Tue Feb 12, 2013 10:11 am
- Reply with quote
- Report this post
The problem with the empty price box ? The easiest way is to disable it via CSS but site URL will be necessary .
-
- Platinum Boarder
- GK User
- Wed Feb 13, 2013 9:31 pm
- Reply with quote
- Report this post
Thanks for your input El_LoBooo. I'll try that,
bkrztuk I have pm'ed you a URL.
I found when I tried to hide the box with CSS it would hide all prices - I was unable to hide just one.
All the best
bkrztuk I have pm'ed you a URL.
I found when I tried to hide the box with CSS it would hide all prices - I was unable to hide just one.
All the best
-
- Gold Boarder
- GK User
- Thu Feb 14, 2013 9:56 pm
- Reply with quote
- Report this post
Please add this code to override.css file in root/templates/gk_template_name/css directory :
and then just remember to enable "Use override CSS" option in template advanced settings
- Code: Select all
.product-price {background: transparent !Important}
.product-price > strong {display: none !Important}
and then just remember to enable "Use override CSS" option in template advanced settings
-
- Platinum Boarder
- GK User
- Sat Feb 27, 2016 11:08 am
- Reply with quote
- Report this post
bkrztuk wrote:Please add this code to override.css file in root/templates/gk_template_name/css directory :
- Code: Select all
.product-price {background: transparent !Important}
.product-price > strong {display: none !Important}
and then just remember to enable "Use override CSS" option in template advanced settings
It isn´t work for me, except first line with transparent background but I was add to that one more line and get the solution...thanx for your help
.product-price {background: transparent !Important}
.product-price > strong {display: none !Important}
.product-price { font-size:0; }
-
- Fresh Boarder
13 posts
• Page 1 of 1