VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: dylanphelan on July 04, 2012, 20:45:44 PM

Title: Custom fields, pricing and discounts
Post by: dylanphelan on July 04, 2012, 20:45:44 PM
I have set up a cart variant for different colours.

In one example I have two colours, white and chrome.

The normal retail price on the white one is R3095, my price is R2995. So I have used the price override for this.

My price on the chrome item is R3250. The white one works fine, but when you select the chrome option, the user is still billed R2995 and not R3250.

I will attach some pics to illustrate. What is the correct way to do this?  ???

[attachment cleanup by admin]
Title: Re: Custom fields, pricing and discounts
Post by: dylanphelan on July 04, 2012, 20:50:56 PM
Also, I find the the colour options don't display is such an intuitive manner.

For example, in the list box I have:

white
chrome R255

white is fine, it's blank as there is no price change, but chrome should read:

chrome: +R255

OR

chrome: add R255
Title: Re: Custom fields, pricing and discounts
Post by: easy on July 28, 2012, 21:18:27 PM
did you try override price to tax?
Title: Re: Custom fields, pricing and discounts
Post by: AroJazz on August 03, 2012, 12:27:42 PM
administrator\components\com_virtuemart\helpers\calculationh.php
find
$prices['salesPrice'] = $product_override_price;
replace
$prices['salesPrice'] = $product_override_price + doubleval($variant);