Show “out of stock” product at the end of list
-
Hi
I have code for showing out of stock product at end of the product list, but I want the code that compatible with woodmart,
Please tell me is that compatible or not
add_action( 'woocommerce_product_query','hide_out_of_stock' );
function hide_out_of_stock( $q ) {
$q->set( 'orderby', 'meta_value' );
$q->set( 'meta_key', '_stock_status' );
$q->set( 'order', 'ASC' );
}
Hello,
Sorry to say it requires customization and beyond our support policy. Additional code customizations are out of our theme support scope.
Hope you can understand!
You have no option or any way to improve the purchase process of your product?
It is CRO matters, I used that code and it was conflict with your theme, but it works fine with Storefront
Is that beyond your support policy?
@av_admin_1984 check this
https://xtemos.com/forums/topic/hide-out-of-stock-products-or-move-them-at-the-end/
This helped me with the same scenario
-
This reply was modified 1 year, 1 month ago by
razvanli.
@razvanli Hi
Thank you for that
Hello,
@av_admin_1984
Your issue has been resolved or not? Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.
Best Regards.
Yes
It was resolved with help of @razvanli
Thanks
Close
Sounds Great! that your issue has been solved.
I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.
We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.
Thanks for contacting us.
Have a great day.
Topic Closed.
Best Regards.