• I just updated my wordpress and woocomerce to the latest versions. I also updated your plugin to the very latest.
    I notice the layout of the Role Based Pricing is different now, too.
    Any products that are variable no longer show Role based prices! All I see now is a message in my product page that says “Product is out of stock and can not be purchased at this time”. Any product that is NOT variable works. The product price does show in the product page or single product page. I tried rolling back to 2.8.8 of your product (this is what I was using prior to all the updates). I even tried adding a new product from scratch…same issue. If I add a regular selling price (outside WC Role Based Price), the product’s price shows (ie $1.00) and NOT the role based price. I deactivated every plug in too…no change.
    Perhaps I should keep using 2.8.8 with the latest versions of woocommerce and wordpress??
    Any thoughts or ideas why this is happening?
    I’m testing in my sandbox environment right now, so no harm to my live site. I will go and restore my sandbox site again so it mirrors my live site as it is right now. I’ll go and update woocommerce and wordpress again, and update my plug-ins but NOT update your plug-in. See if that helps matters.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Varun Sridharan

    (@varunms)

    Hi,

    Hope you are doing good

    I can see that you are a long user of our plugin. and also seems that you missed our 3.0 Launch we did 1 year ago (26-01-2017)

    We sent a lot of email and posted in Social Medias too. anyways

    We are not supporting 2.8.8 as of now 3.0 has LTS and we would recommend you to upgrade to 3.0

    Also after you upgrade please go to the settings page
    WooCommerce => Role Based Price Settings

    And update all the settings once again. after that it will work.

    Thread Starter KissMyLegs

    (@kissmylegs)

    Hi,
    Thanks Varun for you quick reply. I believe I have already tried upgrading from 2.8.8 to 3.0, but I will try again.

    It should be okay if I deactivate 2.8.8 and rename that folder and then install 3.0 from zip?

    Thanks.
    Dave

    Plugin Author Varun Sridharan

    (@varunms)

    Yes that would be ok

    Thread Starter KissMyLegs

    (@kissmylegs)

    Ah..now I remember why I did not use 3.0. I get this error when activating:

    Parse error: syntax error, unexpected ‘.’, expecting ‘,’ or ‘;’ in /home2/sand/sandbox8833.km.ca/wp-content/plugins/woocommerce-role-based-price/includes/helpers/class-admin-notice.php on line 6

    This error occurs in several older instances of WC Role Based Price.

    Here is the beginning of that file…

    class WooCommerce_Role_Based_Price_Admin_Notices {

    protected static $instance = null;
    protected $noticesArrayName = WC_RBP_DB.’AdminNotices’;
    protected $REQUESTID = WC_RBP_DB.’MSG’;
    protected $notices = array();

    Thread Starter KissMyLegs

    (@kissmylegs)

    Line 6 is this:

    protected $noticesArrayName = WC_RBP_DB.’AdminNotices’;

    Thread Starter KissMyLegs

    (@kissmylegs)

    Should I first upgrade my wordpress and woocommerce files to their respective latest versions before installing WC RBP version 3.0?

    Plugin Author Varun Sridharan

    (@varunms)

    Hi,

    You i prefer you to upgrade WP,WC & WC RBP

    also the issue which you said is fixed already.

    Thread Starter KissMyLegs

    (@kissmylegs)

    And now I am getting this:

    Fatal error: Cannot redeclare class WooCommerce_Role_Based_Price in /home2/sand/sandbox8833.km.ca/wp-content/plugins/woocommerce-role-based-price/bootstrap.php on line 12

    Thread Starter KissMyLegs

    (@kissmylegs)

    Hi Varun,

    I will upgrade WP and WC to their respective latest versions and then try installing 3.0 of WC RBP (upgrading to your latest version did not work for me.)

    Thanks for all your help.
    Dave

    Plugin Author Varun Sridharan

    (@varunms)

    Fatal error: Cannot redeclare class WooCommerce_Role_Based_Price in /home2/sand/sandbox8833.km.ca/wp-content/plugins/woocommerce-role-based-price/bootstrap.php on line 12

    This might be you are using 2 same plugin at the same time. just deactivate 1 and install the other.

    Thread Starter KissMyLegs

    (@kissmylegs)

    Yes…my fault…sorry. I did not rename the folder prior to the second installation.
    My work continues…

    Thanks again for your PROMPT replies.
    Dave

    Thread Starter KissMyLegs

    (@kissmylegs)

    So things are still acting weird, even after updating WC, WP, and WC RBP to their respective latest versions. For all products, what I have to do to get the price to show (in products page and single products page) is to go and add a price to the “Regular Price” field inside a product. Even though the prices have already been set, and the product DID show a price prior to updates. I have well over 500 products that are potentially broken now (if I update my live site). Version 3.0 still gave me an error (as described above), so I could not use that version. I installed the most current version of your product. In the past, I have not had to go and put in a price under the “Regular Price” column (not the “Regular Price” column inside your product), but the “Regular Price” column inside a Variant.

    Thread Starter KissMyLegs

    (@kissmylegs)

    FYI: I deactived every single plug-in, except woocommerce. I upgraded my theme to the most current version. Product prices were not showing, but they were being added to the cart properly (correct user role price was showing).
    So that is where I am right now. I will have to go and add a “fake” regular price to every product (variant or not) in order for the price to show on the product page and single product page.

    Plugin Author Varun Sridharan

    (@varunms)

    FYI: I deactived every single plug-in, except woocommerce. I upgraded my theme to the most current version. Product prices were not showing, but they were being added to the cart properly (correct user role price was showing).
    So that is where I am right now. I will have to go and add a “fake” regular price to every product (variant or not) in order for the price to show on the product page and single product page.

    I am sorry i dint quite get it ?

    Have you entered based product price or not ?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Role Based Prices Not Working’ is closed to new replies.