Announcement

Collapse
No announcement yet.

International Order Minimums

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

    International Order Minimums

    I need to be able to set International Order Minimums Minimum Price for all countries except US and CA. I think this will work for the order minimum (price):

    Code:
     <mvt:if expr="l.settings:basket:items:subtotal LT 100.00"> You haven't met the $100.00 minimum.</mvt:if>
    but how do I also limit or exclude two countries US and CA?
    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
    We display a non-US message like this:

    Code:
    <mvt:if expr="g.basket:ship_cntry AND g.basket:ship_cntry NE 'US'">
    <mvt:if expr="g.basket:ship_cntry EQ 'CA'">
    CA message
    <mvt:elseif expr="g.basket:ship_cntry EQ 'GB'">
    GB message
    <mvt:elseif expr="g.basket:ship_cntry EQ 'AU'">
    AU message
    <mvt:else>
    Due to circumstances beyond our control, we are only able to ship to addresses within the US, Canada, Australia and the United Kingdom.
    </mvt:if>
    </mvt:if>
    This only works if you already know the ship country obviously... You could also wrap the continue checkout button in a similar conditional, or redirect to OMIN if the conditions are met.
    Ron Frigon
    Jedi Webmaster Obi-Ron Kenobi

    Comment


      #3
      Hi Ron, thanks. I've used this snippet in places that need to show a message:
      Code:
       <mvt:if expr="g.Basket:ship_cntry EQ 'US' OR g.Basket:ship_cntry EQ 'CA'">
      <p class="c-heading-foxtrot">Shipping Options</p>
      <mvt:else>
      <p class="c-heading-foxtrot">International Shipping Options</p>
      </mvt:if>
      It works great - now I also need something similar that excludes those two countries and displays a message if the basket total is not $100. I tried this (but something isn't quite right):


      Code:
       <mvt:if expr="g.Basket:ship_cntry NE 'US' OR g.Basket:ship_cntry EQ 'CA'">
      <mvt:if expr="l.settings:basket:items:subtotal LT 100.00">
      Unfortunately, you have not reached the $100 minimum purchase requirement for all international orders. The checkout process will proceed when this minimum is reached.
      </mvt:if>
      </mvt:if>
      maybe it needs the <mvt:else> in there?

      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


        #4
        I think this is what you're looking for? I used l.settings:global_minibasket:total instead of l.settings:basket:items:subtotal as it had no value in my test. I'm not sure what page you're using this on. And you have NE US or EQ CA in your conditional. You want NE US and NE CA.

        Code:
        <mvt:if expr="l.settings:global_minibasket:total LT 100 AND (g.Basket:ship_cntry NE 'US' AND g.Basket:ship_cntry NE 'CA')">
        not US, not CA and less than $100
        <mvt:else>
        false
        </mvt:if>
        Ron Frigon
        Jedi Webmaster Obi-Ron Kenobi

        Comment


          #5
          Thank you Ron - that looks like it's going to work
          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