Hello.
I tried to change it manually and it does not work.
Can you please help me and tell me how I can change that issue?
This is the code I used:
var elements = document.getElementsByName(‘fb_product_category’);
for (i=0;i<elements.length;i++) {
if(elements[i].value == “vorspeisen”) {
elements[i].checked = true;
}
}add_filter(‘woocommerce_default_catalog_orderby’, ‘maharana_default_catalog_orderby’);
function maharana_default_catalog_orderby( $sort_by ) {
return ‘price’;
}
My issue explained again:
I want that the cheaper products (starter/Vorspeisen) appear first when you open the foodbook shop (http://www.maharana.ch/foodbook/). So either that automatically the starters category (Vorspeisen) appear first when opening the shop or that I can change the products manually through Woocommerce (I choose the chronology of the products).
Thank you for your help!