News:

Support the VirtueMart project and become a member

Main Menu

missing currency symbol

Started by maxi1973, July 08, 2013, 22:36:01 PM

Previous topic - Next topic

maxi1973

Hello, i have a little problem in my website.
If there is a discount is shown basepricewithtax with (in css) line-through and it's fine. Unfortunately, as you can see in attached picture, the currency symbol is missing... how can i add to the price using the same ccs options?

Here the is the line that call the base price with tax:
echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices);

[attachment cleanup by admin]

Maxim Pishnyak

Welcome to php programming world, Maxi!

echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices).'  €';

Regards.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

maxi1973

Thank you Maxim, but i'm not really new to php programming...  ;)
that's why ask to community for a problem i'm not solving. I've already tryed your solution, but the template goes wrong, as you can see in the picture... currency symbol is shown on another row and without css parameters.
I suppose adding just .' €' is not the best solution, because if the currency of the shop is changed by user in US dollars ($) or GB pound (£) the system have to keep it automatically, such as $this->product->currency (or something like this but in the right mode.
i've also tryed to put .'  €' just after $this->product->prices and before ")" but without appreciable results.
using the same css the finel prices, discount amount are shown perfectly, but not base price with tax, so i have to add semi-manually the hack.
Thanks a lot for interest.

[attachment cleanup by admin]

Maxim Pishnyak

Yeah, I see now :)

Hmm... It's still possible to format euro symbol via css.

So standard procedure:
1. Change joomla template to beez5 for example.
2. Make sure that VM files isn't modified by you.
3. Post here all necessary screen shots of your VM settings.
4. Create NEW test product and share with us your screen shots of this process and picture of the problem that still exists.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart