Function code in WooCommerce filter - by MAHDAR

This topic has 4 replies, 2 voices, and was last updated 4 months ago ago by Andrew Mitchell

  • Avatar: mahdar
    MAHDAR
    Participant
    June 4, 2024 at 02:50

    Hello, I hope you are well

    I wrote a function code for the size filter on my previous site, which was an x-store theme

    For example, clothes whose size 46 is sold out were not displayed when size 46 was filtered

    It means that the non-existent size was not displayed

    But now I am using Elementor and this function does not work

    Is it possible to help me rewrite it? I don’t know exactly, but I think it should be an alternative hook

    I put the code in private

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    June 4, 2024 at 16:41

    Hello, MAHDAR,

    We have noticed that it is currently not possible to activate the child theme. It appears that modifications have also been made to the parent theme. Please address this issue so that we can proceed further.

    Additionally, we strongly advise against making changes to the parent theme, as any alterations will be lost upon updating.

    Thank you for your attention to this matter.

    Best Regards,

    8Theme’s Team

    Files is visible for topic creator and
    support staff only.
    Avatar: mahdar
    MAHDAR
    Participant
    June 4, 2024 at 17:06

    The child theme is activated

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    June 5, 2024 at 21:45

    Hello, MAHDAR

    We have thoroughly analyzed the issue you reported and have identified a solution. To resolve the problem, please replace the current hook:

    add_action( ‘woocommerce_before_shop_loop_item_title’, ‘wk_out_of_stock_variations_loop’, ‘etheme-product-grid etheme-product-grid-bordered’ );

    with the following:

    add_action( ‘after_etheme_product_grid_list_product_element_title’, ‘wk_out_of_stock_variations_loop’, 101 );

    Should you require any further assistance, please do not hesitate to contact us.

    Best Regards,

    The 8Theme Team

  • Viewing 4 results - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.