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

Xcart 5 Template Kitchen Supplies Store
 
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 09-18-2019, 09:45 AM
 
Dawn Howard Dawn Howard is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 179
 

Default Xcart 5 Template Kitchen Supplies Store

I'm brand new to Xcart 5, switched from Xcart 4. I purchased the kitchen Supplies Store template and I can't figure out how to remove or reduce the huge list of categories under the header. Layout editor isn't treating it like a "block".

http://test.duffystric.com/?shopKey=eb76ccc0caf326f6f5254438c160d924

Is there any recommended reading or videos to help someone new to xcart 5 design modifying?
__________________
Dawn
X-Cart Business 5.3.6.3 - Testing Phase
Mods:
Order Forms - Custom Mod
Freight on Board - Custom Mod
Catalog Order Form
Call For Price

X-Cart 4.4.3 Gold - Live Store


Running on Windows
Reply With Quote
  #2  
Old 09-18-2019, 09:51 AM
 
Ed B. Ed B. is online now
 

eXpert
  
Join Date: Apr 2016
Posts: 218
 

Default Re: Xcart 5 Template Kitchen Supplies Store

https://devs.x-cart.com/design_changes/ maybe?
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote
  #3  
Old 09-18-2019, 05:52 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 13,592
 

Default Re: Xcart 5 Template Kitchen Supplies Store

This is not the design. it is in the code, you will need to modify either the twig file or the view class to reduce the number of categories showing.
Better yet think of better organizing your categories into subcategories and reducing the number of root categories.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 09-19-2019, 06:07 AM
 
Dawn Howard Dawn Howard is offline
 

Senior Member
  
Join Date: Apr 2006
Posts: 179
 

Default Re: Xcart 5 Template Kitchen Supplies Store

Thank you!

I will reduce the number of root categories, but is there a way to not show some on my root categories in that list? I'd like a few root specific categories to exist, but not show in that list.
__________________
Dawn
X-Cart Business 5.3.6.3 - Testing Phase
Mods:
Order Forms - Custom Mod
Freight on Board - Custom Mod
Catalog Order Form
Call For Price

X-Cart 4.4.3 Gold - Live Store


Running on Windows
Reply With Quote
  #5  
Old 09-19-2019, 06:46 AM
 
Ed B. Ed B. is online now
 

eXpert
  
Join Date: Apr 2016
Posts: 218
 

Default Re: Xcart 5 Template Kitchen Supplies Store

  • A very dirty but quick solution: find the twig file responsible for outputting the header, find the loop within, and add an if clause so that categories with certain category_id won't be shown. This is the quickest but will not survive to the update of the skin template module.
  • A slightly cleaner solution: write your own module (maybe this is possible just playing with themetweeker, but I am not sure) so that the part of the twig file in the paragraph above gets overwritten...
  • More time-consuming but probable far better solution, especially if you plan to add/delete categories and subcategories: write a module so that in the category editing page, you will have the choice of show and hide the category in the header menu. Go through the developer documentation https://devs.x-cart.com to find out how. There is a page explaining how to add properties to products, you can use the same method to add properties to categories, except that to deal with categories, x-cart doesn't use DTO as with the products.
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote

The following user thanks Ed B. for this useful post:
Dawn Howard (09-19-2019)
Reply
   X-Cart forums > X-Cart 5 > Modifying the design and features (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 11:20 PM.

   

 
X-Cart forums © 2001-2018