Originally Posted by
dbrewster
MissterX,
I like your suggestion. I'd like to include the group pricing group name in the display. I've been playing around with how to include it in the product info display page, using your product_info_group_pricing_discount.php function, but I am not having success. Have you worked it out?
...
Hi D.
I think so.
File: includes/functions/extra_functions/product_info_group_pricing_discount.php
Line no: 8
Code:
$sql = 'SELECT group_percentage g_p FROM '.TABLE_GROUP_PRICING.' WHERE group_id LIKE "'.$q_sql->fields['cg_p'].'"';
should be change to:
Code:
$sql = 'SELECT group_percentage g_p, group_name g_n FROM '.TABLE_GROUP_PRICING.' WHERE group_id LIKE "'.$q_sql->fields['cg_p'].'"';
Line no: 14
Add after it:
Code:
$group_name = $q_sql->fields['g_n'];
Then you can put in the group name ($group_name) where you want.
Bookmarks