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)
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.
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:
this will limit the complete order to only being available for in-store pickup.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; }
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.
Don't do this. It will make it harder to update shipping modules.// in the quote method for all other enabled shipping modules (or with an observer if one is available):
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.