We have a custom shipping module that handles shipping to Canada. Even though we've set the Shipping Rules up to have it display rates ONLY if the shipping address is to Canada, the module seems to be getting called on Every OSEL page. I would have assumed that miva would only call the module to fetch the rate based on the rule set. Is that not so?
Announcement
Collapse
No announcement yet.
Custom Shipping Module - Shipping Rules Question
Collapse
X
-
Custom Shipping Module - Shipping Rules Question
Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.comTags: None
-
The way Shipping Method Rules work, is Miva first makes API calls to get all available methods then it will apply the rules after it has all methods to limit what is shown to the customer. You may be able to load the customer ship to address and not make the API call in your module if the Shipping Address is outside of Canada but Miva is going to call your module's ShippingModule_Basket_Methods function for each basket regardless of the rules you have set on the methods themselves.
-
ok, thanks for confirmingBruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.com
Comment
Comment