News:

Looking for documentation? Take a look on our wiki

Main Menu

echo $this->product->salesPrice; Doesn't seem to be working for me...

Started by hollywooood, September 29, 2012, 15:35:21 PM

Previous topic - Next topic

hollywooood

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..



Joomla 2.5.4
Virtuemart 2.0.6
PHP 5.2.17
MySQL 5.5.21-55
APACHE 2.2.22

bytelord

Hello,

Did you try:

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

and

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

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

hollywooood

I would have bet 6 monkeys and a goat that I tried that and would have lost them.  A giant thanks to you bytelord...

Joomla 2.5.4
Virtuemart 2.0.6
PHP 5.2.17
MySQL 5.5.21-55
APACHE 2.2.22