WordPress.org

Forums

WP eCommerce
Limit Ability to Create Products (6 posts)

  1. Cartwright
    Member
    Posted 1 year ago #

    Our website is a blog and an online store, I have 27 contributors for the blog but because they have the ability to create posts they have the ability to create products since products are a custom post type.

    I only want the roles with higher levels of access to be able to create products. How can I remove this ability from the role of contributor?

    https://wordpress.org/plugins/wp-e-commerce/

  2. Cartwright
    Member
    Posted 1 year ago #

    In wpsc-functions I changed:
    'capability_type' => 'post',

    to

    'capability_type' => 'product',

    This has removed the the ability to see or create products by contributors but I (an administrator) can no longer create products either (I can however see the tags, categories, variations and coupons).

    This seems to have gotten me halfway, I'm just not sure what I am missing

  3. nicknack
    Member
    Posted 1 year ago #

  4. Cartwright
    Member
    Posted 1 year ago #

    I already use the Members plugin

    http://wordpress.org/plugins/members/

    But because products are a post (thus the 'capability_type' => 'post') the capability to create/edit them is "edit_posts"

    If I take away that capability it stops them from creating products and blog posts.

    If someone can find an easier way I would LOVE to know, but the only I can think of is to re-name the product custom post-type to something other than 'post'

  5. Chrishat
    Member
    Posted 1 year ago #

    Hi Cartwright, Did you manage to find a solution for this problem yet?
    I have the same problem.
    Chris

  6. Chrishat
    Member
    Posted 1 year ago #

    Try this plugin:
    Role Scoper

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.