Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
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


 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Static category page - show subcategories?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Jan Andrea
Advanced Member

USA
402 Posts

Posted - 10/10/2018 :  18:42:39  Show Profile
After months (years?) of putting it off, I'm finally making what used to be products with multiple color options into categories where each color is a product. However, I would like to have the top category (in-stocks) as its own page, but still show the subcategories the way they were shown when they were products in that category. Can I do that via the cart? Because right now, it's showing all the products in all those subcategories and I don't remember how to make it show the subcategories instead! I can, of course, just make them part of the HTML, but was wondering if the cart can do it for me with some php include. This is what's on it right now:

<?php
$explicitid=4;
?>
<?php include "vsadmin/inc/incproducts.php" ?>


I know it's the incproducts that's making all the individual products show up; I just wasn't sure if there's something I can replace it with to show the new subcategories.

TIA!

http://www.sleepingbaby.net/
Using ECT 6.8.4

dbdave
ECT Moderator

USA
7557 Posts

Posted - 10/10/2018 :  21:41:28  Show Profile
If you want a static page to show categories instead of products, that would be

<?php include "vsadmin/inc/inccategories.php"?>

https://www.ecommercetemplates.com/seo/static-url-php.asp
Go to Top of Page

Jan Andrea
Advanced Member

USA
402 Posts

Posted - 10/11/2018 :  07:59:47  Show Profile
Thank you! I thought it was something simple like that :)

http://www.sleepingbaby.net/
Using ECT 6.8.4
Go to Top of Page

Jan Andrea
Advanced Member

USA
402 Posts

Posted - 10/11/2018 :  09:26:33  Show Profile
Next question... I'm having a very difficult time getting the category image and text to play nicely together. I'd like to have a two by two layout when it's on a desktop, but it's one on top of another right now. http://www.sleepingbaby.net/instock.php

I took off the box boundaries between categories, but haven't changed much else; just trying to get those to look right. This is what's currently in the style sheet:

div.category{
width:49%;
float:left;
line-height:1.6;
font-size:0.9em;
padding:10px;
background-color:#fefefe;
margin:0px 0px 16px 16px;
}

div.category:hover{
background-color:#fff;
}

div.catnavigation{
padding:10px 0px 10px 12px;
float:left;
width:97%;
font-size:1em;
background-color:#eee;
border-bottom: 1px solid #FED778;
margin-bottom:10px;
}

.catnavwrapper{
background:#fff !important;
border: 1px solid #fff !important;
}

div.navdesc{
display:none; /* Removes the text "View all products in all categories */
}

div.catimage{
float:left;
clear:right;
}

div.catdesc{
padding:2px 0px 4px 4px;
clear:both;
}

div.catname{
padding-left:4px;
font-size:1.2em;
font-weight: bold;
clear:both;
}


(An unrelated issue is that I use Cloudflare, and it caches everything, so I have to manually clear its cache every time I make a change to the code :P )

http://www.sleepingbaby.net/
Using ECT 6.8.4

Edited by - Jan Andrea on 10/11/2018 09:29:53
Go to Top of Page

Jan Andrea
Advanced Member

USA
402 Posts

Posted - 10/11/2018 :  09:33:16  Show Profile
I suspect it's because I'm using clear:both to keep the image and text from overlapping, which they were doing before I put that in.


http://www.sleepingbaby.net/
Using ECT 6.8.4
Go to Top of Page

Andy
Administrator

93848 Posts

Posted - 10/11/2018 :  09:44:03  Show Profile
I just checked and it looks fine to me.

Andy

Please feel free to review / rate our software
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2018 ecommercetemplates.com Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000