Could someone help me with the below question? Whi...
# suitecommerce
l
Could someone help me with the below question? Which Component do I need to invoke to make any changes on the "Edit Address Page"? Is that Layout? I am using SCA 2021.1 and want to make some changes using the extension on my account page.
k
Hey @Lucas, depends what you're trying to do. You could always edit the template to add new elements. If you're adding new or editing existing context variables I would use the layout component to add or change context variables.
l
I would like to add a new "checkbox" on the Edit address form. Simply just below to "make this address my default billing address" checkbox.
k
Seems like that checkbox exists natively..
When you submit an address.. you can see the network request includes defaultShipping and defaultBilling as a string "T" or "F".
l
@Kearobi I don't see that checkbox, But I want to make custom one with the extension and my ultimate goal is to create reusable extension.
I have gone through lots of documents on this, They recommend use of extensibility API only.
s
So, when updating addresses via SuiteCommerce, we use the commerce API. The commerce API, alas, does not support custom address fields. In other words, this isn't something you're going to be able to do, at least in a neat way.
There is a hidden standard field called addr3 which is sometimes used by customisations for their own purposes but I'd be wary about using it because it is used by, for example, address validators and other important third-party integrations
If you do want to use it, I would imagine that all you need to do is inject a new form field (even using something like jQuery) into relevant form element and giving it the name of addr3
l
@Steve Goldberg Thanks for your input.
I don't want to use the addr3 field. This is a custom entity field..