Different new order emails based on customer group Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Showing payment details on any email templateEmail templates: using store email address and logo in the admin back-endShowing different stores based on customer groupDisplaying prices with / without tax based upon customer groupWYSIWYG editor for transactional emailsRemoving products from your cartAutomatic Customer Group change based on VAT-ID: Force Magento to check and display message when customer gets to checkout pageHow to add price per kilo (kg)Removing product attributes from the order email

My mentor says to set image to Fine instead of RAW — how is this different from JPG?

Why is there so little support for joining EFTA in the British parliament?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

How can I list files in reverse time order by a command and pass them as arguments to another command?

What is a more techy Technical Writer job title that isn't cutesy or confusing?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Simple Line in LaTeX Help!

Should man-made satellites feature an intelligent inverted "cow catcher"?

Does the universe have a fixed centre of mass?

What is "Lambda" in Heston's original paper on stochastic volatility models?

How to name indistinguishable henchmen in a screenplay?

An isoperimetric-type inequality inside a cube

New Order #6: Easter Egg

Why does BitLocker not use RSA?

Is the time—manner—place ordering of adverbials an oversimplification?

Calculation of line of sight system gain

Besides transaction validation, are there any other uses of the Script language in Bitcoin

Table formatting with tabularx?

Inverse square law not accurate for non-point masses?

Why not use the yoke to control yaw, as well as pitch and roll?

Pointing to problems without suggesting solutions

Vertical ranges of Column Plots in 12

Noise in Eigenvalues plot

How does TikZ render an arc?



Different new order emails based on customer group



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Showing payment details on any email templateEmail templates: using store email address and logo in the admin back-endShowing different stores based on customer groupDisplaying prices with / without tax based upon customer groupWYSIWYG editor for transactional emailsRemoving products from your cartAutomatic Customer Group change based on VAT-ID: Force Magento to check and display message when customer gets to checkout pageHow to add price per kilo (kg)Removing product attributes from the order email



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I want to customise the new order email based upon the customer group. Ideally it would be great to have separate email templates for each group.



I have found the following plugin http://goo.gl/1JOsHR however wanted to know if this is the best way to go about this before I brought it or if there is a better extension or method out there










share|improve this question






















  • What type of customization do you want to do, is this just simple text changes or more complex design changes?

    – Renon Stewart
    Sep 11 '14 at 15:56











  • For 2 of the groups simple text changes but for another 2 I want a complete design change

    – Goose84
    Sep 11 '14 at 15:57

















2















I want to customise the new order email based upon the customer group. Ideally it would be great to have separate email templates for each group.



I have found the following plugin http://goo.gl/1JOsHR however wanted to know if this is the best way to go about this before I brought it or if there is a better extension or method out there










share|improve this question






















  • What type of customization do you want to do, is this just simple text changes or more complex design changes?

    – Renon Stewart
    Sep 11 '14 at 15:56











  • For 2 of the groups simple text changes but for another 2 I want a complete design change

    – Goose84
    Sep 11 '14 at 15:57













2












2








2


1






I want to customise the new order email based upon the customer group. Ideally it would be great to have separate email templates for each group.



I have found the following plugin http://goo.gl/1JOsHR however wanted to know if this is the best way to go about this before I brought it or if there is a better extension or method out there










share|improve this question














I want to customise the new order email based upon the customer group. Ideally it would be great to have separate email templates for each group.



I have found the following plugin http://goo.gl/1JOsHR however wanted to know if this is the best way to go about this before I brought it or if there is a better extension or method out there







magento-1.8 email-templates customer-group






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 11 '14 at 15:47









Goose84Goose84

1,31411242




1,31411242












  • What type of customization do you want to do, is this just simple text changes or more complex design changes?

    – Renon Stewart
    Sep 11 '14 at 15:56











  • For 2 of the groups simple text changes but for another 2 I want a complete design change

    – Goose84
    Sep 11 '14 at 15:57

















  • What type of customization do you want to do, is this just simple text changes or more complex design changes?

    – Renon Stewart
    Sep 11 '14 at 15:56











  • For 2 of the groups simple text changes but for another 2 I want a complete design change

    – Goose84
    Sep 11 '14 at 15:57
















What type of customization do you want to do, is this just simple text changes or more complex design changes?

– Renon Stewart
Sep 11 '14 at 15:56





What type of customization do you want to do, is this just simple text changes or more complex design changes?

– Renon Stewart
Sep 11 '14 at 15:56













For 2 of the groups simple text changes but for another 2 I want a complete design change

– Goose84
Sep 11 '14 at 15:57





For 2 of the groups simple text changes but for another 2 I want a complete design change

– Goose84
Sep 11 '14 at 15:57










2 Answers
2






active

oldest

votes


















4














To send different order conformation email depending on specific criteria you would either have to :



  1. Rewrite sendNewOrderEmail() in Mage_Sales_Model_Order and add logic to check the template


  2. Disable magento "order confirmation email" in system config, then create a custom module to send your email by coping logic from sendNewOrderEmail() using event/observer


  3. For simple text changes, you could use template logic if order.customer_group_id or depend order.customer_group_id but they seem to only evaluate true/false condition, therefore for more advance logic you could include a block



block type='core/template' area='frontend' template='sales/custom_logic.phtml' order=$order




In custom_logic.phtml



<?php
$order = $this->getOrder()

