VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: goldenprizm on February 11, 2013, 02:55:52 AM

Title: custom fields (hide the additional cost product details page)
Post by: goldenprizm on February 11, 2013, 02:55:52 AM
Joomla:  2.5.8
Virtuemart:  2.0.18a

I created a custom field with a value and a price.  I need hide the custom field price until checkout.  Can anyone lead me in the right direction.
Right now it is adding the custom price on the product details.

so it looks like this:
Original price 25.00
Custom Field +4
total price is 28.00

I need it to look like this
Original price 25.00
Custom field will be displayed only when product is added to cart then the total will be 28.00
Title: Re: custom fields (hide the additional cost product details page)
Post by: Snostar on February 11, 2013, 16:57:56 PM
I would love to know the answer to this also....been trying to figure it for awhile.
Title: Re: custom fields (hide the additional cost product details page)
Post by: GJC Web Design on February 11, 2013, 17:15:11 PM
how about with page dependant css?
Title: Re: custom fields (hide the additional cost product details page)
Post by: Snostar on February 11, 2013, 17:23:55 PM
what is a page dependant css?   Would I have to creat a new css?
Title: Re: custom fields (hide the additional cost product details page)
Post by: goldenprizm on February 12, 2013, 02:34:39 AM
Not a css issue....   

I already tried to hide the custom field in the product detail page but when you do that it does not add the custom field to the cart.  There got to be something in the php where we can make the adjustment.
Title: Re: custom fields (hide the additional cost product details page)
Post by: goldenprizm on February 16, 2013, 00:45:07 AM
we'll this it what i did and it seems to work

try using this as a price on you product details....

<?php  echo number_format($this->product->prices['salesPrice'], 2, '.', '.');  ?>
Still testing