VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: Agaton on August 01, 2013, 12:30:24 PM

Title: createPriceDiv and associated text
Post by: Agaton on August 01, 2013, 12:30:24 PM
In all the templates I have used, I still cannot work out how to display the price without createPriceDiv, yet maintain the currency settings. Probably a simple process  (wood and trees come to mind). Can anyone help?

Two scenarios

1. I don't want to use Div tags so the code

echo $this->currency->createPriceDiv ('priceWithoutTax', 'Offer Price: ', $this->product->prices);

is no use to me, what would I alter to remove div tags?

2. I want text to appear after the price

echo $this->currency->createPriceDiv ('basePrice', 'without VAT: ', $this->product->prices);

unfortunately if I move the 'without VAT' to any other part of the code it won't work and if I put it in its own echo then it appears outside the div, yes I could use css to move the text around but there must be a simpler way?

Any help would be appreciated.
Title: Re: createPriceDiv and associated text
Post by: Maxim Pishnyak on August 01, 2013, 14:49:38 PM
Interesting why do you prefer such method of displaying product price?
Title: Re: createPriceDiv and associated text
Post by: AH on August 01, 2013, 15:39:38 PM


The funciton is within administrator/components/com_virtuemart/helpers/ currencydisplay.php

Looks like js uses the div but you can play with this of create a new function to suit your needs and adjust the display views accordingly



Title: Re: createPriceDiv and associated text
Post by: Agaton on November 08, 2013, 12:41:34 PM
Quote from: Maxim Pishnyak on August 01, 2013, 14:49:38 PM
Interesting why do you prefer such method of displaying product price?
Because that's the way the customer wants it displayed, this is supposed to be a forum for help not a critique on how and why something is required...