News:

Support the VirtueMart project and become a member

Main Menu

Custom fields, pricing and discounts

Started by dylanphelan, July 04, 2012, 20:45:44 PM

Previous topic - Next topic

dylanphelan

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]

dylanphelan

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

easy


AroJazz

administrator\components\com_virtuemart\helpers\calculationh.php
find
$prices['salesPrice'] = $product_override_price;
replace
$prices['salesPrice'] = $product_override_price + doubleval($variant);