Show Members Pricing - Virtuemart

Shop.BrowseInsert below line - if(_show_prices = '1' && $auth['show_prices']) { //            $product_price = $ps_product->show_price( $db_browse->f("product_id") );    // DUALPRICE MODIFICATION BEGINS             if ($auth["shopper_group_id"] == '7')            {                $product_price_normal = $ps_product->show_price( $db_browse->f("product_id"), false, 5 );                $product_price_member = $ps_product->show_price( $db_browse->f("product_id"), false, 7 );            }            else            {                $product_price_member = $ps_product->show_price( $db_browse->f("product_id"), false, 7 );                $product_price_normal = $ps_product->show_price( $db_browse->f("product_id"), false, 5 );            }                $product_price =  '<img src="/images/tackle-rat-sml.png" style="float:left;padding-left: 22px;position:absolute;z-index:1;" border="0" /><span style="color:#fff;float:left;position:absolute;padding:22px 0 0 35px;z-index:2;">' . $product_price_member . '</span><br class="clear"/><span style="float:left;position:absolute;padding:40px 0px 0px;z-index:2;"> RRP ' .$product_price_normal;     // DUALPRICE MODIFICATION ENDS ------------------------------------------    ps_product.php Insert below line -      * @param boolean $check_multiple_prices Check if the product has more than one price for that shopper group? and above lines -                         // Get the product_parent_id for this product/item            $product_parent_id = $this->get_field($product_id, "product_parent_id"); // DUALPRICE MODIFICATION BEGINS     function get_price($product_id, $check_multiple_prices=false, $overrideShopperGroup='' ) {         if( empty( $product_id)) return array();         $auth = $_SESSION['auth'];         $cart = $_SESSION['cart'];         if( empty( $GLOBALS['product_info'][$product_id]['price'] )         || !empty($GLOBALS['product_info'][$product_id]['price']["product_has_multiple_prices"])         || $check_multiple_prices) {             $db = new ps_DB;             $vendor_id = $this->get_vendor_id($product_id);             if( $overrideShopperGroup === '') {                 $shopper_group_id = $auth["shopper_group_id"];                 $shopper_group_discount = $auth["shopper_group_discount"];             }             else {                 $shopper_group_id = $overrideShopperGroup;                 $shopper_group_discount = 0;             }             // ps_shopper_group::makeDefaultShopperGroupInfo();     // DUALPRICE MODIFICATION ENDS         Insert below line -      * @param boolean $hide_tax Wether to show the text "(including X.X% tax)" or not and above line -                 $tpl->set( 'base_price_info', $base_price_info ); // DUALPRICE MODIFICATION BEGINS    function show_price( $product_id, $hide_tax = false, $shopper_group="") {         global $VM_LANG, $CURRENCY_DISPLAY,$vendor_mail;         $auth = $_SESSION['auth'];         //echo "Show Price :".$product_id."+".$hide_tax."+".$shopper_group";         $tpl = new $GLOBALS['VM_THEMECLASS']();                 $product_name = htmlentities( $this->get_field($product_id, 'product_name'), ENT_QUOTES );         $tpl->set( 'product_id', $product_id );         $tpl->set( 'product_name', $product_name );         $tpl->set( 'vendor_mail', $vendor_mail );         $discount_info = $base_price = array();         $text_including_tax = '';         if( $auth['show_prices'] ) {             // Get the DISCOUNT AMOUNT             $discount_info = $this->get_discount( $product_id );             if( !$discount_info["is_percent"] && $discount_info["amount"] != 0 ) {                 $discount_info["amount"] = $GLOBALS['CURRENCY']->convert($discount_info["amount"]);             }             // Get the Price according to the quantity in the Cart             $price_info = $this->get_price( $product_id, false, $shopper_group );             $tpl->set( 'price_info', $price_info );             // Get the Base Price of the Product             $base_price_info = $this->get_price($product_id, true, $shopper_group );     // DUALPRICE MODIFICATION ENDS -----------------------------------------------------shop.product_details Insert below lines -     else {        $product_price_lbl = "<strong>". $VM_LANG->_('PHPSHOP_CART_PRICE'). ": </strong>";    } and above lines -    }else {    $product_price_lbl = "";    $product_price = "";}     //$product_price = $ps_product->show_price( $product_id );        // DUALPRICE MODIFICATION BEGINS     if ($auth["shopper_group_id"] == '7')    {        $product_price_normal = $ps_product->show_price( $product_id, false, 5 );        $product_price_member = $ps_product->show_price( $product_id, false, 7 );    }    else    {        $product_price_member = $ps_product->show_price( $product_id, false, 7 );        $product_price_normal = $ps_product->show_price( $product_id, false, 5 );    }         $product_price = $product_price_normal.' Price '.$product_price_member;     // DUALPRICE MODIFICATION ENDS