NOw I've setup my product so show in my admin:
and always show the retail price also with wholesale account
http://www.100asa.it/index.php?main_...oducts_id=1393
about line 145...
PHP Code:
// do not select display only attributes and attributes_price_base_included is true
$product_att_query = $db->Execute("select options_id, price_prefix, options_values_price, options_values_price_w, attributes_display_only, attributes_price_base_included, round(concat(price_prefix, options_values_price), 5) as value from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$products_id . "' and attributes_display_only != '1' and attributes_price_base_included='1'". " order by options_id, value");
and other
PHP Code:
/ bof Twitch Wholesale Attributes - this filters the wholesale price for the attribute - display on product_info page
if ($_SESSION['customers_wholesale']=='1') {
$the_base_price += (($product_att_query->fields['price_prefix'] == '-') ? -1 : 1) * $product_att_query->fields['options_values_price_w'];
} else {
$the_base_price += (($product_att_query->fields['price_prefix'] == '-') ? -1 : 1) * $product_att_query->fields['options_values_price'];
}
// eof Twitch Wholesale Attributes
and
PHP Code:
// bof Twitch Wholesale Attributes - filter the attributes price for wholesale
if ($_SESSION['customers_wholesale']=='1') {
// normal attributes price
if ($pre_selected->fields["price_prefix"] == '-') {
$attributes_price_final -= $pre_selected->fields["options_values_price_w"];
} else {
$attributes_price_final += $pre_selected->fields["options_values_price_w"];
}
} else {
// normal attributes price
if ($pre_selected->fields["price_prefix"] == '-') {
$attributes_price_final -= $pre_selected->fields["options_values_price"];
} else {
$attributes_price_final += $pre_selected->fields["options_values_price"];
}
}
// eof Twitch Wholesale Attributes
Bookmarks