Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

Jan Andrea
Advanced Member

USA
468 Posts

Pre-sales questions only
(More Details...)

Posted - 05/27/2020 :  14:29:00  
This is probably a silly question, but I couldn't find an answer searching in the help files. I'd like to have a custom/static category page where categories are added to the higher level category. I know how to do a static category page and then display just products from the category, but I don't recall how to do the same with a category.

If an example helps, I'm doing fabric face masks. I have some printed fabrics that I can reorder, some that are pretty much a one-off, and some solids, and I'd like to separate them out. So I have a high-level category "Masks" and sub-categories for solids, reorderable prints, and limited prints. Right now, my page of face masks just shows all of the masks with no breakdown, even though I have them in sub-categories now:

https://www.sleepingbaby.net/masks.php

I would like the mask page to show the three sub-categories, and have those go to sub-category static pages. For showing all the products, I know it's this:

[code]<?php $explicitid=1; ?>
<p><?php include "vsadmin/inc/incproducts.php" ?></p>[/code]

Is there a similar explicit id or inccategories that I can sub in to show the sub-categories?

Thank you!

http://www.sleepingbaby.net/
Using ECT 7.2.2 for php

dbdave
ECT Moderator

USA
10411 Posts

Posted - 05/27/2020 :  14:52:19  
Hi, category pages show (sub) categories, and product pages show products.
So this,
<?php $explicitid=1; ?>
<p><?php include "vsadmin/inc/incproducts.php" ?></p>

Should be something like
<?php $explicitid=1; ?>
<p><?php include "vsadmin/inc/inccategories.php" ?></p>

You may or may not need a different explicit ID, but I am sure you can plug in the right category ID there.

More info - https://www.ecommercetemplates.com/seo/static-url-php.asp


David

Edited by - dbdave on 05/27/2020 14:53:02

Jan Andrea
Advanced Member

USA
468 Posts

Pre-sales questions only
(More Details...)

Posted - 05/27/2020 :  16:37:48  
Thanks very much! I knew it had to be something simple :D

http://www.sleepingbaby.net/
Using ECT 7.2.2 for php

Jan Andrea
Advanced Member

USA
468 Posts

Pre-sales questions only
(More Details...)

Posted - 05/27/2020 :  19:32:38  
Yay! Now it looks much better, and I repeated the trick with the subcategory pages and I'm quite happy. Thanks for the help!

http://www.sleepingbaby.net/
Using ECT 7.2.2 for php

dbdave
ECT Moderator

USA
10411 Posts

Posted - 05/27/2020 :  19:36:48  
Bravo Jan... I'm glad I could be if assistance.

Thanks,
David
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.05 seconds. Snitz Forums 2000