Home Forums WoodMart support forum Show “out of stock” product at the end of list

Show “out of stock” product at the end of list

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #567686

    av_admin_1984
    Participant

    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' );
    }
    #567799

    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!

    #567812

    av_admin_1984
    Participant

    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?

    #567826

    razvanli
    Participant

    @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 4 weeks ago by razvanli.
    #567883

    av_admin_1984
    Participant

    @razvanli Hi
    Thank you for that

    #567929

    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.

    #567989

    av_admin_1984
    Participant

    Yes
    It was resolved with help of @razvanli
    Thanks
    Close

    #567994

    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.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Show “out of stock” product at the end of list’ is closed to new replies.