VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: eversoul on March 26, 2013, 19:09:06 PM

Title: Chart variants without price
Post by: eversoul on March 26, 2013, 19:09:06 PM
Hi folks,

we're currently setting up a new shop using VM 2.0.20b and Joomla 2.5.9.

There will be products that have different colors, but same price. What we have is a custom field of type 'Cart variant' named 'color' and the different colors assigned to the products. We already get a nice listbox for the customers to choose their color from. Each entry in this listbox is extended by '+ €0,-' and we would like to get rid of this text.

I'm sure there is way to do this, but I didn't find it in the configuration or here in the forum.

Thank you a lot for any help!


Title: Re: Chart variants without price
Post by: John2400 on March 30, 2013, 09:58:29 AM
Hi if you put 0.00 pricing in the field it should just be a colour and no = - or any sign.


See my example attached - works for me.


[attachment cleanup by admin]
Title: Re: Chart variants without price
Post by: eversoul on April 03, 2013, 18:10:33 PM
Thank you for your help!

I tried it, but somehow it does not work for our shop.
See the screenshots below.

Did I get something wrong?

Thx!

[attachment cleanup by admin]
Title: Re: Chart variants without price
Post by: John2400 on April 04, 2013, 10:25:59 AM
eversoul,

Hi I do remember this issue early in the development of VM2 -

I think it had to do with the currency settings.

Just go to your currency and change a few setting in there. I think it is the Positive and negative formats

take out the {sign} symbol maybe.


maybe here : http://forum.virtuemart.net/index.php?topic=102314.0;topicseen
Title: Re: Chart variants without price
Post by: eversoul on April 08, 2013, 09:34:16 AM
Hi John2400,

thank you for your time and your comment.

I played around with the currency settings, did not work for our shop.

To solution in the linked topic is a change in the source code:
Quotefile: administrator/components/com_virtuemart/models/customfields.php

change line 876 to
$productCustom->text = $productCustom->custom_value . ' ';

change line 890 to
$productCustom->text = $productCustom->custom_value . ' ';
change line

Since I would like to keep future updates as simple as possible I would prefer to leave the source untouched.

Thanks!