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

relocate menu

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 05-29-2014, 06:49 AM
 
Gabone Gabone is offline
 

Advanced Member
  
Join Date: May 2014
Location: Bucharest
Posts: 37
 

Default relocate menu

how can i relocate the top_menu.tpl content?or make another module with same content?
__________________
xcart 5
Reply With Quote
  #2  
Old 06-02-2014, 03:14 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: relocate menu

What portion of top_menu.tpl do you want to move and where do you want it be displayed instead?

As for documentation for developing modules for X-Cart 5 - you can find it there:
http://kb.x-cart.com/display/XDD/Developer+docs
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 06-02-2014, 03:30 AM
 
Gabone Gabone is offline
 

Advanced Member
  
Join Date: May 2014
Location: Bucharest
Posts: 37
 

Default Re: relocate menu

i've create Top.php in xlite/module/xc/customskin/view/menu/customer and i've change getDefaultTemplate() value with my location/file.tpl .thanks.
__________________
xcart 5
Reply With Quote

The following user thanks Gabone for this useful post:
tony_sologubov (06-02-2014)
  #4  
Old 06-02-2014, 11:47 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: relocate menu

So, yes, if you want to replace the top_menu.tpl template completely, you can do it by extending the \XLite\View\Menu\Customer\Top::getDefaultTemplate( ) method in your module and pointing it to your template file under the skins/default/en/module/[YOUR-DEV-ID]/[YOUR-MODULE-ID]/ directory.

Or you can do it by registering a new skin (http://kb.x-cart.com/display/XDD/Substitutional+skins) and placing your top_menu.tpl under the skins/[YOUR-SKIN/en/ directory (no need to decorate the Top.php widget).

However, since top_menu.tpl is a somewhat generic file it will be better to keep the template file unmodified, and stick to decorating the Top.php widget in your module.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 07-07-2014, 01:53 AM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default X-cart 5 at manu to other location

HI, can you please give me some information on the x-cart 5
about Menu at the menu to button page and top page.
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #6  
Old 07-07-2014, 03:11 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: relocate menu

Hi!

What kind of info you are looking for? We will be glad to help you, but need some more info to give relevant answer.

Anyway, there was a task dedicated to work with this menu and it was covered during second webinar. You can check it out here:
http://kb.x-cart.com/pages/viewpage.action?pageId=7504837#Webinar2-10Apr2014-DesignchangesinX-Cart5(Custom...thmyownme nu?
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #7  
Old 07-07-2014, 06:22 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default Main Categories

Hi!

Now I've categories on the site. I want to add this categories on the footer menu. Do you have any way to add?
https://plus.google.com/u/0/112551345711256146561/posts/NnB33YsRzF3?pid=6033615156308779458&oid=1125513457 11256146561
think
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #8  
Old 07-09-2014, 01:15 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: relocate menu

A dedicated forum thread on the same issue:
http://forum.x-cart.com/showthread.php?t=69523
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



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 01:17 AM.

   

 
X-Cart forums © 2001-2020