Home Forums WoodMart support forum About in stock status in filter

About in stock status in filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #491621

    [email protected]
    Participant

    Dear Support ,
    can the stock filter instock set checked on default page load ?

    thank

    mango

    Attachments:
    You must be logged in to view attached files.
    #491854

    Luke Nielsen
    Keymaster

    Hello,

    Sorry to say but right now there is no option in Theme Settings available for that. It requires Customization and this is beyond our limitations and support policy scope.

    Hope you can understand our limitations.

    Kind Regards.

    #492740

    [email protected]
    Participant

    Dear support,
    thank for your reply , understood

    there have a way to work around, want to share with you and some user face the same problem
    Just add class add-parameter for the link widget ,

    and use the follow jquery to add the link with the url param

    hope it help and have a good day
    mango

    jQuery(document).ready(function($) {
    $(‘.add-parameter a’).each(function() {
    var url = $(this).attr(‘href’);
    var param = ‘stock_status=instock’;

    // Append the URL parameter if it doesn’t exist already
    if (url.indexOf(‘?’) === -1) {
    $(this).attr(‘href’, url + ‘?’ + param);
    } else {
    $(this).attr(‘href’, url + ‘&’ + param);
    }
    });
    });

    #492964

    Luke Nielsen
    Keymaster

    Hello,

    Glad that you found the solution.

    Always remember that you can reach out to us with any questions you may have.

    We wish you a splendid day!

    Kind Regards

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

The topic ‘About in stock status in filter’ is closed to new replies.