VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: zidanc on January 12, 2012, 03:32:18 AM

Title: Product Details Page Price on One Line & Dollar Symbol in Wrong Place
Post by: zidanc on January 12, 2012, 03:32:18 AM
Hi Guys

Im having issues searching for this topic, if it does exist, so sorry if this is a repeat.
Issue Keywords [for other searchers]: Product Price on Single Line, Price on One Line, Dollar Sign, Currency Symbol, Dollar Symbol Before Price.

Versions: J1.7.3 VM: 2.0.0

So issue is 2 parts:
Firstly, I need the PRICE label and the actual PRICE figure to be on a single line. At the moment is is split onto 2 lines which is not cool.
Secondly, my prices have the $ symbol at the end of the PRICE instead of the front. ie Wrong PRICE: 88.00 $ -> Correct PRICE: $88.00.

Please see images for illustration of current and how I need it to be.
How It Is:
(http://zidanc.com/beautythrunature/images/stories/tmp/Price-How-It-Is.png)

How I Want It:
(http://zidanc.com/beautythrunature/images/stories/tmp/Price-How-I-Want-It.png)

Also I believe this is part of the problem too, the language file says GB which I can under stand may put the Euro symbol after the price, but if all I need to do is change the language file let me know. Look forward to any answers.

Dan
Title: Re: Product Details Page Price on One Line & Dollar Symbol in Wrong Place
Post by: PRO on January 12, 2012, 04:03:17 AM
In your currency you can set the dollar sign location.
As for the other question. I have to respondlater, im responding on my tab, and gotta lookup the code on my desktop
Title: Re: Product Details Page Price on One Line & Dollar Symbol in Wrong Place
Post by: zidanc on January 12, 2012, 08:03:21 AM
Thanks BanquetTables!
First question answered.
Was located under: Configuration -> Currencies -> Active Currency [Australian dollar]
Positive Format [{number} {symbol}]
Just put {symbol} in the front and all good!

Quote from: BanquetTables.pro on January 12, 2012, 04:03:17 AM
In your currency you can set the dollar sign location.
As for the other question. I have to respondlater, im responding on my tab, and gotta lookup the code on my desktop
Title: Re: Product Details Page Price on One Line & Dollar Symbol in Wrong Place
Post by: PRO on January 12, 2012, 13:41:59 PM
the rest
Title: Re: Product Details Page Price on One Line & Dollar Symbol in Wrong Place
Post by: zidanc on January 13, 2012, 00:36:42 AM
Hi Banquet

Did you manage to find "the rest"  :D

Quote from: BanquetTables.pro on January 12, 2012, 13:41:59 PM
the rest
Title: Re: Product Details Page Price on One Line & Dollar Symbol in Wrong Place
Post by: PRO on January 13, 2012, 03:18:47 AM
I thought i posted the price on the post above

https://forum.virtuemart.net/index.php?topic=95660.0
Title: Re: Product Details Page Price on One Line & Dollar Symbol in Wrong Place
Post by: zidanc on January 13, 2012, 09:13:38 AM
Sweet!
You're previous posts helped workout what was happening.

Removed this bit of code from my custom components/com_virtuemart/views/productdetails/tmpl default file:
else {
echo "<strong>" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . "</strong>";
}


All good now!

Thanks Banquet
Title: Re: Product Details Page Price on One Line & Dollar Symbol in Wrong Place
Post by: morktron on January 20, 2012, 01:37:20 AM
Thanks guys, very useful posts - I'll be re-visiting here no doubt every time I set up a new VM 2.0 site :)