Get if customer is activatedHow to pass customer information from magento to codeigniter in same domainHow to...

Separate environment for personal and development use under macOS

Can we "borrow" our answers to populate our own websites?

Has any human ever had the choice to leave Earth permanently?

Non-Cancer terminal illness that can affect young (age 10-13) girls?

Existence of Riemann surface, holomorphic maps

Can polar coordinate cause misalignment in TikZ?

Why do we have to make "peinlich" start with a capital letter and also end with -s in this sentence?

Should I always close BufferedReader?

How to politely refuse in-office gym instructor for steroids and protein

What game did these black and yellow dice come from?

How does one write from a minority culture? A question on cultural references

How to remove from the data the rows of with fixed number of elements?

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

What happens when the wearer of a Shield of Missile Attraction is behind total cover?

What language shall they sing in?

Why does magnet wire need to be insulated?

Count repetitions of an array

How do you voice extended chords?

Citing paid articles from illegal web sharing

Why didn't Tom Riddle take the presence of Fawkes and the Sorting Hat as more of a threat?

A starship is travelling at 0.9c and collides with a small rock. Will it leave a clean hole through, or will more happen?

Strange "DuckDuckGo dork" takes me to random website

What makes papers publishable in top-tier journals?

Can you tell from a blurry photo if focus was too close or too far?



Get if customer is activated


How to pass customer information from magento to codeigniter in same domainHow to get current user's name in layout xml file?error to add custom attributesExclude a specific categorySelect the customers logged the last day since an determinated hourCustom Contact Form using Custom Template (Works .. Kind of)PayPal Checkout and Account Registration ConflictMagento 2 - Display eav attribute in customer grid (explanation & questions)Magento get Customer Data from session idHow to run query subdate(now(), INTERVAL 1 DAY) in Magento Helper













0















How can I check if the customer has activated his account on the order success page.



Here are some things I've tried:



<?php if(Mage::getModel('customer/customer')->getCollection()->addAttributeToFilter('confirmation', array('notnull' => true)): ?>
<?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

stuff here

<?php else: ?>

other stuff here

<?php endif; ?><?php endif; ?>


And...



    <?php if(Mage::getSingleton('customer/session')->isLoggedIn() || ($session->getCustomer()->getCustomerActivated())): ?>

stuff here

<?php else: ?>

other stuff here

<?php endif; ?>


both don't work. How can I do this?










share|improve this question



























    0















    How can I check if the customer has activated his account on the order success page.



    Here are some things I've tried:



    <?php if(Mage::getModel('customer/customer')->getCollection()->addAttributeToFilter('confirmation', array('notnull' => true)): ?>
    <?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

    stuff here

    <?php else: ?>

    other stuff here

    <?php endif; ?><?php endif; ?>


    And...



        <?php if(Mage::getSingleton('customer/session')->isLoggedIn() || ($session->getCustomer()->getCustomerActivated())): ?>

    stuff here

    <?php else: ?>

    other stuff here

    <?php endif; ?>


    both don't work. How can I do this?










    share|improve this question

























      0












      0








      0








      How can I check if the customer has activated his account on the order success page.



      Here are some things I've tried:



      <?php if(Mage::getModel('customer/customer')->getCollection()->addAttributeToFilter('confirmation', array('notnull' => true)): ?>
      <?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

      stuff here

      <?php else: ?>

      other stuff here

      <?php endif; ?><?php endif; ?>


      And...



          <?php if(Mage::getSingleton('customer/session')->isLoggedIn() || ($session->getCustomer()->getCustomerActivated())): ?>

      stuff here

      <?php else: ?>

      other stuff here

      <?php endif; ?>


      both don't work. How can I do this?










      share|improve this question














      How can I check if the customer has activated his account on the order success page.



      Here are some things I've tried:



      <?php if(Mage::getModel('customer/customer')->getCollection()->addAttributeToFilter('confirmation', array('notnull' => true)): ?>
      <?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

      stuff here

      <?php else: ?>

      other stuff here

      <?php endif; ?><?php endif; ?>


      And...



          <?php if(Mage::getSingleton('customer/session')->isLoggedIn() || ($session->getCustomer()->getCustomerActivated())): ?>

      stuff here

      <?php else: ?>

      other stuff here

      <?php endif; ?>


      both don't work. How can I do this?







      magento-1.9 php customer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 43 mins ago









      FreejoyFreejoy

      449925




      449925






















          0






          active

          oldest

          votes











          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%2f263538%2fget-if-customer-is-activated%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f263538%2fget-if-customer-is-activated%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

          “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

          How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

          夢乃愛華...