Home Forums WoodMart support forum [BUG] Woocommerce PHP Hooks Not Working (After Applying Patch ID: 488670)

[BUG] Woocommerce PHP Hooks Not Working (After Applying Patch ID: 488670)

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #490952

    Mike
    Participant

    Hi,
    i use the custom layout for single products and i think that on last patches something is broken (probably the patch ID: 488670 did it)

    i was use some WooCommerce php hooks to display some additional content on different places on single product page, some of them are conditionally if the conditions meet. I use the woocommerce conditional content plugin (https://woocommerce.com/products/woocommerce-conditional-content/) to create contents, so everything was working just fine before some days, then i applied the latest patches and now the hooks that i want to display not appear on product page anymore.

    Take a look on video that i created for you and it shows that after the patch applied the problem begins

    #490989

    Artem Temos
    Keymaster

    Hello,

    Please, send us your admin and FTP access so we can troubleshoot this on your website.

    Kind Regards

    #490990

    Mike
    Participant

    Here you go,
    its a staging website, so any changes doesn’t affect live website

    #490992

    Artem Temos
    Keymaster

    We need both admin and FTP access.

    Kind Regards

    #491022

    Mike
    Participant

    Here you go

    #491275

    Artem Temos
    Keymaster

    Hello,

    WordPress password seems to be wrong and we can’t enter your dashboard.

    Kind Regards

    #491284

    Mike
    Participant

    Please try again, i double check it and i can login successfully

    #491304

    Artem Temos
    Keymaster

    We have fixed this issue on your website. Please, check how it works now.

    #491312

    Mike
    Participant

    Yep, it looks ok.

    But i want to pull the fix also on my live website, can you post the change here? so i can apply the same fix till you release a patch or update

    #491313

    Artem Temos
    Keymaster

    You need to edit this file inc/modules/layouts/wpb/shortcodes/woocommerce/hook.php and replace the following line

    if ( ! did_action( $settings['hook'] ) ) {

    with this one

    if ( ! has_action( $settings['hook'] ) ) {

    Kind Regards

    #491319

    Mike
    Participant

    Thank you! the code its working just fine

    #491615

    Luke Nielsen
    Keymaster

    Hello,

    Great! In case you need any additional help, I’d be more than happy to assist you.

    Wish you all the best.

    Kind Regards

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

The topic ‘[BUG] Woocommerce PHP Hooks Not Working (After Applying Patch ID: 488670)’ is closed to new replies.