Malvarlin Posted April 8, 2021 Share Posted April 8, 2021 Hi I am trying to alter the layout of the categories menu and think I need to look at where this gets defined {if $CATEGORIES} {$CATEGORIES} {else} Can anyone point me to the right file please? thanks Paul Link to comment Share on other sites More sharing options...
bsmither Posted April 8, 2021 Share Posted April 8, 2021 In /classes/gui.class.php, private function _displayNavigation(). This function first tests whether the HTML has already been built and cached. If not, the function builds a category tree and populates the template box.navigation.php. The resulting HTML gets cached. This HTML content is specific to the skin being used. Eventually, the chunk of HTML is given to the Smarty template variable CATEGORIES. So, to change the appearance of the Navigation box, that is done in the template. It will be helpful to set CubeCart's cache setting to disabled while fiddling with the skin code. The function helps to build the complete array of items for the Navigation box. (The getCategoryTree() and _makeTree() builds the hierarchy of the categories.) Link to comment Share on other sites More sharing options...
Malvarlin Posted April 9, 2021 Author Share Posted April 9, 2021 Thanks, think I have managed to follow it all from there and will have a go at altering some bit. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.