Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Adding Address Book to My Account Drop Down

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 01-07-2021, 10:32 AM
 
Dawn Howard Dawn Howard is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 229
 

Default Adding Address Book to My Account Drop Down

The drop down list called "My Account" on the main screen when a customer is logged in, can I add a link to the address book to that drop down list? See screen shot
Attached Thumbnails
Click image for larger version

Name:	address book.jpg
Views:	1017
Size:	194.1 KB
ID:	5593  
__________________
Dawn
X-Cart Business 5.3.6.3
Mods:
Qty input - Custom Mod
Part numbers near title - Custom Mod
Membership approval before ordering - Custom Mod
Order Forms - Custom Mod
Freight on Board - Custom Mod
Catalog Order Form
Call For Price
Template: Crisp White skin
Running on Windows
Reply With Quote
  #2  
Old 01-07-2021, 10:41 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,195
 

Default Re: Adding Address Book to My Account Drop Down

You can. Custom module or the easiest method (maybe not so good though) is to use the template editor and modify one of the templates there.
Use the template editor and modify
Quote:
customer/layout/header/header.bar.links.logged.account.twig
and add to it


Code:
<li class="account-link-profile"> <a href="{{ url('address_book', '') }}" class="profile icon-my-account-profile"> <span>{{ t('Address Book') }}</span> </a> </li>
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Dawn Howard (02-11-2021)
  #3  
Old 01-15-2021, 08:24 AM
 
Dawn Howard Dawn Howard is offline
 

eXpert
  
Join Date: Apr 2006
Posts: 229
 

Default Re: Adding Address Book to My Account Drop Down

Thanks, sounds simple enough but before I add that bit of code, I want to make sure. This is the code for that twig:

Quote:
{% if this.isLogged() and not this.isCheckoutLayout() %}
<div class="dropdown header_bar-my_account">
<a data-toggle="dropdown" data-target="#">{{ t('My account') }}</a>
<ul class="account-links dropdown-menu">
{{ widget_list('layout.header.bar.links.logged') }}
</ul>
</div>
{% endif %}

I don't see the other drop down items listed here. Where does that code code exactly?

Thanks in Advance! ♥
__________________
Dawn
X-Cart Business 5.3.6.3
Mods:
Qty input - Custom Mod
Part numbers near title - Custom Mod
Membership approval before ordering - Custom Mod
Order Forms - Custom Mod
Freight on Board - Custom Mod
Catalog Order Form
Call For Price
Template: Crisp White skin
Running on Windows
Reply With Quote
  #4  
Old 01-15-2021, 03:23 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,195
 

Default Re: Adding Address Book to My Account Drop Down

You are looking at the wrong template. You need the one referred to (in the one you posted) as


{{ widget_list('layout.header.bar.links.logged') }}


Use the template editor to find the correct template
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Dawn Howard (02-11-2021)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:50 AM.

   

 
X-Cart forums © 2001-2020