[v1.3.1] Fix the issue breaks editing of invoice billing and shipping address

Created by Support Agent, Modified on Sun, 19 Apr at 1:33 AM by Support Agent

Issue:

I have updated version 1.3.1 on M2.4.1.

Going to the shipping or billing address edit page on an Invoice in admin gives the following Javascript JSON error:

Uncaught SyntaxError: Unexpected token } in JSON at position 140

The JSON is:

    {

        "*": {

            "Bss_CustomerAttributes/js/order/address/customer-address": {

               "customAddress": }

        }

    }


Solution:

The issue happens due to the module's bug in the case that orders do not the customer address attribute

To solve this issue, we have edited this file app/code/Bss/CustomerAttributes/view/adminhtml/templates/order/address/form.phtml

Please check and apply the fixed attachment to the site.


If you need any further assistance, please feel free to contact us.

We're more than happy to support you


Get to know us!!


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Improve your website performance by choosing our extensions:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article