News:

Support the VirtueMart project and become a member

Main Menu

Change "Price description" and "Price" (from left to right

Started by Otto0815, March 24, 2012, 12:45:07 PM

Previous topic - Next topic

Otto0815

Hi,

don't know really how to describe in english, but i will give it a try....

In the stabdart layout the price of an product is shown like this:  "Sales Price:  100€"

but i want to chnage it to this: "100 € (inkl. 19% MwSt.)"

I've done a language override to the text "Sales price", then it shows "(inkl. 19% MwSt.) 100€"

So, then i tried to change the following line in the view "productdtails/default_showprices":

from:
echo $this->currency->createPriceDiv( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE',$this->product->prices);

to

echo $this->currency->createPriceDiv($this->product->prices, 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE');

but this won't work....

Has anyone a Solution for this?

Thx

PRO

what happens when you take it out totally?


echo $this->currency->createPriceDiv($this->product->prices, 'salesPrice');

Otto0815

Then i got this error on the Frontpage:

Warning: Missing argument 3 for CurrencyDisplay::createPriceDiv(), called in /www/htdocs/myserver/vm202/templates/rt_afterburner/html/com_virtuemart/productdetails/default_showprices.php on line 44 and defined in /www/htdocs/myserver/vm202/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 355

PRO

echo $this->currency->createPriceDiv( 'salesPrice', '',$this->product->prices);

and when you leave the ''   empty?


Otto0815

So it shows me the price without the description.....but no errors...

PRO


Otto0815

Many Thanks; sometimes a solution is soooo easy, but you can't see it....

Thats now my final way:

echo $this->currency->createPriceDiv( 'salesPrice', '',$this->product->prices).( JText::_( 'COM_VIRTUEMART_PRODUCT_SALESPRICE'));