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
what happens when you take it out totally?
echo $this->currency->createPriceDiv($this->product->prices, 'salesPrice');
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
echo $this->currency->createPriceDiv( 'salesPrice', '',$this->product->prices);
and when you leave the '' empty?
So it shows me the price without the description.....but no errors...
Then echo the text before or after, like you want it
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'));