• Resolved mikeliius12

    (@mikeliius12)


    Hi there,

    I’m having some problems with the plugin. Here is the scenario:

    As an Admin on one page, I created a shop manager user that can only take care on the shop, add new products, add new wholesale rules etc…
    So when I login as a Shop Manager, and go into Wholesale Pricing Rules section i got only these two categories available:
    – Wholesale Pricing Rules
    – Add New

    I can’t see the other ones that are displayed when I’m logged in as an admin:
    – Wholesale Pricing Rules
    – Add New
    – Wholesale Pricing Settings
    – Upgrade to Pro
    – Wholesale Pricing Help
    – Wholesale Pricing Categories

    That is one problem, and the other one is here, on the screenshot
    https://www.awesomescreenshot.com/image/396117/83be8e2055b35dfd7a8568bd53ef87bb
    where you can see when I’m logged in as a Shop Manager and I click on the Wholesale menu, this is what I’m getting.

    Is it up to the role capabilities, which capabilities is the plugin using or is it something else.

    Thanks

    https://www.ads-software.com/plugins/wholesale-pricing-for-woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author vark

    (@vark)

    Hi,
    Thanks for your query. Answering the questions by the numbers:

    (1) “.. can’t see the other ones that are displayed when I’m logged in as an admin:..”
    – Yes, that’s the way it’s written – if you don’t have full admin rights, you don’t have full access. If you need it to be otherwise, you’ll need to hack the plugin. I’ll give you the lines to comment, if you like.

    (2) “… That is one problem, and the other one is here, on the screenshot”
    – I don’t understand what the additional issue is… but in any case, if it’s related to role and access, the hack you (may) be doing should take care of this as well.

    Best,
    Vark

    Thread Starter mikeliius12

    (@mikeliius12)

    Yes, I think it might be the role issue, if you can send me which lines to comment it will be very helpful :).

    For the second question is that you can see that when click on the wholesale menu, the left sidebar menu is empty, without the dashboard and all the other menus items.

    Thanks

    Plugin Author vark

    (@vark)

    OK, here’s the lines. Comment out the line numbers in the parenthesis precisely, and replace the last line as directed.

    It *may* work – ymmv. i can’t really support a hack, beyond this info…

    ----------------------------------------
    Find 'current_user_can' in 'vt-wholesale-pricing-for-woocommerce\vt-wholesale-pricing.php':
    vt-wholesale-pricing-for-woocommerce\vt-wholesale-pricing.php(247-8):      if ( !current_user_can( 'edit_posts', 'vtwpr-rule' ) )
    vt-wholesale-pricing-for-woocommerce\vt-wholesale-pricing.php(309-11):       if ( !current_user_can( 'edit_posts', 'vtwpr-rule' ) ) {
    vt-wholesale-pricing-for-woocommerce\vt-wholesale-pricing.php(352-4):      if ( !current_user_can( 'delete_posts', 'vtwpr-rule' ) )  {
    vt-wholesale-pricing-for-woocommerce\vt-wholesale-pricing.php(376-8):      if ( !current_user_can( 'delete_posts', 'vtwpr-rule' ) )  {
    vt-wholesale-pricing-for-woocommerce\vt-wholesale-pricing.php(399-401):      if ( !current_user_can( 'delete_posts', 'vtwpr-rule' ) )  {
    vt-wholesale-pricing-for-woocommerce\vt-wholesale-pricing.php(420-422):       if ( !current_user_can( 'edit_posts', $vtwpr_info['parent_plugin_cpt'] ) ) {
    Found 'current_user_can' 6 time(s).
    ----------------------------------------
    Find 'current_user_can' in 'vt-wholesale-pricing-for-woocommerce\admin\vtwpr-rules-ui.php':
    vt-wholesale-pricing-for-woocommerce\admin\vtwpr-rules-ui.php(88, 104):      if(!current_user_can('administrator')) {
    vt-wholesale-pricing-for-woocommerce\admin\vtwpr-rules-ui.php(1127):       replace line 1127 with this:
    <?php if ( !($taxonomy == 'roles') && !($taxonomy == 'variations') ): ?>

    Best,
    Vark

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying problem with some users’ is closed to new replies.