• Resolved prem77

    (@prem77)


    Hi Vlado,

    First off, thank you for creating this plugin (and offering it for free!)

    Using ver 4.1.2 of the plugin with WC 7.1 and WP 6.1 – I have hit upon an issue where I am unable to set more than 1 lock by product using the Page Restrict dashboard widget “wp-admin/admin.php?page=prwc-pages-menu”

    I did find a workaround where using the UX editor and setting more than 1 lock by products correctly saves, however if I then use that widget to update just the timeout field, it updates the lock by products to just the 1st lock by product.

    Hopefully I put in enough context for you to be able to reproduce it.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Vlado Grcic

    (@vladogrcic)

    Hi @prem77,
    I’m not sure I understand. Regarding my plugin version you wrote 1.4.2. Do you mean 1.4.12?
    Regarding your issue what do you mean with UX editor? Is that the gutenberg editor? I’ve reproduced the issue so I’ll try to fix it when I can. I’m just confused about what the UX editor is.

    Thread Starter prem77

    (@prem77)

    Hi Vlado – That’s great you were able to reproduce – looking forward to seeing the updated plugin.

    Sorry I did mean version 1.4.12 and when I mention the UX editor – it’s the page widget feature of Page Restrict available when you edit the UI on the top right corner – here’s a link with a screenshot of what I meant – sorry about the confusion!

    https://ibb.co/mh9fRdg

    Cheers!

    Plugin Author Vlado Grcic

    (@vladogrcic)

    Thanks, its clear now.

    Hi,

    is there any update on when we may see a fix for this issue? We need to be able to add more than one product too. Otherwise it is a great plugin.

    Cheers

    Plugin Author Vlado Grcic

    (@vladogrcic)

    Not sure. Tried to fix it but the problem is really strange. I have a few ideas but cant promise anything.

    Plugin Author Vlado Grcic

    (@vladogrcic)

    Should be fixed now.

    Thread Starter prem77

    (@prem77)

    @vladogrcic I just tested this issue using 1.4.13 and can confirm it works as expected, thanks for fixing this.

    If you’re able to share, curious to know what caused the bug. Was it due to a WordPress/WooCommerce update breaking the plugin?

    Plugin Author Vlado Grcic

    (@vladogrcic)

    @prem77 Well for some reason update_post_meta removes the comma and everything after it. I’ve checked inside wp-includes/meta.php line 207, this happens after that line. I don’t know how or why but thats what happens. That is not how that function should function, it didn’t like that before. But using $wpdb->update(insert) works fine so I used that.

    Thread Starter prem77

    (@prem77)

    Gotcha, thanks for the explanation and thanks again for fixing this issue. It saves me a ton of manual work. Cheers!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Unable to set more than 1 Lock by Product’ is closed to new replies.