Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,247
    Plugin Contributions
    58

    Default Re: Making Shipping Exceptions

    Correct you can change the language for the free shipping module to be pick-up. Then there is no shipping charge for the item(s)
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Making Shipping Exceptions

    having done this before, i do not know why one would need to create a new shipping module.

    ZC out of the box contains a store pickup shipping option. i can only assume that module is in use.

    what one needs to do is set up a new field for said products, 'products_in_store_only'.

    one can then disable all other shipping modules by checking if the cart has any of those items, ie:

    Code:
    // in the quote method for all other enabled shipping modules (or with an observer if one is available):
    
            $in_store_count = $_SESSION['cart']->in_cart_check('products_in_store_only', 'Y');
    
            if ($in_store_count > 0) {
                $messageStack->add_session(
                    'checkout_shipping',
                    "Your cart contains items which are only available for in-store pickup.",
                    'warning'
                );
                return;
            }
    this will limit the complete order to only being available for in-store pickup.

    adding another shipping method makes little sense to me, as i am not sure what that gives you other than another level of unneeded complexity.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,536
    Plugin Contributions
    127

    Default Re: Making Shipping Exceptions

    // in the quote method for all other enabled shipping modules (or with an observer if one is available):
    Don't do this. It will make it harder to update shipping modules.

    Modify includes/classes/shippping.php and change the quote method to check whether there are pickup items in the cart - then your change is in one place only and shipping modules can be updated at will.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Upgrade Exceptions Table
    By cactusrunning in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 17 Nov 2010, 12:56 PM
  2. Option Exceptions for Products?
    By mscottkirkwood in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Mar 2009, 06:33 PM
  3. SSL Problem - Modify tpl_footer with exceptions?
    By mlm2005 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 24 Mar 2007, 12:50 PM
  4. Attribute Combination Exceptions?
    By smap in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 10 Jun 2006, 04:31 PM

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