How do I create a shipping module to only work with some products, or is this already a feature I could use?
These products need to be for delivery while the other products are not. This delivery needs to add an amount to the final price.
How do I create a shipping module to only work with some products, or is this already a feature I could use?
These products need to be for delivery while the other products are not. This delivery needs to add an amount to the final price.
Zen Cart's normal operation for shipping is to base it on weight.
https://docs.zen-cart.com/user/shipping/shipping/
https://docs.zen-cart.com/user/shipping/
So, if you set things up so that orders with zero weight get free shipping, then most other shipping modules will act strictly on the weight of the items in the cart, quoting delivery-related costs accordingly.
.
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.
Let me rephrase this. Can I create a local delivery only option for some products that end up in the shopping cart? I know I would have to make a "shipping module" for this to work. Can I test for each product, or products in the cart and apply shipping to some and local delivery to others?
You may want to take a look at the advanced shipper from ceon.net
It is commercial but, it allows you to specify shipping down to product ID.
Are You Vulnerable for an Accessibility Lawsuit?
myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
Free SSL, Domain, and MagicThumb with semi-annual and longer hosting.
I had a similar problem. I sell crystals but my wife wrote a book and wanted too sell it on our site. So I modified my big royal mail modules to check if the product code started with "BK" then used the option I had written. In addition to avoid confusion I also created an observer so that you could not mix books and crystals in the same order. The observers I used were NOTIFIER_CART_RESTORE_CONTENTS_END:/* on login cart is combined with saved cart so need to check if mixed products and books */
NOTIFIER_CART_ADD_CART_START: /*Allow books to be added to books or other products to be added to other products if not set quantity to zero and issue message */
NOTIFY_LOGIN_SUCCESS: /* Issue message if books have been removed from the cart */
In this way I kept the processing so that it only gave postage for books or crystals not both.
If you want I can send you the code. for notifiers and an example of my changes for book postage.
Mark
Mark Brittain
http:\\innerlightcrystals.co.uk\sales\
Bookmarks