Totally Zenned
- Join Date:
- Apr 2007
- Location:
- Ontario, Canada
- Posts:
- 1,733
- Plugin Contributions:
- 14
DUAL Pricing v2
Check that this file:
includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php
**contains this code:
// base price
//*********************************************************************
//DISPLAY NET RETAIL PRICE IF WHOLESALE CUSTOMER IS LOGGED ON
//********************************************************************
if ($_SESSION['customers_wholesale'] && $_SESSION['customers_wholesale'] != '0' ) {
echo '<span id="retailwhole">' . ' Retail Price: '.$one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == '1') ? TEXT_BASE_PRICE : '') . zen_get_products_display_retail_net_price((int)$_GET['products_id']).'</span><br /> ';
}
//***********************************************************************
//END DISPLAY NET RETAIL PRICE IF WHOLESALE CUSTOMER IS LOGGED ON
//********************************************************************
if ($show_onetime_charges_description == 'true') {
$one_time = ' <span> Your Price: ' . TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION . '</span><br />';
} else {
$one_time = '';
}
//*********************************************************************************
//Properly display price labeling when set to Whole sale and when not
//******************************************************************************
if ($_SESSION['customers_wholesale'] && $_SESSION['customers_wholesale'] != '0' ) {
echo '<span id="whole">Whole Sale Price: ';
} else {
echo '<span id="retail">Retail Price: ';
}
echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);
echo '</span>';
//*********************************************************************************
//END Properly display price labeling when set to Whole sale and when not
//******************************************************************************
Those echo lines actually print the code on the screen in the cart. Meaning two things, if they don't exist there will be nothing to print and, if they do exist, there is a break somewhere in the equation that is passing the information to them to print.
Just to check, you have added this SQL patch from post #695:
ALTER TABLE customers ADD customers_wholesale VARCHAR( 4 ) DEFAULT '0' NOT NULL;
Twitch.
