• After add restrictions in add/edit product page, when update or publish, restrictions are not showing, I think they are not saved, but the product data is successfully published or updated
    my site is a multisite WordPress

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

    (@pektsekye)

    Hello,

    Check the browser console log. Maybe there is some error message.

    Stanislav

    Thread Starter samrat5

    (@samrat5)

    no error showing in the console…
    I found the problem…
    As my site is multisite WordPress and my site id is 2 where I need the plugin to work…
    here this plugin creates a table in the database as wptableprefix_ymm, but in my case, as it is multisite and my table prefix for the site is wptableprefix_2_ymm.
    I just update the table name in my database and plugin works perfectly.
    I think you need some update in your plugin code for this multisite issue.
    Thank You..

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    To support multisite WordPress
    I have replaced all $wpdb->prefix with $wpdb->base_prefix

    Try to download and install the latest version of this plugin from wordpress.org
    The version number is the same 1.0.9

    Stanislav

    I had the same issue and run a multisite. I fixed this by not Network activating the plugin and just activating the plugin per site. Solved the issue for me.

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Can you check what is the new ymm database table name when you installed the updated plugin?

    Stanislav

    corp_2_ymm where corp is the database prefix, 2 for site number 2 in the multisite and then your table name. I did a search across the whole database and this is the only instance of ymm so when I network activated it looks like the plugin did not put the table under each website (asuming this is what it was meant to do).

    I have activated the plugin to only work on site 2 at this stage. I’m assuming one I turn it on for other sites then another instance of the ymm table will install under the coresponding site number.

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    This plugin does not support multisite by default.
    So it should have one database table without number in the name.

    Have you updated all files of this extension to the latest version?

    For example the updated file:
    wp-content/plugins/ymm-search/Setup/Install.php
    should contain $wpdb->base_prefix instead of $wpdb->prefix

    Stanislav

    I have this working Stanislav. I was just replying to a comment further up to how I got it to work seeing the original poster also had multisite. For my own amusement I just installed it on another site within the multisite (site 3). I now have 2 tables:

    corp_2_ymm
    corp_3_ymm

    You just have to activate the plugin individually per site and not network activate.

    I downloaded your plugin 2 days ago and the install file does not have $wpdb->base_prefix but instead $wpdb->prefix

    This is fine for me though because I will need a deperate table for site 3 anyway being different product listings

    Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Yes, if you want to use different YMM search per site you should have
    $wpdb->prefix instead of $wpdb->base_prefix in all files.

    And then create manually all missing database tables like:
    corp_2_ymm
    corp_3_ymm

    Or to activate the plugin individually per site and the install script will create missing database tables (I have not checked it)

    Stanislav

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘restrictions are not saved’ is closed to new replies.