cancel
Showing results for 
Search instead for 
Did you mean: 

Position customAttributes on address-renderer

Position customAttributes on address-renderer

Hello, I am using an Address Fields Manager module.

The problem is that in the sidebar in the resume they are all seen together (address-renderer/ default.html) and I need to divide them:

 

<each args="data: address().customAttributes, as: 'element'">
<text args="$parent.getCustomAttributeLabel(element)"/>
</each>

 

Is it possible to separate the CustomAttributes and position it where I want?

The same thing that is done in the Custom Address Template?

 

Magento ver. 2.3.5-p1

Front End Developer - Magento experience
E-commerce Chile
Perla Simeone
3 REPLIES 3

Re: Position customAttributes on address-renderer

Hi @Perla Simeone 

 

The template should look like something like this:

 

 

<each args="data: address().customAttributes, as: 'element'">
        <if args="typeof element['value'] === 'string'">
            <text args="element['value']"/>
        </if><br/>
    </each>
</each>

Problem Solved ? 
Click kudos & Accept as Solution!

 

Re: Position customAttributes on address-renderer

Hi @Bhanu Periwal,

And where do I write the name of my custom attribute?

Front End Developer - Magento experience
E-commerce Chile
Perla Simeone

Re: Position customAttributes on address-renderer

I pay attention to customer focus.