If this is your first visit, check our documentation. To post, register or login.
Forums / Addon Shipping Modules / Making Shipping Exceptions

Making Shipping Exceptions

Started by IDEASLady on 1 Dec 2023, 1:13 AM · Views: 2,107

Results 1 to 8 of 8
1 Dec 2023, 1:13 AM
#1
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Making Shipping Exceptions

Is there a way to make certain items or categories as "Pickup ONLY"? A customer is asking because there are certain products he doesn't want to ship and they are actually easy to buy locally in any hardware store. He sells the product and has no problem for customers to order online but to come to the store to pick it up since it's a hassle to ship it.

IDEASLady
IDEAS Creative Studio

Your image... our business!

1 Dec 2023, 1:48 AM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Making Shipping Exceptions

How would an order be shipped with a combination of "Pickup Only" and non-"Pickup Only" products?

1 Dec 2023, 10:10 AM
#3
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

Re: Making Shipping Exceptions

ideasgirl:

Is there a way to make certain items or categories as "Pickup ONLY"? A customer is asking because there are certain products he doesn't want to ship and they are actually easy to buy locally in any hardware store. He sells the product and has no problem for customers to order online but to come to the store to pick it up since it's a hassle to ship it.

Maybe a free shipping module clone would work with language changes for pick up.

1 Dec 2023, 1:12 PM
#4
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Re: Making Shipping Exceptions

lat9:

How would an order be shipped with a combination of "Pickup Only" and non-"Pickup Only" products?

Not sure. These are industrial products, customer can put a note on the category/product to advise that the order has to be separate. He is thinking of putting there just a note that that product will not be shipped because of the cost involved.

IDEASLady
IDEAS Creative Studio

Your image... our business!

1 Dec 2023, 1:15 PM
#5
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,456
Plugin Contributions:
4

Re: Making Shipping Exceptions

mprough:

Maybe a free shipping module clone would work with language changes for pick up.

Will that create a new selection on the product like instead of "this product is free" to have "this product is only for Pick up"? Right?

IDEASLady
IDEAS Creative Studio

Your image... our business!

2 Dec 2023, 9:03 AM
#6
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

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)

2 Dec 2023, 2:31 PM
#7
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

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:

// 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, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

2 Dec 2023, 4:31 PM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

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.