Announcement

Collapse
No announcement yet.

Include SKU in shipment emails

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

    Include SKU in shipment emails

    The shipment email includes the product code field, but I need to yank in the sku. It doesn't seem to be available. If I had the toolbelt on this clients site I'm sure I could get at it in a roundabout way, but there has to be an easy way to get at it no no?

    Anyone have a snippet to share?
    Ted Hust
    AarcMediaGroup.com

    Celebrating 13 Years of Outstanding Service & Support
    Miva Merchant Design

    #2
    In the foreach loop I think you need to replace &mvt:item:code; with &mvt:item:product:sku;

    Ray Yates
    "If I have seen further, it is by standing on the shoulders of giants."
    --- Sir Isaac Newton

    Comment


      #3
      That's what I would have thought as well, but it doesn't work. It has the "group" stuff in there, &mvt:group:name;, and I tried &mvt:group:sku; and that didn't work, and i tried &mvt:item:product:sku; and that didn't work either. I know if they had the toolbelt mod I'd be able to get at it, but not sure how to get at it on this template.

      Ted Hust
      AarcMediaGroup.com

      Celebrating 13 Years of Outstanding Service & Support
      Miva Merchant Design

      Comment


        #4
        The SKU may not be available on that template. You can load it yourself using this code withing the shipment_info:groups array.

        Code:
         <mvt:do file="g.Module_Library_DB" name="l.success" value="Product_Load_Code(l.settings:group:code, l.settings:product)" />
        &mvt:product:sku;
        Last edited by Brennan; 07-18-16, 09:46 AM.
        Brennan Heyde
        VP Product
        Miva, Inc.
        [email protected]
        https://www.miva.com

        Comment


          #5
          You're the man Brennan. Worked perfectly.
          Ted Hust
          AarcMediaGroup.com

          Celebrating 13 Years of Outstanding Service & Support
          Miva Merchant Design

          Comment


            #6
            Originally posted by Brennan View Post
            The SKU may not be available on that template. You can load it yourself using this code within the shipment_info:groups array.

            Code:
            <mvt:do file="g.Module_Library_DB" name="l.success" value="Product_Load_Code(l.settings:group:code, l.settings:product)" />
            &mvt:product:sku;
            Can something similar be done in the ORDER_INVOICE template? I need to display the SKU on the Printable Invoice.
            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


              #7
              Originally posted by lesliekirk View Post

              Can something similar be done in the ORDER_INVOICE template? I need to display the SKU on the Printable Invoice.
              Sure, why not?
              Just make sure you're passing a valid product code instead of l.settings:group:code

              Comment


                #8
                Actually, I didn't need the mvt:do. I took a peek in the INVC Page template, using the Token List I search for sku and found this token &mvt:item:product:sku;

                I had previously and albeit mistakenly tried using &mvt:item::sku; which obviously didn't 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