Code

Discussion on WooCommerce Role-O-Matic

Discussion on WooCommerce Role-O-Matic

Cart 510 sales

vanquish supports this item

Supported

207 comments found.

Hi Team,

Great Plugin. Like it very much!!!!

I have some question for it:

1) It it possible to set spent based on order amount? e.g. Single order more than $100 becomes VIP in last 3 months. (A very hot & common setting type)

2) One problem: for Role Editor, if input Traditional Chinese (e.g. 會員), and Add new role, the page will refresh and said “Role added successfully”. But, actually it doesnt saved!. I need to input Role Names with English Character first, e.g. VIP 會員. Then it will save role. Strange…

3) For settings like this:

A) dynamic period = 3 months

B ) Role(s) removal if amount spent doesn’t match = YES

C) Amount = $1200

> does it means: If customer spent $1200 in last 3 months (starting form the 1st order), he will become VIP. > And if he does NOT spent any for the coming 3 months (starting from the last order), system will remove his VIP role and downgrade to customer role?

Do you have email support? cannot send screen capture.

Thanks, Tom

I am afraid I didnt state clearly. I mean I have an idea to develop a new plugin. Will you accept these kind of job, surely, the pay is negotiable? (No problem if you dont =) )

Tthanks a lot, thats only a small suggestion.

I’m really sorry, I do not offer that kind of service :( :(

No Problem, thanks =))

Hello,

I recently purchased WooCommerce Role-O-Matic but ran into an issue I cannot solve. I have some questions:

I set up the Product Configurator and added a rule:

- Add role A when a product of a certain category is purchased. - Remove role A after relative expiring date of 2 minutes (I set it at 2 minutes for testing purposes).

The role is correctly added, but never removed. Removing it does not seem to work.

These are the settings of the rule:

Role to assign: A Remove old roles before assign: No Roles restriction: N/A Select categories: a certain product category Purchase policy: OR Quantity policy: ignore

Expiring date type: Relative Time value: 2 Time type: minutes Roles to assign after expiring date: N/A Remove all roles before assign expiring date role: no Can customer repurchase: yes Purchase restriction: N/A

The WooCommerce product is a Simple Product type.

I have tried to purchase the testing product myself, with all the payment gateways available in WC, and this still does not work. I tried with different wordpress users, created new ones from scratch to make sure the log was clean, and still not working.

The role is always correctly added but never removed after 2 minutes of purchase.

How can I fix this?

I have also tried to force removal of the role by selecting the corresponding settings in “roles to assign after expiring” and “remove all roles before assign expiring”, to re-assign the previous ones and remove that specific role, but still not working. The rule adds the role but does not remove it after 2 minutes.

- Also, if I create a subscription product that automatically renews every 12 months, will that work with your plugin? How does WooCommerce-O-Matic handle that?

- Can the notification email sent by WooCommerce-O-Matic be customised (php template, sender name, etc)?

Thanks a lot in advance. Looking forward to solving these doubts.

Hi, if you enjoyed my support please consider leaving the 5 stars! It would help me with sales and I would really really appreciate!!

Have a great day! :)

Hello.

I just left a 5 star review. Hope it helps :D

Thank you, I really really appreciate! :)

Hello, I installed this yesterday and set up 4 roles for my 14000 customers. After a couple hours the ‘role re-calculator’ gets through about 2000 customers then stops (no change in screen). Latest version of plugin, woo, and WP, powerful dedicated server with memory limit at 1024M and max memory limit at 2048M. Thanks!

Hello,
as you can understand, without any further clue, it is quite hard to determine the cause.

Please try disabling all the other 3rd party plugins to see if any is interfering. Try also enabling the wordpress debug mode (https://wp-staging.com/docs/enable-wordpress-debug-log-mode/ ) and reperform a test. Once done, see in the debug.log located in the wp-content folder if any further info is reported.

Try also giving a look to the server error log.

Dear Author, loving the plugin. One quick note. On the my account page you have the next available roles with the progress bar. The amounts spent and the amounts to achieve are shown without vat. I do understand the reason why, because if there are products with different vat it will not show it correctly, however on the site we use it all products have the same 22% VAT. Is there a way to show these amounts +22%?? It will make it much more clear for customers how much they still need to spend. It is a site for consumers, not business customers. Thank you so much!

You’re welcome!

To remove the currency, just remove the “wp_price()” function. That function takes a number as parameter (in this case $rule_and_amount[‘amount_to_achieve’]*1.2 value) and format its as a price.

Remove that function, for example line 32 should look like:
<span class="wcra_next_role_total_spent_value"><?php echo $rule_and_amount['total_spent']*1.2; ?></span>

You can eventually process that value in order to truncate/round it in case it is a decimal value! :)

