VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: agrupe on June 02, 2012, 13:24:48 PM

Title: Calculated custom field?
Post by: agrupe on June 02, 2012, 13:24:48 PM
Hi,

I'm looking for a way to display a custom filed which has a flexible content depending on the product price.

Example :  Customfield = Productprice -0.15

If the product price is 1€ then the customfiled should show 0.85€. If it is 1.25€ then the custom filed should be 1.10€. etc etc

Does anybody know how to get that?

Thanks

Andreas

P.S: That's the last thing I need to do before I can go life with my shop ;-)
Title: Re: Calculated custom field?
Post by: lipes on June 02, 2012, 14:55:37 PM
Did you get the CF working in your site?
I am in trouble with that...

Do you have a option if the Costumer doesnt want to select 'custom field' option and want just the default value for the product... is working in your site?

To make CF with Cart Variant you must read this 2st: http://forum.virtuemart.net/index.php?topic=90833.msg298101#msg298101

or install the VM2 sample data that will give you many CF types examples..
but for me any of them isnt working because the price of CF (cart variant) when is added to the Cart is different from the selection before..

live example not working (with problem): http://outros.net23.net/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=8&virtuemart_category_id=2
If you select different sizes and add to the cart you'll see always the same price added :(