X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Xcart 5 Template Kitchen Supplies Store (https://forum.x-cart.com/showthread.php?t=77177)

Dawn Howard 09-18-2019 09:45 AM

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?

Ed B. 09-18-2019 09:51 AM

Re: Xcart 5 Template Kitchen Supplies Store
 
https://devs.x-cart.com/design_changes/ maybe?

cflsystems 09-18-2019 05:52 PM

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.

Dawn Howard 09-19-2019 06:07 AM

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.

Ed B. 09-19-2019 06:46 AM

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.


All times are GMT -8. The time now is 04:21 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.