Custom email templates adding variants shopify










0















trying add the size and and color to order confimration email template cant seem to figure it out. Looking at this link https://help.shopify.com/en/manual/sell-online/notifications/email-variables but there is nothing regarding variants there is there a way to add it ive see on other sites but not sure how they add it. Thanks in advance










share|improve this question


























    0















    trying add the size and and color to order confimration email template cant seem to figure it out. Looking at this link https://help.shopify.com/en/manual/sell-online/notifications/email-variables but there is nothing regarding variants there is there a way to add it ive see on other sites but not sure how they add it. Thanks in advance










    share|improve this question
























      0












      0








      0








      trying add the size and and color to order confimration email template cant seem to figure it out. Looking at this link https://help.shopify.com/en/manual/sell-online/notifications/email-variables but there is nothing regarding variants there is there a way to add it ive see on other sites but not sure how they add it. Thanks in advance










      share|improve this question














      trying add the size and and color to order confimration email template cant seem to figure it out. Looking at this link https://help.shopify.com/en/manual/sell-online/notifications/email-variables but there is nothing regarding variants there is there a way to add it ive see on other sites but not sure how they add it. Thanks in advance







      shopify liquid






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 14 '18 at 23:21









      user9013856user9013856

      888




      888






















          1 Answer
          1






          active

          oldest

          votes


















          0














          To get to the variant information, you need to dig a little deeper than is immediately obvious on Shopify's help page, but you can get there!



          If you note the entry on Line Items, you'll notice that there are fields specified like line.variant.barcode - this is because the line.variant gives you the variant object, and barcode is one of those things that variants can have.



          In your email template, you could store your variant with a quick % assign variant = line.variant %, then access any and all properties associated with said variant.



          In the theme section of Shopify's help centre, there's more details about the properties of the line_item objects. As far as I know, the line_items used in the email templates are the same line_items used elsewhere. https://help.shopify.com/en/themes/liquid/objects/line_item



          In that page, you'll see further support for getting the variant object this way:




          line_item.variant
          Returns the variant of the line item.




          Hope this helps!






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310247%2fcustom-email-templates-adding-variants-shopify%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            To get to the variant information, you need to dig a little deeper than is immediately obvious on Shopify's help page, but you can get there!



            If you note the entry on Line Items, you'll notice that there are fields specified like line.variant.barcode - this is because the line.variant gives you the variant object, and barcode is one of those things that variants can have.



            In your email template, you could store your variant with a quick % assign variant = line.variant %, then access any and all properties associated with said variant.



            In the theme section of Shopify's help centre, there's more details about the properties of the line_item objects. As far as I know, the line_items used in the email templates are the same line_items used elsewhere. https://help.shopify.com/en/themes/liquid/objects/line_item



            In that page, you'll see further support for getting the variant object this way:




            line_item.variant
            Returns the variant of the line item.




            Hope this helps!






            share|improve this answer



























              0














              To get to the variant information, you need to dig a little deeper than is immediately obvious on Shopify's help page, but you can get there!



              If you note the entry on Line Items, you'll notice that there are fields specified like line.variant.barcode - this is because the line.variant gives you the variant object, and barcode is one of those things that variants can have.



              In your email template, you could store your variant with a quick % assign variant = line.variant %, then access any and all properties associated with said variant.



              In the theme section of Shopify's help centre, there's more details about the properties of the line_item objects. As far as I know, the line_items used in the email templates are the same line_items used elsewhere. https://help.shopify.com/en/themes/liquid/objects/line_item



              In that page, you'll see further support for getting the variant object this way:




              line_item.variant
              Returns the variant of the line item.




              Hope this helps!






              share|improve this answer

























                0












                0








                0







                To get to the variant information, you need to dig a little deeper than is immediately obvious on Shopify's help page, but you can get there!



                If you note the entry on Line Items, you'll notice that there are fields specified like line.variant.barcode - this is because the line.variant gives you the variant object, and barcode is one of those things that variants can have.



                In your email template, you could store your variant with a quick % assign variant = line.variant %, then access any and all properties associated with said variant.



                In the theme section of Shopify's help centre, there's more details about the properties of the line_item objects. As far as I know, the line_items used in the email templates are the same line_items used elsewhere. https://help.shopify.com/en/themes/liquid/objects/line_item



                In that page, you'll see further support for getting the variant object this way:




                line_item.variant
                Returns the variant of the line item.




                Hope this helps!






                share|improve this answer













                To get to the variant information, you need to dig a little deeper than is immediately obvious on Shopify's help page, but you can get there!



                If you note the entry on Line Items, you'll notice that there are fields specified like line.variant.barcode - this is because the line.variant gives you the variant object, and barcode is one of those things that variants can have.



                In your email template, you could store your variant with a quick % assign variant = line.variant %, then access any and all properties associated with said variant.



                In the theme section of Shopify's help centre, there's more details about the properties of the line_item objects. As far as I know, the line_items used in the email templates are the same line_items used elsewhere. https://help.shopify.com/en/themes/liquid/objects/line_item



                In that page, you'll see further support for getting the variant object this way:




                line_item.variant
                Returns the variant of the line item.




                Hope this helps!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 15 '18 at 3:26









                Dave BDave B

                1,134511




                1,134511





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310247%2fcustom-email-templates-adding-variants-shopify%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    這個網誌中的熱門文章

                    How to read a connectionString WITH PROVIDER in .NET Core?

                    In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

                    Museum of Modern and Contemporary Art of Trento and Rovereto