Hi There:
Thanks a million for this contribution... what a lifesaver.
I was wondering if you can tell me what I might be doing wrong. For some reason, I cannot seem to get the text to change depending on if the person logged in has a wholesale account or not.
I would like it to read "WholeSale Price" or "Retail Price" as it should be doing, but no matter what I do, it always reads Retail Price. I took a look at the code in tpl_product_info_display.php in the templates directory and it should work, but doesn't.
Here is the code from my template file:
PHP Code:
//*********************************************************************************
//***Properly display price labeling when set to Whole sale and when not
//*********************************************************************************
if ($_SESSION['customers_whole'] && $_SESSION['customers_whole'] != '0' ) {
echo '<span id="whole">WholeSale 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
//*********************************************************************************
I checked my database and there is an entry for "customers_whole" in the zen_customers table. Originally the file was marked "customer_whole", note the lack of the 's'. So I made the modification here. But it still doesn't work. Perhaps I don't understand how the $SESSION widget works to troubleshoot further.
Can you point me in a place to check?
Thanks,
Ed
Bookmarks