Setting up conditions for email

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • docwho
    Mivite Lite

    • Feb 2014
    • 3

    #1

    Setting up conditions for email

    I would like to send order confirmations to USA customers only. I am using Bongo International to help with International orders and payments. When an International customer makes an order they receive an email from Bongo and from my Miva system. The email from Miva includes the Bongo distribution facility address, and that might confuse my customers that don't understand the concept of a package forwarding. I do have the ability to choose the customers address within the Bongo Settings on Miva. However, that might confuse our shipping department as the order does need to be sent to Bongo's facility and not to the international customer. I did briefly talk with another Miva merchant who said they had set up conditions within their email for another reason, but never asked how. Now I need to know how to do this.

    I would like to set up a conditional statement that only sends emails to domestic USA customers only. Can someone point me to the right area within the Miva knowledge base that can help me complete this task? Even better, can someone give me instructions on how to do this? Thanks in advance for helping out this Miva n00b!
  • Brennan
    Super Moderator









    • Jun 2009
    • 3481

    #2
    Re: Setting up conditions for email

    There is a feature of the email system which will not send the email if the content is blank.

    To do you what you need you could add this conditional to your email template:

    Code:
    <mvt:if expr="l.settings:order:ship_cntry EQ 'US' ">
     // default email template code goes here
    </mvt:if>
    This will make it so anyone outside the US does not get Miva's confirmation email because the template would be blank and Miva would not send it.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment

    • Bruce - PhosphorMedia
      Developer Partner











      • Mar 2006
      • 11256

      #3
      Re: Setting up conditions for email

      I don't know if you can do that, but you could change the content of the email (if using templated email in merchant) by using

      <mvt:if expr="order:bill_cntry EQ 'US'">

      normal template
      <mvt:else>
      non us template...tell them bongo will be talking to them...if you know what i mean
      </mvt:if>
      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

      • docwho
        Mivite Lite

        • Feb 2014
        • 3

        #4
        Re: Setting up conditions for email

        Loving Miva! Thanks guys for the quick reply and two suggestions. I will be playing with this on Monday and will let all know my results.

        Comment

        • Bruce - PhosphorMedia
          Developer Partner











          • Mar 2006
          • 11256

          #5
          Re: Setting up conditions for email

          Cool thing to know Brennen.

          @DocWho, You still might want to send a confirmation of sorts. I don't know how long Bongo takes for their emails to reach the customer, but customers may also want to call and say "Whoops! I ordered the wrong thing". Easier for them to RE on order email and easier for you cause you know the details of their order.
          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

          • docwho
            Mivite Lite

            • Feb 2014
            • 3

            #6
            Re: Setting up conditions for email

            HTML Code:
            <mvt:if expr="g.Screen CIN 'RESTOCK_E'">
            <mvt:exit>
            </mvt:if>
            <mvt:if expr="g.basket:ship_cntry NE 'US'">
            <mvt:exit>
            </mvt:if>
            %subject|Your Train Sets Only Shopping Experience%
            %to|bill_email%
            %cc|[email protected]%
            <html>
            <head>
            This is how we got it set up. Also Bongo does send off a confirmation email as soon as the customer places the order. So there is no need for us to send one as well. Thanks!

            Comment

            Working...
            X