Thanks for report the issue.
Hope next version will bring this feature.
Regards
Hi, please check the latest version I have added menu order on the list.
View post on imgur.com
Let me know the result after update.
Regards
Thread Starter
maxgx
(@maxgx)
that’s brilliant, thanks!
strangely i still don’t get the update nag in plugins, i see version 1.12.10 but no update request, but i guess i can just download the new one and replace it.
one other thing i forgot to ask you is if it’s possible to change to the output of the categories, so to remove the last comma from the list.
what i’ve done in /woocommerce-products-slider/templates/wcps-category.php is to change the foreach:
foreach($product_cats as $key => $cat)
{
$cat_link = get_term_link( $cat->term_id, 'product_cat' );
$cat_name = $cat->name;
$cat_html.= '<a href="'.$cat_link.'">'.$cat_name.'</a>, ';
}
into:
foreach($product_cats as $key => $cat)
{
$cat_link = get_term_link( $cat->term_id, 'product_cat' );
$cat_name = $cat->name;
$cat_html.= '<a href="'.$cat_link.'">'.$cat_name.'</a>';
if ($i !== $len - 1)
{
$cat_html.= ', ';
}
$i++;
}
hope that’s fine.
Thread Starter
maxgx
(@maxgx)
sorry, forgot two lines:
$i = 0;
$len = count($product_cats);
to be placed before the foreach loop…
Thread Starter
maxgx
(@maxgx)
tested new version, “Query orderBy – Menu order” is there ok, but something is not working as expected: i keep changing “Query order” between Ascending and Descending, but nothing changes, i always get the oldest first.
what else can i try?
Thread Starter
maxgx
(@maxgx)
ok, found it out:
there’s a ‘Sort Products’ link on top of the ‘Products’ list, and that’s the one that sets the order…
all working then!
Thanks for the update.
i will update the next version for comma issue.
Regards