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
|