Announcement

Collapse
No announcement yet.

Shipping Conditional(s)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Shipping Conditional(s)

    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:

    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)?
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Re: Shipping Conditional(s)

    because the response failure results in an MvCall timeout, which leaves Merchant hanging (i.e., processing it doesn't get returned to the place it left off).
    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.com

    Comment


      #3
      Re: Shipping Conditional(s)

      Ummm, okay. How do I fix it? If I can?
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment

      Working...
      X