The VirtueMart forums are full of complaints like:

When a shopper from my wholesale group (50% off) opens the product page it shows the parent products discounted price as the price of each child. Any help would be appreciated.

So, here's the much awaited fix!

Make backups. This is a core hack, and comes with absolute no guarantee!! Use it at own risk!

Open /administrator/components/com_virtuemart/classes/ps_product.php.

Locate function get_price (around line 1586, depending on version)

Locate in the function the comment:

// If this is a child product and it has not a price for the requested shopper group, 
get the price for the default shopper group

In the line below:

$price=$this->getPriceByShopperGroup($product_parent_id,$GLOBALS['vendor_info'][$vendor_id]['default_shopper_group_id'], 
$check_multiple_prices,$volume_quantity_sql);

Replace $product_parent_id with $product_id to get this line at the end:

$price=$this->getPriceByShopperGroup($product_id,$GLOBALS['vendor_info'][$vendor_id]['default_shopper_group_id'], 
$check_multiple_prices,$volume_quantity_sql);

Works for me!

Category: VirtueMart hacks

If you are not interested in Costumes , then you have already missed a lot. Benefit from fantastic savings on textile sourcing , just by taking a look at www.gosourcing365.com Visit bettermedshop.com to find out more regarding Buy Viagra online with paypal big-gate made a real revolution in the industry. Are you looking for "fake Rolex"? Check out upscalerolex The passionate experts in this field are ready to answer all of your requests. 토토사이트 메이저놀이터 안전토토 If you are not interested in iphone repair Gainesville , then you have already missed a lot.