VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: GreenerU on January 25, 2012, 18:18:22 PM

Title: Help removing the "Free" from Custom Fields
Post by: GreenerU on January 25, 2012, 18:18:22 PM
Hi People.

I have a problem that the custom fields don't show up right on my site and would like to remove the word "Free" from the option when the custom field price is zero (or as I have left it "blank")

Anyone please tell me how I can do this?

Regards
Vince Gledhill
proprietor
http://www.greeneru.co.uk
Title: Re: Help removing the "Free" from Custom Fields
Post by: PRO on January 25, 2012, 18:28:48 PM
http://forum.virtuemart.net/index.php?topic=93360.0

Title: Re: Help removing the "Free" from Custom Fields
Post by: GreenerU on January 25, 2012, 19:33:17 PM
Thanks for the reply, but I want to remove that word altogether.

I don't want to replace it with another word.  Because if I replace it with "" instead I can't have the word "Free" anywhere on my Joomla website

Any idea which PHP file it is "hidden" in so that I can remove it?

Regards
Vince Gledhill
http://www.greeneru.co.uk
Title: Re: Help removing the "Free" from Custom Fields
Post by: PRO on January 25, 2012, 19:36:18 PM
you can still have the word FREE, lol,

COM_VIRTUEMART_CART_PRICE_FREE=""
BUT, you cannot have the word free for this varible
COM_VIRTUEMART_CART_PRICE_FREE
Title: Re: Help removing the "Free" from Custom Fields
Post by: GreenerU on January 25, 2012, 20:45:44 PM
Could you please explain how to do it as if you were talking to an idiot?  Because you'd probably be right.

I am running Joomla 1.7 on my site and VirtueMart2

However, in my directory structure I cannot see any Language Override folder.

Told you I was an idiot?
Title: Re: Help removing the "Free" from Custom Fields
Post by: PRO on January 25, 2012, 20:57:44 PM
FTP to

public_html/language

create a folder called   overrides

THEN, unzip the file I have attached. and the put it in the override folder


[attachment cleanup by admin]
Title: Re: Help removing the "Free" from Custom Fields
Post by: GreenerU on January 25, 2012, 21:31:38 PM
Brilliant, thanks for your help mate.

Sorted that.

Do you know of any way to format the options so that they look more like the choice you are getting? 

See what I mean here http://greeneru.co.uk/index.php/shop/striplights/orion3-detail (http://greeneru.co.uk/index.php/shop/striplights/orion3-detail)

It says the following...

length (i) (tickbox)
100mm
:(tickbox)200mm
:£15.26(tickbox)

Which means that the tickboxes don't correspond with the price.... I would like it to look like this instead

Length (i)
100mm (tickbox) (additional price if any)
200mm (tickbox) (£15.26)
300mm (tickbox) (£30.59)

Regards
Vince Gledhill
http://www.greeneru.co.uk
Title: Re: Help removing the "Free" from Custom Fields
Post by: PRO on January 25, 2012, 21:49:10 PM
.product-field-type-B, .product-field-type-S, .product-field-type-I {
    float: left;
    padding-left: 3%;
    width: 30%;
}

change the width to 50%

components/com_virtuemart/assets/css/vmsite.ltr.css


BUT: you need to do an override, rather than change the virtuemart one.
http://forum.virtuemart.net/index.php?topic=90935.msg298367#msg298367

Because, when you update, that file will be overwritten.