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

Recently I came to the conclusion that to some extent now met not for clothes, but for the quality of your pages in social networks. Even for employment, many employers require you to provide links to your profiles on certain social networks. I tried to find help on this issue and am now happy to use the resource MasterBundles Here's an awesome collection of social media templates to browse and use. Various directions are presented, which makes it easier to use and helps beginners to understand. I use in my work a lot of what is offered on the site, and it helps me, so I recommended this resource to my friends.