Author Topic: Help removing the "Free" from Custom Fields  (Read 3839 times)

GreenerU

  • Beginner
  • *
  • Posts: 4
Help removing the "Free" from Custom Fields
« 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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10377
  • VirtueMart Version: 3+
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

GreenerU

  • Beginner
  • *
  • Posts: 4
Re: Help removing the "Free" from Custom Fields
« Reply #2 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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10377
  • VirtueMart Version: 3+
Re: Help removing the "Free" from Custom Fields
« Reply #3 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
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

GreenerU

  • Beginner
  • *
  • Posts: 4
Re: Help removing the "Free" from Custom Fields
« Reply #4 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?

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10377
  • VirtueMart Version: 3+
Re: Help removing the "Free" from Custom Fields
« Reply #5 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]
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

GreenerU

  • Beginner
  • *
  • Posts: 4
Re: Help removing the "Free" from Custom Fields
« Reply #6 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

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

PRO

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10377
  • VirtueMart Version: 3+
Re: Help removing the "Free" from Custom Fields
« Reply #7 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.
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)