Sensei
- Join Date:
- Jan 2004
- Posts:
- 63,512
- Plugin Contributions:
- 176
Group Pricing Per Item Issue
It appears there's a piece of code missing in the contribution.
/includes/classes/shopping_cart.php
Go to line 1093.
Copy lines 1093-1101 to clipboard:```
if($_SESSION['customer_id']) {
$customer_group_query = "select gp.group_name
from " . TABLE_CUSTOMERS . " cu
left join " . TABLE_GROUP_PRICING . " gp on cu.customers_group_pricing=gp.group_id
where cu.customers_id = " . $_SESSION['customer_id'];
if($customer_group = $db->Execute($customer_group_query)) {
$customers_group=$customer_group->fields['group_name'];
}
}
Go up to line 613 and paste it in there, right after this line```
if (!is_array($this->contents)) return 0;
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.