-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Address Information not showing #5873
Comments
@ComputerNorth Try to clear browser cache or open this page in another browser. |
Pump. Need urgent fix for it. |
@gahehe |
Hi @andimov, This is not only in order view, but also everywhere that displayed the customer address by template and calling the \Magento\Customer\Block\Address\Book::getAddressHtml() method. Tried to var_dump what this function returned, and it returned this also. I don't think it is JS issue. |
Looks like it relates to @ComputerNorth @gahehe |
Yes I did migrate from magento 1.8.1 |
OK Found the solution. @ComputerNorth, please check your database, the eav_entity_type table. The entity code "customer_address" must have id as 2, because in the \Magento\Customer\Api\AddressMetadataInterface, the id of "customer_address" type was fixed to 2 (the ATTRIBUTE_SET_ID_ADDRESS const). In my case, the "customer_address" entry, somehow changed ID to 4 (it's weird, because the fresh eav_entity_type has the ID column increment as 1,2,3..., but mine 2,4,6,8...). So I need to rewrite the function to use 4 instead of 2 as id, then everything came back to normal. |
Thank you, but unfortunately for me this is not a solution. My eav_entity_type has the ID column increment as 1,2,3 and entity type id =2 for the entity type code "customer_address". |
I can confirm this issue! Happens after I have upgraded from 1.7.0.2 to 2.1.0. Any solutions so far? |
In my case, @gahehe point was almost there, but I figured it out after reviewing the thread, since it was a bit different. The migration tool added a couple of rows to the end of eav_attribute_set table (didn't mess up increment ids as it was in his case). So for example, I see a row added: +------------------+----------------+--------------------+------------+ 41 is used to reference customer address attribute set in some of the other tables. So the solution comes down to changing Magento\Customer\Api\AddressMetadataInterface::ATTRIBUTE_SET_ID_ADDRESS to 41 in my case. I am pretty sure this is going to be fixed in some of the next releases of the tool, but until then - hopefully this will be helpful to someone. |
Thanks milanstojanov. For me the default attribute is: +------------------+----------------+--------------------+------------+ |
Please check the table again. I am pretty sure you will find a record at the very bottom that has entity_type_id = 2. That one needs to be changed, not the top one. :) |
I as well have this same issue, and the entity_type_id = 2 in the Eav Entity Type table. and I also upgraded from 1.9.2.2 to 2.1.0 |
Hello, Which changes do i need to make in the database in which tables to assign the Hard-Coded IDs of Magento Thats a big Problem |
I am facing the same issue in Magento 2.1.6 |
i follow as well.. |
I really struggle with this. i try to change it 3 times and the customer address still not give me the correct values. When i try to edit it - i can see the corrcet values inside |
I am facing the same issue in Magento 2.2.5 |
Billing Address Edit |
Hi Guy's Have you resolved this issue, I am badly stuck also... please let me know solution ?? |
I had the same issue on 2.2.5.. |
`<?php
namespace Magento\Sales\Model\Order\Address; use Magento\Framework\Event\ManagerInterface as EventManager; /**
|
Kindly plz check ur database....default store view in store table from database..default= 0,english =1, Your problem will be solve... |
Thanks a lot Ziau1..this solution is working for me.... |
@ziaur1 & @nowsathyasar can you please provide more details on what solution it is as its difficult to understand by your comments above. |
@nowsathyasar I just replaced your renderer.php code with Magento code which resolved the issue on order page, but on the customer view (both backend and frontend) it has the same issue which simply displays the template. Also wondering why we should make the customization on the core code? Further Details: |
Hi, My recent upgrade is 2.3.1 as magento moves we are upgrading one by one, But we are having an issue which is on Paypal orders we are getting variable prefixes in billing address as email template format. Is there any fix to relates t its.
Please help me to get a best solution for this. |
I am also facing same issue after upgrading magento to 2.3.1. Anyone found solution for this? |
I followed some solutions in git which they commented but no luck. I will
update if I got any solution for this issue. If you know please let me know.
Thanks & Regards
jd prasad
…On Fri, Jun 21, 2019 at 8:40 PM goutamfulcrum ***@***.***> wrote:
I am also facing same issue after upgrading magento to 2.3.1.
Anyone found solution for this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5873?email_source=notifications&email_token=AFSXCEK5D2QUI3DCWV4JAJDP3TVPRA5CNFSM4CK5AAF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYIXOFQ#issuecomment-504461078>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFSXCEOKTKVE4AXERUICBE3P3TVPRANCNFSM4CK5AAFQ>
.
--
*VJD Prasad*
Director | Team Lead
#102, Siri Sampada Hitex Building
Kavuri Hills, Madhapur, Hyd - 33
Contact No.: +91 9160310256
Facebook: www.facebook.com/jdprasadv | Linkedin: www.linkedin.com/jdprasadv
|
This render code file is for frontend, we are having an issue in backend admin side on sales->orders ->order details -> billing address. ( Billing address is showing in incorrect format like prefix variables with curly braces etc...! |
Any luck to anyone on this so far? |
We have this issue in 2.3.2 |
In Magento Default address ATTRIBUTE_SET_ID_ADDRESS is set to '2' (and this attribute set has default group id 2, that can be found in table) in class Magento\Customer\Api\AddressMetadataInterface; While sometimes when we do use migration tool, it auto creates some bizarre attribute set and group with attribute set name 'Migration_Default', attribute group name 'Migration_General'. So we have to do 2 things:
Step 1. Remove migration attribute set and group information from tables so that we can update the original one to id 2 and group id 2 So you may need to find out what is your new default customer_address attribute set id and attribute_group_id ? Use this to find new attribute set id.
If you find a new id which is not '2'. Then you need to fix this because magento does have hard coded ATTRIBUTE_SET_ID_ADDRESS =2 and this is being used to run setup script in CustomerSetup.php. So many other modules would be using this. So we need to fix this, we will have to remove that migration attribute set row and its group record. As well as we need to make default attribute set id for new id that we have found. I.e we have to set attribute_set_id =2 and group id =2
Here attribute_group_id=19 is my default attribute group id for attribute_set_id=10, this is default magento customer attribute_set and group information, you may find 'attribute_group_code' for original attribute group in table 'eav_attribute_group', as Migration attribute set and group don't have attribute_group_code and tab_group_code; Step 2. Add customer_address attributes to eav_entity_attribute table so that AttributeMeta class could use these attributes to parse address data So now you need to check if attribute set, group and attribute id relation is maintained in table or not.
if you do not find any result set then try this query again with new attribute_set id ( migration attribute set id ) which you got from above query. If you still don't have any result set then this is the problem. To Fix this we may need to insert entity type customer_attribute's attributes by using below command. To check and verify before insertion:
To insert those records:
|
Some small typos:
|
Hey Mike, |
Unfortunatly this does not fix the issue (for us). |
I was able to fix the issue by replacing eav_entity_attribute with a copy from an older backup. |
in my case, it was necessary to change the way from |
@mak0605 can you give me email: i send my database. could you fix this error help me. can fix it for 3 week i had search to fix it a lot. but i can not |
Go to your DB and find table eav_entity_attribute. After you done that the customer address on both front and backend will work again. For some weird reason Magento updates all rows in this table ... not sure why yet, but i can easily reproduce the bug. |
Same issue in Magento 2.3.5 after migration from 1.8.1, have you fixed this issue? |
[TSG] MC-35765 [2.4.0-beta1] Full Tax Details causes the Order Page to fail
Hi, If you manually edit an entry in the Show more...
|
Hi, so look in eav_attribute table and find your customer attribute, look like : and in final you must have in eav_attribute table the correspondance with attribute, for me they were delete in migration... so i take the data in my magento 1 database or
|
Preconditions
Magento 2.1
Steps to reproduce
In the admin panel go to Sales --> Orders --> select an order
Expected result
In both the Billing Address and Shipping Address I expect to see the address details of the customer. However the actual result is:
Address Information
Billing Address
{{depend prefix}}{{var prefix}} {{/depend}}{{var firstname}} {{depend middlename}}{{var middlename}} {{/depend}}{{var lastname}}{{depend suffix}} {{var suffix}}{{/depend}}{{depend firstname}}
{{/depend}} {{depend company}}{{var company}}
{{/depend}} {{if street1}}{{var street1}}
{{/if}} {{depend street2}}{{var street2}}
{{/depend}} {{depend street3}}{{var street3}}
{{/depend}} {{depend street4}}{{var street4}}
{{/depend}} {{if city}}{{var city}}, {{/if}}{{if region}}{{var region}}, {{/if}}{{if postcode}}{{var postcode}}{{/if}}
{{var country}}
{{depend telephone}}T: {{var telephone}}{{/depend}} {{depend fax}}
F: {{var fax}}{{/depend}} {{depend vat_id}}
VAT: {{var vat_id}}{{/depend}}
I'm looking forward to a solution, Thanks,
The text was updated successfully, but these errors were encountered: