Forums / Built-in Shipping and Payment Modules / Different Shipping Options for Different Customer Types

Different Shipping Options for Different Customer Types

Started by scottmcclean on 15 Sep 2011, 8:52 AM · Views: 5,562

Results 41 to 44 of 44
27 Mar 2013, 1:09 PM
#41
ajeh avatar

ajeh

Oba-san

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

Different Shipping Options for Different Customer Types

That code should be able to work in either one ...

What debug logs do you see in either /cache or /logs depending on your version of Zen Cart?

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!

27 Mar 2013, 1:35 PM
#42
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

Re: Different Shipping Options for Different Customer Types

Thank you for your reply:

This is what i got when i tried different places to put in the code:

[27-Mar-2013 10:58:47 Europe/Berlin] PHP Fatal error: Call to a member function Execute() on a non-object in /public_html/clean/includes/modules/shipping/zones.php on line 116

[27-Mar-2013 11:07:33 Europe/Berlin] PHP Fatal error: Call to a member function Execute() on a non-object in /public_html/clean/includes/modules/shipping/zones.php on line 116

[27-Mar-2013 11:08:07 Europe/Berlin] PHP Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /public_html/clean/includes/modules/shipping/zones.php on line 348

[27-Mar-2013 11:08:16 Europe/Berlin] PHP Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /public_html/clean/includes/modules/shipping/zones.php on line 348

[27-Mar-2013 11:25:46 Europe/Berlin] PHP Fatal error: Call to a member function Execute() on a non-object in /public_html/clean/includes/modules/shipping/zones.php on line 138

[27-Mar-2013 11:34:57 Europe/Berlin] PHP Fatal error: Call to a member function Execute() on a non-object in /public_html/clean/includes/modules/shipping/zones.php on line 142

27 Mar 2013, 2:12 PM
#43
ajeh avatar

ajeh

Oba-san

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

Re: Different Shipping Options for Different Customer Types

Below the line:

      if (!IS_ADMIN_FLAG) {

add the code:

      if (!IS_ADMIN_FLAG) {
 [B]       global $db; 
[/B]

Add all of the code around 116 below the code:

      // disable only when entire cart is free shipping
      if (zen_get_shipping_enabled($this->code)) {
        $this->enabled = ((MODULE_SHIPPING_ZONES_STATUS == 'True') ? true : false);
      }

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!

27 Mar 2013, 2:53 PM
#44
dre avatar

dre

New Zenner

Join Date:
Mar 2006
Location:
The Netherlands
Posts:
92
Plugin Contributions:
0

Re: Different Shipping Options for Different Customer Types

Thank you !!!!

For now its working.

Now i go make a second set shipping modules for regular customers.