if($order->getCustomerGroupId() == 1){
///do
....


See Magento Email Template If Statements






share|improve this answer
































    0














    To add to Renon's answer. I found that using



    $order->getCustomerGroupId()



    could sometimes cause the logic to break for some templates. I later chose to get the groupid with the below code. Hope it helps someone.



    $order = $this->getOrder();
    $customerId = $order->getCustomerId();
    $customer = Mage::getModel('customer/customer')->load($customerId);

    echo $customer->getGroupId();





    share|improve this answer























      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "479"
      ;
      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: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      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%2fmagento.stackexchange.com%2fquestions%2f35578%2fdifferent-new-order-emails-based-on-customer-group%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      4














      To send different order conformation email depending on specific criteria you would either have to :



      1. Rewrite sendNewOrderEmail() in Mage_Sales_Model_Order and add logic to check the template


      2. Disable magento "order confirmation email" in system config, then create a custom module to send your email by coping logic from sendNewOrderEmail() using event/observer


      3. For simple text changes, you could use template logic if order.customer_group_id or depend order.customer_group_id but they seem to only evaluate true/false condition, therefore for more advance logic you could include a block



      block type='core/template' area='frontend' template='sales/custom_logic.phtml' order=$order




      In custom_logic.phtml



      <?php
      $order = $this->getOrder()

      if($order->getCustomerGroupId() == 1){
      ///do
      ....


      See Magento Email Template If Statements






      share|improve this answer





























        4














        To send different order conformation email depending on specific criteria you would either have to :



        1. Rewrite sendNewOrderEmail() in Mage_Sales_Model_Order and add logic to check the template


        2. Disable magento "order confirmation email" in system config, then create a custom module to send your email by coping logic from sendNewOrderEmail() using event/observer


        3. For simple text changes, you could use template logic if order.customer_group_id or depend order.customer_group_id but they seem to only evaluate true/false condition, therefore for more advance logic you could include a block



        block type='core/template' area='frontend' template='sales/custom_logic.phtml' order=$order




        In custom_logic.phtml



        <?php
        $order = $this->getOrder()

        if($order->getCustomerGroupId() == 1){
        ///do
        ....


        See Magento Email Template If Statements






        share|improve this answer



























          4












          4








          4







          To send different order conformation email depending on specific criteria you would either have to :



          1. Rewrite sendNewOrderEmail() in Mage_Sales_Model_Order and add logic to check the template


          2. Disable magento "order confirmation email" in system config, then create a custom module to send your email by coping logic from sendNewOrderEmail() using event/observer


          3. For simple text changes, you could use template logic if order.customer_group_id or depend order.customer_group_id but they seem to only evaluate true/false condition, therefore for more advance logic you could include a block



          block type='core/template' area='frontend' template='sales/custom_logic.phtml' order=$order




          In custom_logic.phtml



          <?php
          $order = $this->getOrder()

          if($order->getCustomerGroupId() == 1){
          ///do
          ....


          See Magento Email Template If Statements






          share|improve this answer















          To send different order conformation email depending on specific criteria you would either have to :



          1. Rewrite sendNewOrderEmail() in Mage_Sales_Model_Order and add logic to check the template


          2. Disable magento "order confirmation email" in system config, then create a custom module to send your email by coping logic from sendNewOrderEmail() using event/observer


          3. For simple text changes, you could use template logic if order.customer_group_id or depend order.customer_group_id but they seem to only evaluate true/false condition, therefore for more advance logic you could include a block



          block type='core/template' area='frontend' template='sales/custom_logic.phtml' order=$order




          In custom_logic.phtml



          <?php
          $order = $this->getOrder()

          if($order->getCustomerGroupId() == 1){
          ///do
          ....


          See Magento Email Template If Statements







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 23 '17 at 12:37









          Community

          1




          1










          answered Sep 23 '14 at 20:01









          Renon StewartRenon Stewart

          12.2k12044




          12.2k12044























              0














              To add to Renon's answer. I found that using



              $order->getCustomerGroupId()



              could sometimes cause the logic to break for some templates. I later chose to get the groupid with the below code. Hope it helps someone.



              $order = $this->getOrder();
              $customerId = $order->getCustomerId();
              $customer = Mage::getModel('customer/customer')->load($customerId);

              echo $customer->getGroupId();





              share|improve this answer



























                0














                To add to Renon's answer. I found that using



                $order->getCustomerGroupId()



                could sometimes cause the logic to break for some templates. I later chose to get the groupid with the below code. Hope it helps someone.



                $order = $this->getOrder();
                $customerId = $order->getCustomerId();
                $customer = Mage::getModel('customer/customer')->load($customerId);

                echo $customer->getGroupId();





                share|improve this answer

























                  0












                  0








                  0







                  To add to Renon's answer. I found that using



                  $order->getCustomerGroupId()



                  could sometimes cause the logic to break for some templates. I later chose to get the groupid with the below code. Hope it helps someone.



                  $order = $this->getOrder();
                  $customerId = $order->getCustomerId();
                  $customer = Mage::getModel('customer/customer')->load($customerId);

                  echo $customer->getGroupId();





                  share|improve this answer













                  To add to Renon's answer. I found that using



                  $order->getCustomerGroupId()



                  could sometimes cause the logic to break for some templates. I later chose to get the groupid with the below code. Hope it helps someone.



                  $order = $this->getOrder();
                  $customerId = $order->getCustomerId();
                  $customer = Mage::getModel('customer/customer')->load($customerId);

                  echo $customer->getGroupId();






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 17 at 13:18









                  rupirupi

                  566




                  566



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Magento Stack Exchange!


                      • 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%2fmagento.stackexchange.com%2fquestions%2f35578%2fdifferent-new-order-emails-based-on-customer-group%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







                      Popular posts from this blog

                      Sum ergo cogito? 1 nng

                      419 nièngy_Soadمي 19bal1.5o_g

                      Queiggey Chernihivv 9NnOo i Zw X QqKk LpB