Author Topic: Remove price of custom field value.  (Read 16257 times)

Ziggo

  • Beginner
  • *
  • Posts: 6
Remove price of custom field value.
« on: May 07, 2012, 12:33:42 pm »
Hello,

Can someone help me with the following issue?
I've add some custom fields to my products. When the buyer chooses a value the price is changing. Now the prices of each value is printed in the field. I only want to show the value.

Can anyone help me remove the price?


jlgarcia9

  • Beginner
  • *
  • Posts: 6
Re: Remove price of custom field value.
« Reply #1 on: June 23, 2012, 13:15:23 pm »
Hi,

I need the same of you. Do you resolve ?

Thank you

Regards

stuart.prevos

  • Beginner
  • *
  • Posts: 36
Re: Remove price of custom field value.
« Reply #2 on: June 25, 2012, 11:52:36 am »
I dont really understand what you are asking, can you give an example or image.

ciriman

  • Beginner
  • *
  • Posts: 18
Re: Remove price of custom field value.
« Reply #3 on: June 29, 2012, 15:44:26 pm »
I've add some custom fields to my products. When the buyer chooses a value the price is changing. Now the prices of each value is printed in the field. I only want to show the value.

I have the same problem, have found a solution?

mrooks1984

  • Beginner
  • *
  • Posts: 28
    • Cyberglide Computers
Re: Remove price of custom field value.
« Reply #4 on: June 30, 2012, 00:38:53 am »
hello, i think you mean, on dropdown menus each option is showing no additional charge? if this is correct, all you need to do is in the custom fields within the product is make sure all option are empty.
if you mean you dont want to show them within the dropdown menu and they have different prices or the same price but you dont want it to display in the dropdown menu, i fixed this by doing child products for each item keep the same title name and add the options within the sku code.
i think it can be done by editing the code, but i am not sure how, i have not found any other way around it myself.
let me know how you get on or if this is not what you mean.
Joomla and Virtuemart Website Designer

My Website:
http://www.cyberglide.co.uk

ciriman

  • Beginner
  • *
  • Posts: 18
Re: Remove price of custom field value.
« Reply #5 on: July 30, 2012, 18:41:43 pm »
VirtueMart 2.0.8e
After much stress I have the solution! I found the string that generates the content selection fields

administrator/components/com_virtuemart/models/customfields.php
Code: [Select]
$productCustom->text = $productCustom->custom_value . ' ' . $price;
delete from the string .$price or replace with another value..

Ziggo

  • Beginner
  • *
  • Posts: 6
Re: Remove price of custom field value.
« Reply #6 on: August 07, 2012, 16:46:39 pm »
wouw this is great. I already gave up, but now I finally have the sollution.
Thanks!

Elboy

  • Beginner
  • *
  • Posts: 12
Re: Remove price of custom field value.
« Reply #7 on: November 12, 2012, 15:54:10 pm »
Excellent, this works perfectly for me too. thanks for posting!

azamkl

  • Beginner
  • *
  • Posts: 14
Re: Remove price of custom field value.
« Reply #8 on: March 19, 2013, 08:37:33 am »
I have tried this method but with no avail. I guess it no longer work with the latest Version. I'm using VM 2.0.20 and Joomla 2.5.9  :'(
::Still looking for an answer::

mrooks1984

  • Beginner
  • *
  • Posts: 28
    • Cyberglide Computers
Re: Remove price of custom field value.
« Reply #9 on: April 04, 2013, 11:55:37 am »
Hello i am using the newest version of Virtuemart and this is what it needs to be set at to remove the +price in your dropdown menu.

file: 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

i use Komodo edit, then click save and reload the page.
Hope they build a option into the admin as it would be useful.
This has been tested and works, hope this has helped.
Joomla and Virtuemart Website Designer

My Website:
http://www.cyberglide.co.uk

Hiflo

  • Beginner
  • *
  • Posts: 14
Re: Remove price of custom field value.
« Reply #10 on: July 28, 2013, 10:36:30 am »
Hi,

VM Version 2.0.22a Joomla Version 2.5.11 PHP Version 5.2.17

Had the same problem: "No additional charge" in drop down list when all I wanted was a colour choice.

File Path on my server: public_html/language/en-GB/en-GB.com_virtuemart.ini

Line 70: COM_VIRTUEMART_CART_PRICE_FREE="No additional charge"

Changed to:

Line 70: COM_VIRTUEMART_CART_PRICE_FREE=""

Wasn't sure if I should remove quotes "" but it worked.  :P

Novices like me always save a file to desktop before editing & saving!

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2658
Re: Remove price of custom field value.
« Reply #11 on: July 28, 2013, 12:53:01 pm »
Use language overrides trick, Hiflo, or next VM update will bash your change.

bmango

  • Beginner
  • *
  • Posts: 4
Re: Remove price of custom field value.
« Reply #12 on: August 15, 2013, 11:08:29 am »
In version 2.0.2 the line to edit is at number 583. (took me a while to find it)

clabis71

  • Beginner
  • *
  • Posts: 38
Re: Remove price of custom field value.
« Reply #13 on: September 27, 2013, 11:58:37 am »
How can I remove the prices from the custom fields in the version 2.0.22e?
The above remedy does not work unfortunately
Thanks

Maxim Pishnyak

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2658
Re: Remove price of custom field value.
« Reply #14 on: September 30, 2013, 07:01:04 am »
This remedy?
VirtueMart 2.0.8e
After much stress I have the solution! I found the string that generates the content selection fields

administrator/components/com_virtuemart/models/customfields.php
Code: [Select]
$productCustom->text = $productCustom->custom_value . ' ' . $price;
delete from the string .$price or replace with another value..