• Resolved step8601

    (@step8601)


    wp 4.3.1
    woocommerce 2.4.10
    dokan (multivendor plugin)

    i have a multivendor site, and i have product categories and product subcategories

    when there are subcategories, i’m trying to prevent my sellers from adding products to top categories (to prevent duplicate content, etc)

    i want to limit the “seller” role

    in the Restrict Taxonomies settings, i have the following:

    Post types and Taxonomy Settings
    Custom post Types to handle
    Products and Posts (both checked)

    Custom Taxonomies to handle
    Product Categories (checked)

    i then (as admin), put checks in the product top-level categories (checke to prevent adding to them?)

    i then logged out as admi and then i loggged in as a test seller, but my test seller was still able to add to the product top categories

    ===========

    in addition, found a possible bug

    at the top of each set of checkboxes for each role, the checkbox at the top of the select box has the following text instead of the category name:

    “last-cat-item cat-itemseller_cats-category-130″>”

    ============

    any ideas?

    would LOVE if this could help restrict sellers from adding to top-level product categories when those categories also have subcategories (limit to subcategories)

    thanks

    https://www.ads-software.com/plugins/restrict-taxonomies/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Antoine Guillien

    (@sladix)

    Hi step8601,

    In the settings, you check the categories to allow access to theses categories.

    The plugin is used to allow some categories, if you want to prevent your sellers from posting to top categories, you should check all the categories that they are allowed to post in.

    For the bug, could you provide a screenshot ?
    Is there any errors displaying ?

    Thread Starter step8601

    (@step8601)

    hi, great, here are some screenshots:

    Post Types and Taxonomy Settings:
    https://grab.by/MdhE

    Product Categories:
    https://grab.by/MdhQ

    1. also, i just upgraded to the latest version issued i believe today

    2. btw, if you allow adding to a top-level category, does that also automatically allow adding to that top-level category’s subcats too? or is each cat and subcat completely independent?

    thanks for looking into this

    Plugin Author Antoine Guillien

    (@sladix)

    Hi,

    Each cat and subcat are independant, so you will have to check all thoses which you want to allow for a role/user.

    For the bug, I can’t reproduce it, here is the plugins I installed trying to reprocude the bug:

    • WooCommerce 2.4.1
    • Dokan Lite 2.4.8
    • Restrict Taxonomies 1.2.7
    • Is there some notices or warnings related to restrict taxonomies in your php error.log ?

    Thread Starter step8601

    (@step8601)

    i think i’ll do a totally new install

    start with just wp, then install Restrict Taxonomies, see what’s what, then add woocommerce, test RT again, install dokan, etc, then install other stuff and see what happens. i’ll also create a few “seller” users for dokan to see if that messes things up. i’ll report back

    Plugin Author Antoine Guillien

    (@sladix)

    Hi,

    Thanks helping me to improve this plugin !

    Waiting for your report.

    Thread Starter step8601

    (@step8601)

    1. i did a fresh install of wp 4.3.1, woocommerce, dokan-lite, and Restrict Taxonomies (all latest versions)

    2. i adjusted the permalinks per the dokan-lite instructions:

    A) Common Settings should be set to Post Name
    B) Product permalink base should be set to Product

    3. i then created a few top categories and sub categories

    Top Cat 1
    – subcat 1
    – subcat 2
    Top Cat 2
    – subcat 1
    – subcat 2
    Top Cat 3

    4. i then went into Restrict Taxonomies and put check marks only in the subcats, not in any top cats, see two pics here to see RT settings:

    https://www.screencast.com/users/step8601/folders/Restrict%20Taxonomies/media/c4d2a117-adcf-454a-8cdd-61e88a3632df

    5. i then created a new user through admin as a “seller”, then i clicked to edit that new user to “enable” that user as a seller (slide down the edit screen, you gotta get the hang of how dokan works, first create the user as a seller and then edit that user to enable that user as a seller, try it you’ll see)

    6. then i logged out of wp admin and logged in as the new seller

    7. then i went to my seller dokan dashboard and clicked products and then clicked Add New Product

    8. you should now see the fresh list of cats and subcats

    9. i then entered a product title, uploaded a main product image, and then selected one of the top cats, and then clicked to submit the new product (you’ll see the submit button at the bottom of the add-product form)

    10. it then allowed that new product to be submitted and was put into a pending status

    11. i then logged out as that test seller and then logged in as admin

    12. went into products, and there it was, the seller-submitted product awaiting approval, listed in a (restricted) top cat

    so it looks like there is a way for sellers to submit products to restricted product cats

    are you able to reproduce the issue at all given the above?

    many thanks

    Thread Starter step8601

    (@step8601)

    btw, would be cool if the restricted cats/subcats are not even displayed to the seller

    would help cut down on support requests (“hey, i’d like to add my stuff to Top Cat 1, thanks”)

    Thread Starter step8601

    (@step8601)

    hmmm, even better would be to “gray out” the restricted categories checkboxes but still display them

    this way, the category architecture is still displayed to the seller (in case there are lots of cats/subcats) but they can still see the allowed cats with checkable checkboxes

    hope this makes sense

    thanks

    Plugin Author Antoine Guillien

    (@sladix)

    Hi step8601,

    I was able to reproduce your bug.

    I issued a new version of the plugin this morning that works with dokan lite. Since i don’t own the dokan theme, I assume they used the same function.

    Since the seller dashboard is not in the back office, you’ll have to enable the “Front end Restriction” checkbox.

    For now I’ll just strip out the restricted categories so they don’t appear at all in the dropdown menu.

    Hope your problem is fixed now.

    Thread Starter step8601

    (@step8601)

    nice!

    yes, i had to enable Front End Restriction

    ….and it worked!

    thanks so much, this is such a neat plugin, i can see this applying to lots of sites

    really appreciate this plugin and your help tweaking it

    thanks again ??

    Plugin Author Antoine Guillien

    (@sladix)

    No problem !

    Happy to know this plugin will help =)

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Woocommerce product categories – does not limit categories’ is closed to new replies.