Hi thank you again for your reply. Becuase of a change, we leave the *1.2. So line 32 is normal: <?php echo $rule_and_amount['total_spent'];?>

Now im only trying to solve the rounding issue. Current amount shown on the my account page is now 2049.180328. I need this rounded to 2049 (no digits). Iv tried a few tricks i know but didnt work. Any suggestions. Thanks again for your time…

This should be easy! PHP has several functions and methods to round a number. The most common is the round() function: https://www.php.net/manual/en/function.round.php

However, for this you should find several example on the web showing how to use that function or how to manually implement a function to compeltely remove decimal values!

vanquish vanquish AUTHOR

Hi I cannot get the role to change based upon spend dynamically from now to a year yet your answer to this in looking up up the issue says you can – if so how do i do it because the plugin says n ‘last’ time factor previous question:

4 months ago Flag Hi, You cannot set any rule that starts after a specific role has been assigned.

You can create a rule that can only take into consideration the amount spent in a fixed time period (For example from 2020/2/26 to 2021/2/26) or a dynamic range (For example from the current day to the current day + one year)

I’m sorry I do not understand the issue you are experiecing, the quote you reported and how they are related.

Could you provide a more detailed description?

Thank you.

Hello,

Plugin has been great! However been running into an issue recently where when creating a manual order and applying a coupon, it produces a Fatal Error.

I get an email from WordPress with the following:

Error Details

An error of type E_ERROR was caused in line 21 of the file /www/mcatselfprep_622/public/wp-content/plugins/woocommerce-role-by-amount-spent/classes/com/WCRA_Order.php. Error message: Uncaught Error: Call to a member function date() on null in /www/mcatselfprep_622/public/wp-content/plugins/woocommerce-role-by-amount-spent/classes/com/WCRA_Order.php:21 Stack trace: #0 /www/mcatselfprep_622/public/wp-content/plugins/woocommerce-role-by-amount-spent/classes/com/WCRA_Customer.php(177): WCRA_Order::get_date_created(Object(Automattic\WooCommerce\Admin\Overrides\Order)) #1 /www/mcatselfprep_622/public/wp-content/plugins/woocommerce-role-by-amount-spent/classes/com/WCRA_Order.php(31): WCRA_Customer->set_role_according_to_rules(Array, Object(Automattic\WooCommerce\Admin\Overrides\Order)) #2 /www/mcatselfprep_622/public/wp-content/plugins/woocommerce-role-by-amount-spent/classes/com/WCRA_Order.php(40): WCRA_Order->check_a_role_has_to_be_assigned_to_customer_after_order_status_change(79885) #3 /www/mcatselfprep_622/public/wp-includes/class-wp-hook.php(287): WCRA_Order->on_order_save(79885, Object(WP_Post)) #4 /www/mcatselfprep_622/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(’’,

Is there anything I can do to fix this?

I tried disabling other plugins etc. and it only produces when this plugin is active. Woocommerce is updated to 4.2, I’m on 7.8 of Role-o-matic, php 7.3.

Thanks!

Hi,
to ask for support you need to use an account with a valid purchase and support licenses associated with,

Dear Author, Very happy with the purchased plugin, however i do have 1 request. There is the option to send email to customer once he has achieved a new user role. It works very well, but i would like a specified admin(or another user(admin)) to also receive this email. Standard plugins for notification when user role changes dont work when the role-o-matic plugin changes it. Its probably a slight change needed in WCRA_Email.php. but i cant get it right… thanks

works perfect, thank you. I had a solution, but this is better because i can see now to which customer the email has been sent… cheers

yeah, glad to hear that! :)

At last but not least: If you enjoyed my efforts to assist you and/or my plugin please consider leaving the 5 stars, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases. You can also leave the rating through the plugin description page: https://www.dropbox.com/s/28dae6pnqvbccmm/rating_area.jpg?dl=0).

Have a great day! :)

Hi!

Please remember the rating! It would help me with sales and I would really really appreciate!! :)

Hi. Can the extension do the following:

Give 30% off for first product

Allow 50% for a second product.

And the third product allow for free.

I’m sorry the plugin hasn’t such a feature.

I have purchased the plugin a while ago and all worked fine for along time. However, I have tried to create a new role lately via the Products Configurator, but for some reason the “Products Configurator” and “Products categories” dropdown menu does not present any of my published products. I am not sure it this is a support issue or simply I forgot to set something on the product so it would be visible.

Unfortunately, without any further clue, it is quite hard to determine the cause. It also strange that it “suddenly” stopped working. There must be a cause.

