Announcement

Collapse
No announcement yet.

Commission Junction Tracking

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

    #16
    Re: Commission Junction Tracking

    I tried this and just now realized why my logic was wrong:

    Code:
    <mvt:foreach iterator="charge" array="order:charges">        <mvt:if expr="l.settings:charge:type EQ 'COUPON'">
                    <mvt:assign name="g.coupon_total" value="g.coupon_total + l.settings:charge:amount" />
            </mvt:if>
    </mvt:foreach>
     <mvt:if expr="g.coupon_total GT 0">
    <mvt:assign name="g.coupon_total" value="g.coupon_total * -1" />
    </mvt:if>
    'DISCOUNT' : '&mvt:global:coupon_total;',
    The total is now being displayed as a negative number again. So I'm thinking if I use LT 0 maybe it will 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


      #17
      Re: Commission Junction Tracking

      That seems to have been what it needed. Talk about backwards logic.

      Here's what I wound up using:

      Code:
      <mvt:foreach iterator="charge" array="order:charges">        <mvt:if expr="l.settings:charge:type EQ 'COUPON'">
                      <mvt:assign name="g.coupon_total" value="g.coupon_total + l.settings:charge:amount" />
              </mvt:if>
      </mvt:foreach>
       <mvt:if expr="g.coupon_total LT 0">
      <mvt:assign name="g.coupon_total" value="g.coupon_total * -1" />
      </mvt:if>
      'DISCOUNT' : '&mvt:global:coupon_total;',
      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