Announcement

Collapse
No announcement yet.

Order Charge iteration oddity in Customer Order Confirmation email

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

    Order Charge iteration oddity in Customer Order Confirmation email

    I'm trying to change the layout of the Customer Order Confirmation email. I want to move this

    Code:
     <mvt:foreach iterator="charge" array="order:charges">
        <tr>
          <td align="right" valign="middle" colspan="3">&nbsp;</td>
          <td align="right" valign="middle" nowrap><font size="2" face="Arial, Helvetica, sans-serif"><i>&mvt:charge:descrip;:</i></font></td>
          <td align="right" valign="middle" nowrap><font size="2" face="Arial, Helvetica, sans-serif">&mvt:charge:formatted_disp_amt;</font></td>
        </tr>
      </mvt:foreach>
    to a different table on the page. I have triple checked to see if this snippet needs to be within any other iteration and I'm not seeing any. If this snippet remains directly after the
    Code:
     <mvt:foreach iterator="item" array="order:items">
    section the additional charges display as expected. When I move the snippet to another table that is separate from the one with one with the order:items nothing displays.

    What am I missing?

    Leslie
    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: Order Charge iteration oddity in Customer Order Confirmation email

    Are you moving both the for each loop that has the charge description and the charge_disp_amt?


    Code:
    
                <td colspan="3" style="padding: 5px 20px 5px 20px; vertical-align: bottom; text-align: right;">
                    <mvt:foreach iterator="charge" array="order:charges">
                        &mvt:charge:descrip;:<br />
                    </mvt:foreach>
                    <h2 style="font-size: 16px; color: #5b639c; margin: 0;">Total:</h2>
                </td>
                <td style="padding: 5px 20px 5px 20px; vertical-align: bottom; text-align: right;">
                    <mvt:foreach iterator="charge" array="order:charges">
                        &mvt:charge:formatted_disp_amt;<br />
                    </mvt:foreach>
                    <h2 style="font-size: 16px; color: #5b639c; margin: 0;">&mvt:order:formatted_total;</h2>
                </td>
    Last edited by Brennan; 08-19-14, 08:30 AM.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Order Charge iteration oddity in Customer Order Confirmation email

      I tried that too and it's not working...okay this is now getting weird...
      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
        Re: Order Charge iteration oddity in Customer Order Confirmation email

        I'm also now trying to use the Toolkit snippets to try this and I'm getting all sorts of errors - figure it's time to open some support tickets.
        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