Since the firestorm of today's USPS outage, it have me wondering why the default no methods available didn't kick in. I have this snippet to test for weight:
So if the order is under 2 pounds, it choked because the USPS server is down. So if I want to add a generic flat rate method to cover for outages like this, what would I need to do (after creating the method)?
Code:
<mvt:item name="toolkit" param="weight|totalweight" /> <h5 class="paymentdetail">Ship Via:</h5> <select name="ShippingMethod"> <mvt:if expr="ISNULL l.settings:shippingmethods"> <option value="">Unable to Calculate Shipping Costs</option> <mvt:else> <mvt:foreach array="shippingmethods" iterator="method"> <mvt:if expr="g.totalweight LE 2 AND l.settings:method:module EQ 'mvusps'"> <mvt:if expr="NOT ISNULL l.settings:method:price"> <option value="&mvte:method:module;:&mvte:method:code;">&mvt:method:name; (&mvt:method:formatted_price;)</option> <mvt:else> <option value="&mvte:method:module;:&mvte:method:code;">&mvt:method:name;</option> </mvt:if> <mvt:elseif expr="g.totalweight GT 2 AND l.settings:method:module EQ 'mvfedex'"> <mvt:if expr="NOT ISNULL l.settings:method:price"> <option value="&mvte:method:module;:&mvte:method:code;">&mvt:method:name; (&mvt:method:formatted_price;)</option> <mvt:else> <option value="&mvte:method:module;:&mvte:method:code;">&mvt:method:name;</option> </mvt:if> </mvt:if> </mvt:foreach> </mvt:if> </select> <mvt:if expr="ISNULL l.settings:shippingmethods"> <br class="clear" /> <h5>No valid shipping methods are available for your order. You will be contacted regarding shipping when your order is processed.</h5> <br /> </mvt:if>
So if the order is under 2 pounds, it choked because the USPS server is down. So if I want to add a generic flat rate method to cover for outages like this, what would I need to do (after creating the method)?
Comment