| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Trying to add a custom tab in My Account section | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Trying to add a custom tab in My Account section
I am trying to add a custom tab in My Account customer area:
I end up in /common_files/customer/main/top_links.tpl I hardcoded: Code:
But it is not working as intended. I am trying to figure out how this bit works: Code:
I was looking for clues in content.tpl, home.tpl but so far no luck. If only I could find a php page responsible for it, I think I will be on the right track, unless it is more complicated than that. Does anyone have and advice how to approach it? I am just starting with this smarty thing but have a good background in PHP. Thanks in advance!
__________________
Version 4.7.6 X-cart Gold |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Trying to add a custom tab in My Account section
Back in the day we used this to add Wish List before it was included:
In include/account_tabs.php: PHP Code:
|
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Trying to add a custom tab in My Account section
Modify include/account_tabs.php and add the tab info you need following the pattern there.
The php script assigns $account_tabs to smarty and this is passed on the top_links.tpl as $tabs
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Trying to add a custom tab in My Account section
For some reason account_tabs.php is nowhere to be found in my xcart directory. I even downloaded fresh copy of xcart but couldn't find it there either...
I am on latest 4.7.6 if it helps. Edit: Found $account_tabs, they moved it to XCAccountTabs class in include/func/func.core.php Thank you for help!
__________________
Version 4.7.6 X-cart Gold |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Trying to add a custom tab in My Account section
Unfortunately, this was moved to include/func/func.core.php class XCAccountTabs. You'll see similar tab assignments there.
Rather than editing the core, a slightly less invasive way is to edit postauth.php by finding this line: PHP Code:
PHP Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|