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
 All Forums
 General
 Suggestions - NOT QUESTIONS
 New Recommended Category feature
Author « Topic »  

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/13/2019 :  14:33:21  
I have been testing this feature. This is great because I have manually inserted categories on my home page for years.
I would like to see the ability to view only recommended categories that are enabled in the admin. I expect the ideal place would be a choice on the Category Function menu drop down.

It would be great if there was a way to sort the categories (output on the home page) that are recommended.

Thanks,
David

Marshall
Ecommerce Template Guru

USA
1909 Posts

Posted - 07/13/2019 :  14:45:28  
Does this not already exist - https://www.ecommercetemplates.com/help/home-page-display.asp#categories

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/13/2019 :  16:21:33  
Yes, but I think some additional features would be helpful.

quote:
I have been testing this feature.


quote:
I would like to see the ability to view only recommended categories that are enabled in the admin. I expect the ideal place would be a choice on the Category Function menu drop down.

It would be great if there was a way to sort the categories (output on the home page) that are recommended.

Edited by - dbdave on 07/13/2019 16:21:47

Vince
Administrator

42750 Posts

Posted - 07/14/2019 :  02:48:25  
quote:
I would like to see the ability to view only recommended categories that are enabled in the admin.
But isn't this the idea, that you set the "Recommended" setting for those you want to display on the home page? I think I'm not understanding something.

quote:
It would be great if there was a way to sort the categories (output on the home page) that are recommended.
What kind of sort options were you thinking of? Alphabetically for instance? Any others?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/14/2019 :  09:26:54  
Hi Vince, maybe I didn't word that very good.
In the admin, I want to easily see (filter) categories I have set as recommended.
Viewing products in the admin already has this feature.
I have hundreds of categories in my store, spanning several pages when viewed in the admin. It would be helpful (just the same a products) to be able to view only (filter) those.

As for the sorting, in a perfect world, I thing giving it a numerical value would be ideal.
I'm not sure if alphabetical would help for me, although some store owners light like that.

If your not keen on adding another database column, perhaps a unique id on the category div, then it would be possible to use flexbox css to sort the output
https://www.w3schools.com/cssref/tryit.asp?filename=trycss3_order

It does look like it can be done on just the category class only, but without understand how the display is currently (output) sorted, that's more difficult than just having a unique ID for each category. My thought is the id could simply be the unique category ID, already shown in the admin.

Sample style and html might be
<style>
div.hc {
display: -webkit-flex; /* Safari */
display: flex;
}
/* Safari 6.1+ */
div#22 {-webkit-order: 1;}
div#47 {-webkit-order: 2;}
div#12 {-webkit-order: 3;}
div#33 {-webkit-order: 4;}

/* Standard syntax */
div#22 {order: 1;}
div#47 {order: 2;}
div#12 {order: 3;}
div#33 {order: 4;}
</style>

<div class="hc">
<%
recommendedcategories=TRUE
%>
<!--#include file="vsadmin/inc/inccategories.asp"-->
</div>






Edited by - dbdave on 07/14/2019 09:30:29

Vince
Administrator

42750 Posts

Posted - 07/15/2019 :  01:11:15  
Hi Dave
Being able to display just the recommended categories is a great idea and I've done that now and added the change to the inccats.asp/php file in the updater.
For the sorting, as the structure is...

<div class="categories">
<div class="category"> . . .</div>
<div class="category"> . . .</div>
</div>

...would this work then?
https://www.w3schools.com/cssref/sel_nth-child.asp

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/15/2019 :  05:54:22  
quote:
<div class="categories">
<div class="category"> . . .</div>
<div class="category"> . . .</div>
</div>

...would this work then?
https://www.w3schools.com/cssref/sel_nth-child.asp


It might, unless the current output is random. or might change.
What's the current method of sorting for the output there?
I could not tell just by adding recommended categories to the list.

Vince
Administrator

42750 Posts

Posted - 07/15/2019 :  06:01:46  
The current method would be the same as for the main category listings . . . either alphabetically or by Category Order. But you could force that by putting say...
sortcategoriesalphabetically=TRUE
...before the include line in the home page.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/15/2019 :  06:41:29  
Hi Vince, I will give it a try with the sortcategoriesalphabetically=TRUE setting.

Thanks,
David

dbdave
ECT Moderator

USA
10406 Posts

Posted - 07/20/2019 :  13:49:07  
Hi Vince, I tried the suggestion and it works as expected.
The biggest drawback is if I decide to change my recommended categories, it's a pretty good amount of work to edit the css to get them back the way I want.
My original suggestion of adding a unique id to the div, and that id being the category id that's already unique and visible in the admin, would mean easier, or no, css edits needed when adding or removing recommended categories.
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000