2

I want to show a customer attribute on registration form and provide to edit that one on user profile, but only for my Brasilian customers? enter image description here

2 Answers 2

0

You need to create customer attribute for this you can do follow:

  1. Go to admin and open Customers->Attributes->Manage Attribute.
  2. Select Store on which you want to enable that attribute ex: Brasilian Store
  3. Fill out all the necessary filed according to your need then save it.
  4. Run indexing and flush cache.
  5. For showing your customer attribute on registration page go to its Phtml file and call that attribute by its Code which you gave to your attribute while creating it. Like:

    escapeHtml($this->getCustomer()->getProvince()) ?>

let me know if its work

7
  • Thanks for the reply. There is no Customers->Attributes->Manage Attribute.
    – glafche
    Sep 17, 2018 at 10:46
  • @BorcheGlafche Welcome Pal let me know if above solution work or not. Sep 17, 2018 at 10:47
  • It doesn't. There is no Customers->Attributes->Manage Attribute on admin page.
    – glafche
    Sep 17, 2018 at 10:49
  • Can You share screenshot of your backend so that we can figure it out. Sep 17, 2018 at 10:54
  • You can refer this link also [magento.stackexchange.com/questions/65751/… Sep 17, 2018 at 10:56
0
  1. You create a customer attribute

  2. app/design/frontend/{template}/{name}/template/customer/form/register.phtml
    
    app/design/frontend/{template}/{name}/template/customer/form.phtml
    

    You add a condition around your field:

    <?php $storeCode = Mage::app()->getStore()->getCode(); ?>
    <?php if ($storeCode == 'br') : ?>
        //your Brasilian input here
    <?php endif; ?>
    

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.