Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / Low Order Fee for Group Discount members only

Low Order Fee for Group Discount members only

Locked

Views: 979

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
19 Apr 2010, 5:03 AM
#1
vandiermen avatar

vandiermen

Totally Zenned

Join Date:
Feb 2007
Posts:
518
Plugin Contributions:
1

Low Order Fee for Group Discount members only

I was wondering if it is at all possible to only enable Low Order Fee for members of a Group Discount

e.g.

// Check if Group Discount member
if (IS_ADMIN_FLAG == false && $_SESSION['cart']->Group Discount member() !no) { 
  $this->enabled = false; 
} else { 
  $this->enabled = true; 
}  
 
20 Apr 2010, 12:15 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Low Order Fee for Group Discount members only

Let's say the customer has to be part of customers_group_pricing 3 ...

You can customize the file:
/includes/modules/order_total/ot_loworderfee.php

// only show if customer is a member of customers_group_pricing 3
      global $db;
      $chk_group = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'"); 

      if ($chk_group->fields['customers_group_pricing'] == 3 && MODULE_ORDER_TOTAL_LOWORDERFEE_LOW_ORDER_FEE == 'true') {
        switch (MODULE_ORDER_TOTAL_LOWORDERFEE_DESTINATION) {

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!