Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Oct 2008
    Posts
    19
    Plugin Contributions
    0

    Default different shipping for different customers

    Hi guys.
    I've 2 problems:
    1st: ABOUT ENGLISH: my english isn't so good

    2nd: ABOUT ZEN CART.
    I've installed mod DUALPRICING and now i'd like to assign different shipping to customers who are RETAIL CUSTOMERS or WHOLESALE CUSTOMERS and different shipping for different WHOLESALE PRICING LEVEL.
    Can anybody help me?
    Sorry for my english...

    Thank you all.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: different shipping for different customers

    How do you want your shipping to work for a Retail Customer?

    How do you want your shipping to work for a Whole Sale Customer?
    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: v1.5.5]
    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!

  3. #3
    Join Date
    Oct 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: different shipping for different customers

    i'd like to implement something like this:

    retail costumers: 11 euros of shipping cost for orders till 350€ and free shipping for orders >350€

    whole sale costumers: 15€ for all the orders.

    Can you help me? Thank you so much....


  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: different shipping for different customers

    What distinguishes your Retail customers from your Whole Sale customers?

    Do your customers have to login to shop on your site?
    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: v1.5.5]
    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!

  5. #5
    Join Date
    Oct 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: different shipping for different customers

    I've installed MOD dualpricing and so I distinguish different customers giving them different value in WHOLESALE PRICING LEVEL. 0 is for Retail Customers and 1 or 2 is for different categories of wholesale customers.
    All of them they have to login to shop, and thei login using the same form.

    Any ideas?
    Thank you so much Ajeh for your attention

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: different shipping for different customers

    You could clone the Flat Rate flat shipping module and customize one file to be used for the Whole Sale customers and one file to be used for the Retail Customers ...

    Then on the Retail Customers, add in a further test on the order total to see if the order should be free shipping ...

    Then, customize the Free Options freeoptions shipping module to be used on Orders with a Total > 350 ... and customize that so it only shows for Retail Customers ...

    All of the shipping modules are controlled based on the value of the $this->enabled ... when true, it shows and when false it does not ...

    Do a search on:
    clone flat

    to see how you can create the extra shipping module ...

    As to testing for which customer you are on, there should be something set with your Add On to distinguish one from another that can be used in the shipping module ...
    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: v1.5.5]
    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!

  7. #7
    Join Date
    Oct 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: different shipping for different customers

    Wowowow

    In works great!!!!!
    Thank you so much Ajeh....

    And it was easy too....

    I installed the mod you said and then added only few lines:

    $this->enabled = ((MODULE_SHIPPING_FLATCLONE_STATUS == 'True') ? true : false);
    if($_SESSION['customer_whole']=='2' && $this->enabled==true)
    {
    $this->enabled=true;
    }else{
    $this->enabled=false;
    }

    in the files of shipping (flatClone.php and zones.php)...
    THAT'S ALL!!!

    THANK YOU AGAIN!!!

    Have nice days...
    ligrex

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: different shipping for different customers

    Thanks for the update and glad that this was able to help you with your shipping issue for whole sale and retail customers ...
    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: v1.5.5]
    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!

  9. #9
    Join Date
    Sep 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: different shipping for different customers

    Shipping issue for wholesale and retail customer.
    I've installed mod DUALPRICING and like to assign different shipping to RETAIL CUSTOMERS versus WHOLESALE CUSTOMERS. RETAIL CUSTOMER is assigned 0 and WHOLESALE CUSTOMER IS 1. I have installed 2 shipping modules. Table Rate and Zone Rate. The Table Rate is set to Price level 49.99:7.95,2000:0.00 for Zone US 48 States(not Alsaka and Hawaii). The Zone Rate is set to Weight level. Zone 1 is US with 1:7.95,2:13.95,3:15.95 and so on. Zone 2 is List of Countries worldwide with 1:30.00,2:40.00 and so on.
    QUESTION: I would like for WHOLESALE CUSTOMER to not get the Table Rate but only the Zone Rate. I added this code snippet to the table.php (includes/modules/shipping/table.php)
    - see insert below //disable only when customer is whole

    Unfortunately it does not do the job. Still see both shipping modules on check out.

    Anyone can help me with this. Thank you

    function table() {
    global $order, $db;

    $this->code = 'table';
    $this->title = MODULE_SHIPPING_TABLE_TEXT_TITLE;
    $this->description = MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION;
    $this->sort_order = MODULE_SHIPPING_TABLE_SORT_ORDER;
    $this->icon = '';
    $this->tax_class = MODULE_SHIPPING_TABLE_TAX_CLASS;
    $this->tax_basis = MODULE_SHIPPING_TABLE_TAX_BASIS;

    // disable only when customer is wholesale
    $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
    if($_SESSION['customer_whole']=='1' && $this->enabled==true)
    {
    $this->enabled = false;
    }
    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
    $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
    }

    if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_TABLE_ZONE > 0) ) {
    $check_flag = false;
    $check = $db->Execute("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_TABLE_ZONE . "' and zone_country_id = '" . $order->delivery['country']['id'] . "' order by zone_id");
    while (!$check->EOF) {
    if ($check->fields['zone_id'] < 1) {
    $check_flag = true;
    break;
    } elseif ($check->fields['zone_id'] == $order->delivery['zone_id']) {
    $check_flag = true;
    break;
    }
    $check->MoveNext();
    }

    if ($check_flag == false) {
    $this->enabled = false;
    }
    }
    }
    /**
    * Enter description here...
    *
    * @param unknown_type $method
    * @return unknown
    */

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: different shipping for different customers

    You have the right idea ... however, put it below the code:
    Code:
    // disable only when entire cart is free shipping
    if (zen_get_shipping_enabled($this->code)) {
    $this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
    }
    That is taking whatever test you did and resetting it based on if the module is installed or not ... so that more or less, the code is being ignored ...
    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: v1.5.5]
    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!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v150 Different payment methods for different Customers
    By Tuner in forum Managing Customers and Orders
    Replies: 9
    Last Post: 18 Nov 2012, 04:51 PM
  2. Using different Authorization types for different customers in firstdata?
    By rjkkjr in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 18 May 2011, 07:45 PM
  3. Different prices for different customers
    By uncobeth in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 8 Mar 2011, 07:43 PM
  4. Replies: 8
    Last Post: 3 Sep 2010, 06:29 AM
  5. Replies: 5
    Last Post: 29 Jan 2008, 06:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR