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

Relocating the main menu

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-17-2012, 09:17 AM
 
Cpt.Crashtastic Cpt.Crashtastic is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 219
 

Default Relocating the main menu

I have been doing a little experimenting and so far this is defeating me. I have created a new skin and disabled the XCN skin. Simple enough. The next step I used was to create an abstract class, essentialy the same as the original main menu class.

The original is located at View/Menu/Customer/Top.php

My version is located at Modules/ADev/ASkin/View/Menu/Customer/Top.php

My version is different only in the fact I have reduced the weight so as it will sit at the top of the page rather than at the foot of the header div. Also I am calling a differently named template adev_top_menu.tpl

I have then created the above template in skins/ADEV/en/adev_top_menu.tpl

Rebuilding the cache does not achieve the result I was expecting. I now have my main menu at the top but I also have the original in the same place. It uses the same newly called template as the new menu but it uses the weight from the original class. The DocBlock defining the menu weight is outside the class definition so I expect that.

Obviously I am missing something here. I guess I could override all the template weights to acheive the expected result but that defeats the object of what I was trying.

Any pointers in the right direction please xplorer?
__________________
Xcart 4.4.?
Xcart Next
Litecommerce with Drupal
http://www.corbywebworx.com

Custom Mods, Hosting and Support for Xcart-Next and LiteCommerce
Reply With Quote
  #2  
Old 08-17-2012, 12:44 PM
 
Cpt.Crashtastic Cpt.Crashtastic is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 219
 

Default Re: Relocating the main menu

Fixed

Should not have been an abstract class!
__________________
Xcart 4.4.?
Xcart Next
Litecommerce with Drupal
http://www.corbywebworx.com

Custom Mods, Hosting and Support for Xcart-Next and LiteCommerce
Reply With Quote

The following user thanks Cpt.Crashtastic for this useful post:
xplorer (08-19-2012)
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:54 PM.

   

 
X-Cart forums © 2001-2020