News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Remove price of custom field value.

Started by Ziggo, May 07, 2012, 12:33:42 PM

Previous topic - Next topic

Ziggo

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

Hi,

I need the same of you. Do you resolve ?

Thank you

Regards

stuart.prevos

I dont really understand what you are asking, can you give an example or image.

ciriman

Quote from: Ziggo on May 07, 2012, 12:33:42 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

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

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
$productCustom->text = $productCustom->custom_value . ' ' . $price;

delete from the string .$price or replace with another value..

Ziggo

wouw this is great. I already gave up, but now I finally have the sollution.
Thanks!

Elboy

Excellent, this works perfectly for me too. thanks for posting!

azamkl

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

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

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

Use language overrides trick, Hiflo, or next VM update will bash your change.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

bmango

In version 2.0.2 the line to edit is at number 583. (took me a while to find it)

clabis71

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

This remedy?
Quote from: ciriman 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
$productCustom->text = $productCustom->custom_value . ' ' . $price;

delete from the string .$price or replace with another value..
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart