Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 43
  1. #21
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Different Shipping Options for Different Customer Types

    You just stuck that code where ever ... I do not know what module you are using but it should have a line like the Checkout/Money Order moneyorder ...

    The code would go between the two lines in black:
    Code:
          if ((int)MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID > 0) {
            $this->order_status = MODULE_PAYMENT_MONEYORDER_ORDER_STATUS_ID;
          }
    
    // bof: Only for Discount Group 2
          if (!IS_ADMIN_FLAG) {
            global $db;
            $chk_discount_group_sql = "SELECT customers_group_pricing FROM " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "'";
            $chk_discount_group = $db->Execute($chk_discount_group_sql);
            if ($chk_discount_group->fields['customers_group_pricing'] != 2) {
              $this->enabled = false;
            }
          }
    // eof: Only for Discount Group 2
    
          if (is_object($order)) $this->update_status();
    NOTE: the Zen Cart Free Charge freecharger ONLY will work when there are NO chargers on the Order and NO shipping as in a totally FREE Order ...

    It does not MAKE the order free ... it shows *because* the order is Free ...
    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!

  2. #22
    Join Date
    Jan 2012
    Location
    Northern Indiana
    Posts
    41
    Plugin Contributions
    0

    Default Re: Different Shipping Options for Different Customer Types

    Quote Originally Posted by Ajeh View Post
    You just stuck that code where ever ...
    HAHAHA! No, I didn't just stick it where ever... I put it between the class constructor and methods code, essentially where you put it in your first example. The structure of the purchaseorder code is slightly different from that of the built in modules but I don't know that placement is my problem.

    If you look over my most recent post you may realize that I am having problems regardless of where I put the code.

    I will test your most recent example and see where I end up!

    Thanks Linda!
    Michael (Zen Greenhorn)
    Remember: Every expert started out as a beginner!

  3. #23
    Join Date
    Jan 2012
    Location
    Northern Indiana
    Posts
    41
    Plugin Contributions
    0

    Default Re: Different Shipping Options for Different Customer Types

    Got it!

    Part of my process for modifying code is to create an 'OLD' version of the modified file whereby I will prepend the working filename with 'OLD.'

    This works fine in most circumstances. However, ZC sees any files in the /includes/modules/payment folder as valid files which should be processed in the admin.

    I removed the OLD.purchaseorders.php and VIOLA! It worked PERFECTLY!

    Thank you again Linda, for your wise council! I will now be able to make all payment options exclusively available to my CSRs!
    Michael (Zen Greenhorn)
    Remember: Every expert started out as a beginner!

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

    Default Re: Different Shipping Options for Different Customer Types

    Thanks for the update that this is now working for you ...

    NOTE: Be careful as all modules directories are auto loading for any file that ends in php ... and that can mess you up on creating files that conflict with one another ...
    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. #25
    Join Date
    Jan 2012
    Location
    Northern Indiana
    Posts
    41
    Plugin Contributions
    0

    Default Re: Different Shipping Options for Different Customer Types

    Quote Originally Posted by Ajeh View Post
    NOTE: Be careful as all modules directories are auto loading for any file that ends in php ... and that can mess you up on creating files that conflict with one another ...
    Good information to know. Thank you!
    Michael (Zen Greenhorn)
    Remember: Every expert started out as a beginner!

  6. #26
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Different Shipping Options for Different Customer Types

    Ajeh, hope you are still subscribed to this thread, looks like you may be able to help me with a problem I have. Been reading this thread and really want to do the same thing with the minimum order mod. Only force minimum order on customers in price group 2 for example. Hope you can help?
    Thanks
    Phil

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

    Default Re: Different Shipping Options for Different Customer Types

    I have not forgotten you ... I just have not had time to really look at this and what you need vs the examples posted ...
    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!

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

    Default Re: Different Shipping Options for Different Customer Types

    Using the Minimum Order Add-on from:
    http://www.zen-cart.com/downloads.php?do=file&id=402

    I have re-written it to work with customers_group_pricing = 2

    Using for the new code for:
    /includes/classes/observers/class.minimum_order_amount.php

    and changing it to the code in the attached file ...

    This should do what you are trying to do with a normal install of the Minimum Order and setting the Minimum amounts to what you need for this group ...

    Let us know if it works for you ...
    Attached Files Attached Files
    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. #29
    Join Date
    Sep 2011
    Posts
    86
    Plugin Contributions
    0

    Default Re: Different Shipping Options for Different Customer Types

    Hello,

    I am using zencart 1.3.9h

    I have two types of customer’s retailers and online shoppers. For my retail customers some of them use their own shipper payments have them set in a discount group called wholesalers.

    I am NOT using zones other than taxes for my California customers.

    I would like to be able to give this group free shipping so that I can process my orders for them without having to use a coupon code.

    I have enabled freeoptions and added the code :

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

    // bof: Only for Discount Group 2
    if (!IS_ADMIN_FLAG) {
    $chk_discount_group_sql = "SELECT customers_group_pricing FROM " . TABLE_CUSTOMERS . " WHERE customers_id = '" . $_SESSION['customer_id'] . "'";
    $chk_discount_group = $db->Execute($chk_discount_group_sql);
    if ($chk_discount_group->fields['customers_group_pricing'] != wholesalers) {
    $this->enabled = false;
    }
    }
    // eof: Only for Discount Group 2

    if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_FREEOPTIONS_ZONE > 0) ) {


    I then added one of my test accounts to the wholesale group and when I get to the shipping options there is not a choice for free shipping. Just my normal options of fedex and usps. What am I doing wrong?

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

    Default Re: Different Shipping Options for Different Customer Types

    You are using:
    Code:
    if ($chk_discount_group->fields['customers_group_pricing'] != wholesalers) {
    You are using:
    wholesale

    and IF you wanted the group name, you would use it in quotes ...

    However, the value you are getting back is a number, not text ...

    Go to your Groups and see what the ID is for your wholesale customers and use the number and see if it works better ...
    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 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 27 Oct 2010, 01:45 PM
  2. How can I have different payment options for different shipping options?
    By Liamv in forum Built-in Shipping and Payment Modules
    Replies: 7
    Last Post: 18 Feb 2010, 04:32 AM
  3. Payment & Shipping Module - need different options for different parts of store
    By obkb in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 21 Jan 2009, 12:04 PM
  4. Different shipping methods for different product types?
    By talisman-studios in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Sep 2008, 04:59 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