Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Bookmarks inbookmarks:mine
inbookmarks:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only user 4564

Creating, managing and using Customer entity attributes

0
votes
First name, last name, Bill To, Ship's address most of fields are varchar at system.So it max length max 255 characters.
answered Apr 1 '16 by Amit Bera
5
votes
Use addAttributeToFilter instead of addFieldToFilter as in some case Sales model follow eav patten filter and select. $customer_email ='abc@gmail.com'; $orders = Mage::getModel('sales/order')->getCol …
answered Jun 8 '15 by Amit Bera
0
votes
<fieldsets> tag is generally used to define which fields (attributes) are to be copied to where while converting objects to object,
answered Oct 30 '14 by Amit Bera
0
votes
You have to add this attribute as extension attribute using below code <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento: …
answered Mar 7 '19 by Amit Bera
1
vote
Hi Elavarasan and Sivakumar , It is not good idea to call option code in static..... You just need to fetch using Eav table $attributeId = Mage::getResourceModel('eav/entity_attribute')->getIdByC …
answered Jul 1 '14 by Amit Bera
1
vote
Alex you can do using magento event observer Create an event on customer_address_save_before ,which is check current submit data have country, If have check customer attribute this attribute value …
answered Jul 1 '14 by Amit Bera
2
votes
in magento full name are comming from addNameToSelect() function of class Mage_Customer_Model_Resource_Customer_Collection and getName() function of class Mage_Customer_Model_Customer.You need change …
answered Jun 9 '15 by Amit Bera
4
votes
You could not create a customer attribute using magento schema files both InstallSchema and UpgradeSchema.Need to use data files InstallData and UpgradeData. Because of in order create an attribute y …
answered Jan 22 '17 by Amit Bera
5
votes
You can try if(null !== $customer->getCustomAttribute('my_custom_attribute')) { $customer->getCustomAttribute('my_custom_attribute')->getValue(); }
answered Jun 7 '18 by Amit Bera
3
votes
You did not create Customer attribute properly. As you have create a dropdown Customer attribute so you need to define source model for this attribute. "source" => "[module_Model_Prefix]/source …
answered Jul 13 '16 by Amit Bera
8
votes
The Best idea to use repository interface for getting customer data Magento 2.2.. Magento\Customer\Api\CustomerRepositoryInterface Use function getById($customerId) Inject that class on __constr …
answered Jan 3 '18 by Amit Bera
4
votes
As $customer is an object of service contact data interface \Magento\Customer\Api\Data\CustomerInterface .So you cannot get default address using $customer->getDefaultShippingAddress(). This Custome …
answered Jun 3 '19 by Amit Bera
-1
votes
BEST SOLUTION: If you have used service provider class means RepositoryInterface, Then I suggest to you use service provider for create the new customer. <?php namespace Exchanges\Test\Test; /** …
answered Sep 17 '18 by Amit Bera
5
votes
You have to enable this attribute for admin form: public function apply() { $customerSetup = $this->customerSetupFactory->create(['setup' => $this->moduleDataSetup]); $customerSet …
answered Jun 4 '19 by Amit Bera
3
votes
TO Save this attribute value to Order address, you need to use Below event: sales_model_service_quote_submit_before sales_model_service_quote_submit_success At those events you need to copy the …
answered Aug 30 '19 by Amit Bera