Most likely it is due to a 3rd party plugin interference. Try disabling all the other plugins to see if you still experience the issue. If not, enable one by one until you find the interfering one. Try also giving a look to the browser error console to see if any error is reported in there.

Make also sure you are running the latest 7.9 plugin version.

Thank you very much! the issue was resolved and the problem was caused by 3rd party plugin interference

Glad to hear that :)

At last but not least: If you enjoyed my efforts to assist you and/or my plugin please consider leaving the 5 stars, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases. You can also leave the rating through the plugin description page: https://www.dropbox.com/s/28dae6pnqvbccmm/rating_area.jpg?dl=0).

Have a great day! :)

Hey, i get an error after clicking on the plugin in my dashbord: woocommerce-role-by-amount-spent kann nicht geladen werden.

Hi,
I’m sorry, but I do not know any word of german :) Could you translate that text?

What do you mean that you are getting that error after clicking on the plugin? On its menus you mean? Or during the installation process?

If you are unable to install, redownload it from codecanyon. Once done, unzip it and be sure to install the file named woocommerce-role-by-amount-spent.zip

If you are not able to access the plugin menu, please try disabling the other 3rd party plugins. It may be that some of them are interfering.

Hi, I tried to install the plugin and I get this message:The archive could not be installed. No valid extension found. Extension installation failed. How can I do? thanks

Hi,
it seems you are installing the package that contains both the plugin and the documentation.

Unzip it, and you will find a file called woocommerce-role-by-amount-spent.zip. That’s the one that you have to install! :)

Thanks for your earlier reply.

You mentioned to create a rule: a dynamic range (For example from the current day to the current day + one year)

It seems to be a solution to my question, but I do not find where to do the settings as above.

You’re welcome :)

Please however, do not open different thread regarding the same matter, just reply to the already existing one. Otherwise it is hard to keep track of your ticket :)

You find the Dynamic range among the options in the amount-rule configurator: https://www.dropbox.com/s/c8d3g47old1evqd/wcra_conf.png?dl=0

Noted. I will check about Dynamic range. Thanks

You’re welcome :)

At last but not least: If you enjoyed my efforts to assist you and/or my plugin please consider leaving the 5 stars, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate to your purchases. You can also leave the rating in the through the plugin description page: https://www.dropbox.com/s/28dae6pnqvbccmm/rating_area.jpg?dl=0).

Have a great day!

I got a new Role A today (2020/2/26). The next Role B is on the condition that total spent should reach $1000 within a year after Role A (2021/2/26). In this case, how should I do the settings in the Role-O-Magic?

The Dynamic period seems to be set for the past, not for the future. Thanks.

Hi,
You cannot set any rule that starts after a specific role has been assigned.

You can create a rule that can only take into consideration the amount spent in a fixed time period (For example from 2020/2/26 to 2021/2/26) or a dynamic range (For example from the current day to the current day + one year)

Fatal error: Uncaught Error: Call to a member function getTimestamp() on boolean in /web/htdocs/www.laletteraperduta.it/home/wp-content/plugins/woocommerce-role-by-amount-spent/classes/com/WCRA_Cron.php:32 Stack trace: #0 /web/htdocs/www.laletteraperduta.it/home/wp-includes/class-wp-hook.php(286): wrca_scheduled_role_assignment_computation_activation(’’) #1 /web/htdocs/www.laletteraperduta.it/home/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #2 /web/htdocs/www.laletteraperduta.it/home/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #3 /web/htdocs/www.laletteraperduta.it/home/wp-settings.php(526): do_action(‘wp_loaded’) #4 /web/htdocs/www.laletteraperduta.it/home/wp-config.php(88): require_once(’/web/htdocs/www…’) #5 /web/htdocs/www.laletteraperduta.it/home/wp-load.php(37): require_once(’/web/htdocs/www…’) #6 /web/htdocs/www.laletteraperduta.it/home/wp-blog-header.php(13): require_once(’/web/htdocs/www…’) #7 /web/htdocs/www.laletteraperduta.it/home/index.php(17): require(’/web/htdocs in /web/htdocs/www.laletteraperduta.it/home/wp-content/plugins/woocommerce-role-by-amount-spent/classes/com/WCRA_Cron.php on line 32

How can I resolve? thanks

Thank you.

It seems that for some reasons, in your installation there are some issue related to the timezone retrieval function. I’ve implemented an improvement that may prevent this kind of issue.

Please update to the latest 7.9 version and let me know. If not, I need to log into your system in order to perform further tests. Thank you.

Ok but I can’t see upgrade avalaible in plugins page

