VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: mdelreal on July 15, 2012, 13:24:49 PM

Title: SOLVED: Delete price in custom field
Post by: mdelreal on July 15, 2012, 13:24:49 PM
Hi,

I want to delete the price in the custom field but i don't know how to do... please help me.

Thanks a lot
Cheers,
Manuel


(http://palabradechef.com/precio.jpg)
Title: Re: Delete price in custom field
Post by: mdelreal on July 17, 2012, 18:07:46 PM
I do not think anyone knows how to fix this   ;)

Thanks in advance
Manuel
Title: Re: Delete price in custom field
Post by: jefchenko on July 18, 2012, 00:33:37 AM
in virtuemart administrator backend: go to products, and edit your specific olive oil product.
Then look at the different tabs, the last one mentions custom fields, where you will find the price as a custom field (stockable variant)
Title: Re: Delete price in custom field
Post by: mdelreal on July 18, 2012, 17:42:11 PM
Hi Jefchenko, thanks for your responce.

I think I explained badly.

I want the price of that product option but i don't want to see the price at the drop-down

Thanks
Manuel
Title: Re: Delete price in custom field
Post by: mdelreal on July 21, 2012, 21:10:49 PM
anyone???

Please, i'm lost

Thanks
Manuel
Title: Re: Delete price in custom field
Post by: easy on July 28, 2012, 21:48:07 PM
search this forum, it was somewhere here, you have to edit one file only
Title: Re: Delete price in custom field
Post by: mdelreal on July 29, 2012, 12:20:12 PM
Where???, i was looking for but i didn't found it
Title: Re: Delete price in custom field
Post by: lol2x on July 29, 2012, 13:21:26 PM
yea but in forum there ist only for old version of VM not for 2.0.8.e
Title: Re: Delete price in custom field
Post by: easy on July 29, 2012, 13:24:53 PM
Hi mdelreal,

I read your other post on this forum and please let me know what you'd like to get most?

- show custom field price without any tax?
or
- hide custom field price at all?

If the first option is what you like most please do a print screen of your taxes page (configuration/taxes)
Title: Re: Delete price in custom field
Post by: mdelreal on July 29, 2012, 18:45:11 PM
Either options are valid:

Hide prices on custom fields or set prices with taxes  (if possible I would like to know the two ways to do  ;) )

I think the problem because in my country we have 3 types of VAT

Thanks
Manuel

(http://palabradechef.com/taxes.jpg)

Title: Re: Delete price in custom field
Post by: ciriman on July 30, 2012, 18:40:18 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.. i hope this help you
Title: SOLVED: Re: Delete price in custom field
Post by: mdelreal on July 30, 2012, 19:33:05 PM
Hi Ciriman,

Fantastic, works fine!!!

Thanks a lot
Manuel
Title: Re: SOLVED: Delete price in custom field
Post by: easy on August 01, 2012, 01:45:47 AM
Hi guys,
I'm glad you found it, sorry I didn't get back to you earlier.

You can also, if you like, add after custom filed name in the same box the total price with the currency symbol but it will beshown in the cart as well!

So your custom field can show the total price instead of wrong taxed additional fee. You can also write custom field fee of course there. Whatever you like but remember it will be text only and you will need to edit it when you change the custom field value as well.
Title: Re: SOLVED: Delete price in custom field
Post by: TheBlueMage on August 16, 2012, 11:16:48 AM
We have a similar problem to mdelreal in that a number of our products have custom fields, but we want our customers only to see the prices with tax. Showing the before tax figure is creating confusion.
Ciriman identified where the price is generated (excellent, thanks Ciriman) but what do we replace $price with to show customer the after tax figure? I'm thinking it's probably something simple, but being a coding newbie I'm at a loss.

VirtueMart is a great product, but show me how to fix this niggly problem and for us it will be an Ace product!

Hope someone can help as we can't find anything else that fits on the forum's boards.
Title: Re: SOLVED: Delete price in custom field
Post by: lucvillalba on October 10, 2012, 15:47:47 PM
Works perfect!!!!!!!
Title: Re: SOLVED: Delete price in custom field
Post by: binarix on May 08, 2014, 02:38:43 AM
once we do these changes how can we update the next release from Virtuemart. then we have to template override?

is it possible to override this too?
Title: Re: SOLVED: Delete price in custom field
Post by: GJC Web Design on May 08, 2014, 10:13:08 AM
you can't do an over ride - it's a model - (well you can but it is a lot more complicated than template over rides)