VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: hollywooood on September 29, 2012, 15:35:21 PM

Title: echo $this->product->salesPrice; Doesn't seem to be working for me...
Post by: hollywooood on September 29, 2012, 15:35:21 PM
What am I missing here?

On my product details page I have added the following echo $this->product->salesPrice; echo $this->product->priceWithoutTax; to grab only the raw pricing as opposed to the div and span that comes with echo $this->currency->createPriceDiv('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices);

I have tried many different ways yet nothing appears.

Someone please help me...I have tried googling and searching this forum but have not come across what I need here...

Sorry if I have missed it..



Title: Re: echo $this->product->salesPrice; Doesn't seem to be working for me...
Post by: bytelord on September 29, 2012, 15:59:09 PM
Hello,

Did you try:

$this->product->prices['salesPrice'];

and

$this->product->prices['priceWithoutTax'];

Regards
Title: Re: echo $this->product->salesPrice; Doesn't seem to be working for me...
Post by: hollywooood on September 29, 2012, 19:31:45 PM
I would have bet 6 monkeys and a goat that I tried that and would have lost them.  A giant thanks to you bytelord...

Title: Re: echo $this->product->salesPrice; Doesn't seem to be working for me...
Post by: PRO on September 29, 2012, 20:10:09 PM
for others needing help with stuff like this
http://forum.virtuemart.net/index.php?topic=104194.0