ou can manually download the new version via CodeCanyon or receive as an automatic update by installing and configuring the Envato updater plugin: https://goo.gl/pkJS33 (here the guide that explains how to configure: https://envato.com/market-plugin/ ). To manually update just deactivate and delete the old plugin version and then install the new one. Don’t worry you won’t lose any data :)

I have both WooCommerce Role-O-Matic and WooCommerce Pricing and Discounts installed on my site. One of these plugins is seriously impacting the performance on my site as found by my developer: https://imgur.com/LonPef7 Do you know which of the two plugins is causing the slowdown? Is there a way to fix this so I can continue using these plugins? Otherwise, I’ll need to switch to other plugins. Thank you for your help!

I’m sorry, but unfortuantely I have no clue which in your particular configuration may be impacting more than the others.

Note that both plugins, in order in order to perform their tasks, have to perform several computations and unforutantely that doesn’t come at zero cost. Those computations may require, according the dataset size, an adequate server hardware in order to be properly executed in reasonable times.

Hi. i was wondering if I could pay you to fix this problem we have with the crypto orders not being recognized by Role-O-Matic?

Hi. This plugin allows you to create rule based on the subtotal of products in the cart? For example, if you reach $ 200 in the cart, the price of the items will be the wholesale price. I am using this pugin “Price based on User Role for WooCommerce”.

I’m really sorry, the plugin hasn’t such a feature :(

Do you have any other plugin with this feature?

I’m sorry, not :(

We have a WooCommerce website with 27,000 customers. Role-O-Matic has always worked great for us.

Recently, we discovered that all of our customers who were paying with crypto using CoinBase (https://wordpress.org/plugins/coinbase-commerce/) have not been getting the rules applied to them for the orders made with crypto. We use the option to display the customer’s total amount spent in their account dashboards, and the crypto amounts in cash are not added to these overall totals. When searching for all sales made by a customer, all their orders show up in dollars (USD), even the sales paid for with crypto. But for some reason, they do not show in the customer’s overall total in their account dashboards.

We have Role-O-Matic setup to move customers to new roles after they spend so much. Whenever a customer pays with crypto, Role-O-Matic does not recognize the payment amount. When the customer checks out, they see their total in USD dollars. And then they choose how to pay. So the checkout totals are all in USD dollars and they should be getting picked up by Role-O-Matic somewhere. Because we see the totals in USD dollars, not in the crypto they used.

There is something missing for crypto payments and it has created a dilemma amongst all out customers who pay with crypto and they are getting really upset (complaining about it in forums and everywhere else) and they think we are doing something malicious to keep them from moving up roles and ranks to save more money.

Role-O-Matic is treating all sales made with CoinBase as if they don’t even exist and the order amounts are not being included in the customer’s total and therefore not being used when recalculating totals for role changes.

The CoinBase plugin hasn’t been updated in a while, but that has nothing to do with it. I have gone through the sales and it has been doing this ever since we added Role-O-Matic. It was like this even when CoinBase was up to date.

I contacted CoinBase and they said that I would have to contact you for help because it is not a problem with their plugin.

I purchased another 6 months of support from you and then got side-tracked. But now this problem has gotten to a point where we are losing business and we need it fixed. Please.

It seems that that 3rd party plugin is altering the normal WooCommerce workflow.

The plugin has been designed to work with standard WooCommerce installations that by default uses just one currency. The plugin you are using, however, seems to be altering that aspect.

The plugin computes new roles according to the order total value and the computation is performed when the user lands in the “thank you page”.

Make sure then that the total order value (independently from the currency you are using) matches the one set via the configured amount-role, that it is properly stored in the “order_total” metadata (so it is not altered by the 3rd party plugin) and the user properly lands into the thank you page after an order is placed in order to avoid malfunctioning caused by an altered WooCommerce workflow usage.

Can I pay you to come in, find and fix the problem?

I’m really sorry but the plugin is not designed to work on altered WooCommerce installations that customize the currency management. It would require to customize the plugin but unfortunately, I do not offer that kind of service.

Hello. I have a pre sale question. Can I assign a new role to a customer who has six months renewal of subscription? The user is a customer at first subscription and he will be a premium user after six months later of six renewals.

I’m sorry the plugin hasn’t such a feature :(

Hello,

Will this plugin perform the following.

1. If a user purchased a monthly re-occurring subscription, it will assign/add an additional role to there user account? Then, when they cancel their subscription, it will remove only that same role it assigned, and not remove any others?

Thank you

David

Hello David,
I’m sorry, but the plugin hasn’t any feature to automatically remove roles according to 3rd party subscription plugins actions.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey