Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2007
    Posts
    36
    Plugin Contributions
    0

    Default Setting up a special customer type for shipping purposes

    I would like to set up my store so that people from a certain zone must be approved before making purchases. The purpose here is so that friends and family get discount rates (which I know that I must apply manually after they create an account), and so that I can offer them a "store pickup" shipping rate. I don't want this to be available to everyone, just friends and family. What I did was to create a zone called something like *US orders ONLY!* so it doesn't look selectable but that is actually the "special" zone that allows for the store pickup option. I just want to take the extra precaution so that if someone does select it, they don't think they can come to my house and pick up their stuff. Not sure if I'm even on the right track or not. Any suggestions?

  2. #2
    Join Date
    Mar 2007
    Posts
    36
    Plugin Contributions
    0

    Default Re: Setting up a special customer type for shipping purposes

    any ideas out there?

  3. #3
    Join Date
    Mar 2007
    Posts
    36
    Plugin Contributions
    0

    Default Re: Setting up a special customer type for shipping purposes

    Hellooooooo? Anybody home out there?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Setting up a special customer type for shipping purposes

    Common causes for getting no response:

    a. your request may not be clear
    b. your request may seem to make no sense
    c. your request may sound rude
    d. your request may not have enough information to formulate a response.

    When not getting an answer, you are best advised to rephrase your request, add more information, and talk about other ways you have tried to tackle the idea.
    Often it is smartest to forget asking how to do it a certain way ... skip the proposed "solution", and just explain the business need -- not the "how", but the "what". This usually brings more effective feedback and ideas.
    .

    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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Setting up a special customer type for shipping purposes

    If I digest your statement further, it seems to boil down to:

    a) want to offer discounts to certain customers
    b) want to offer Store Pickup shipping to those same customers.

    I don't think you really want to use "zones", because those are geographic in nature.


    So, you need to do two things:
    a. create a Discount Group in the admin, and manually add the correct customers to it. This will give them their discounts.

    b. Customize the Store Pickup shipping module so that it checks to see if the current customer is in the prescribed discount group. If not, deactivate the module for this present shopping session.

    example: if the group-pricing record is number 3 for this special group, then change the store_pickup.php module from this:
    Code:
        $this->enabled = ((MODULE_SHIPPING_STOREPICKUP_STATUS == 'True') ? true : false);
    
        if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_STOREPICKUP_ZONE > 0) ) {
    to something like this:
    Code:
        $this->enabled = ((MODULE_SHIPPING_STOREPICKUP_STATUS == 'True') ? true : false);
    
    		$group_query = $db->Execute("select customers_group_pricing from " . TABLE_CUSTOMERS . " where customers_id = '" . (int)$_SESSION['customer_id'] . "'");
    		if ($group_query->RecordCount() == 0  || $group_query->fields['customers_group_pricing'] != 3 ) $this->enabled = false;
    
    
        if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_STOREPICKUP_ZONE > 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.

  6. #6
    Join Date
    Mar 2007
    Posts
    36
    Plugin Contributions
    0

    Default Re: Setting up a special customer type for shipping purposes

    Thank you, Dr. Byte, for you assistance once again. I also appreciate the tips for getting answers. That is very helpful and I will take that into account when asking questions from now on. Also, thanks for the code. I'll edit the file and report back with the results.

  7. #7
    Join Date
    Mar 2007
    Posts
    36
    Plugin Contributions
    0

    Default Re: Setting up a special customer type for shipping purposes

    Thank you sir that worked perfectly. Now, should I place this file in an override directory or leave it where it lies?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Setting up a special customer type for shipping purposes

    There are no overrides for shipping modules themselves. (only for the language files related to them)
    Thus, leave the file in the same place.
    .

    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.

  9. #9
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Setting up a special customer type for shipping purposes

    This worked great, thanks! Modified it a bit to work with the dual pricing mod, it's fantastic!
    Danielle

  10. #10
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: Setting up a special customer type for shipping purposes

    Thought I should probably post how in case anyone wants to know, please see this thread to get this working with the dual pricing mod: http://www.zen-cart.com/forum/showpo...22&postcount=7
    Danielle

 

 

Similar Threads

  1. v139d USPS Shipping Module Won't Uninstall/Reinstall Properly for Upgrading Purposes
    By Fretty in forum Built-in Shipping and Payment Modules
    Replies: 29
    Last Post: 20 May 2015, 12:07 AM
  2. v151 1 purchased item = 6 items for shipping purposes
    By Philman1008 in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 1 Oct 2013, 04:30 PM
  3. Any way to set minimum weight for shipping purposes?
    By johnny roastbeef in forum Built-in Shipping and Payment Modules
    Replies: 10
    Last Post: 31 Aug 2011, 10:19 PM
  4. Setting Attributes for special costs
    By nikki72 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 6 Mar 2009, 09:09 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