News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

createPriceDiv and associated text

Started by Agaton, August 01, 2013, 12:30:24 PM

Previous topic - Next topic

Agaton

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.

Maxim Pishnyak

Interesting why do you prefer such method of displaying product price?
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

AH



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



Regards
A

Joomla 4.4.5
php 8.1

Agaton

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