Does this plugin work with woocommerce rest api or wordpress rest api. We need to pull the discounts to a mobile app
]]>Hi,
I have a bug when i activate this plugin: 1 cent is missing from the prices of certain products. Example : 154.99€ displayed for 155€.
I think it’s a round issue? But it’s happen not on every product.
If someone can help?
Thanks!
]]>The discount works fine when logged in but, when not logged in, a variable product always shows as £0.00 – pretty sure I am doing everything correctly.
Any ideas?
Thanks
Variable product page
Error log
[error] 811#0: *843 FastCGI sent in stderr: "PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wordpress/wp-content/plugins/woocommerce-role-pricing/core/class-wrp-variations-admin.php on line 162PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wordpress/wp-content/plugins/woocommerce-role-pricing/core/class-wrp-variations-admin.php on line 162PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wordpress/wp-content/plugins/woocommerce-role-pricing/core/class-woorolepricinglight.php on line 110PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wordpress/wp-content/plugins/woocommerce-role-pricing/core/class-wrp-variations-admin.php on line 162PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wordpress/wp-content/plugins/woocommerce-role-pricing/core/class-wrp-variations-admin.php on line 162PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wordpress/wp-content/plugins/woocommerce-role-pricing/core/class-woorolepricinglight.php on line 110PHP message: PHP Warning: A non-numeric value encountered in /var/www/html/wordpress/wp-content/plugins/woocommerce-role-pricing/core/class-woorolepricinglight.php on line 110" while reading response header from upstream
Parameter Description:
Test A
Original Price:1000
Discounted Price:990
Test B
Original Price:1000
Vip Customer:1% off
There is no discount price for TestB products, and the plugin sets a discount of 1%, so the sale tag will not be displayed. How do I get started?
Sale tag Code
add_filter('woocommerce_sale_flash', 'mxp_custom_sale_flash', 10, 3);
function mxp_custom_sale_flash($text, $post, $product) {
global $product;
$percentage = round((($product->regular_price - $product->sale_price) / $product->regular_price) * 100);
return '<span class="onsale">' . $percentage . '% off</span>';
}
]]>
Woocommerce 5.9.0
Woocommerce Role Pricing 3.1
Product variable type
Setting
generally
luxury
Show
generally
luxury
Hello,
I have an error with variable products
Warning: A non-numeric value encountered in /home/clients/bc9526efece92dd7d4fe8b3e4531aa46/web/wp-content/plugins/woocommerce/includes/class-wc-tax.php on line 144
I tried with Twenty one theme (default) and same error.
]]>When this plugin is enabled, BOGO products from the plugin “Advanced Coupons for Woocommerce” that should be discounted are not. Discount amount is shown, but neither the subtotal or total reflects the discount.
I was able to modify the file woocommerce-role-pricing/core/class-woorolepricinglight.php so that it’s method woocommerce_get_price() returns early if the discount is 0%.
I also had to add code to the file advanced-coupons-for-woocommerce-free/Models/BOGO/Frontend.php so that the method _set_matching_cart_item_deals_prices() checks if role pricing exists, and if so, does not apply any discounts. I’ve opened up a separate support ticket with that author.
You can see the appropriate edits here: https://codeshare.io/2jpB03
Best,
-M
Hallo, ich nutze folgende Systeme:
Wordpress: 4.5
Woocommerce: 2.5.5
Woocommerce Bulk Discount: 2.4.1
Woocommerce Role Pricing light: 2.0
Wenn ein Kunde manche Produkte 2* kauft, erh?lt er 10% Rabatt (eingestellt per Bulk Discount).
Ein Stammkunde erh?lt auf jedes Produkt 5% Rabatt (eingestellt per Role Pricing light).
— Das funktioniert soweit —
Wenn ein Stammkunde allerdings ein Produkt 2* kauft wird im Warenkorb sowie in der Kasse die erste Summe korrekt berechnet (mit 15% Rabatt) – die Zwischensumme sowie die Endsumme werden allerdings falsch ausgegeben (mit 5% Rabatt – anstelle von 15% Rabatt).
Kann mir bitte jemand weiterhelfen?
————————-
Hello, I use the following systems:
Wordpress: 4.5
Woocommerce: 2.5.5
Woocommerce Bulk Discount: 2.4.1
Woocommerce Role Pricing light: 2.0
If a customer buys some products 2 *, he gets 10% discount (set by bulk discount).
A regular customer receives a 5% discount on each product (set by Role Pricing light).
– That works so far –
However, if a regular customer buys a product 2 *, the first sum will be calculated correctly in the shopping cart as well as in the cash register (with 15% discount) – the subtotal and the final sum will be spent incorrectly (with 5% discount – instead of 15% discount).
Can anyone help me?
]]>One cent is missing in price almost always
in most products you lose a cent and in others you do not lose a cent when there is no discount in the Rol coustumer
Any solution??
]]>Overall, this is a good simple plugin. One major flaw though is that if you don’t apply a discount to a certain role the prices they see in the cart are always $0.00.
It’s an easy fix fortunately that hopefully the dev will implement soon. The bcmul()
method within woocommerce_get_price()
is called regardless of whether there’s a discount applied or not which results in multiplying the price by zero returning $0.00 every time.
Hello to all.
I have a problem with my site. Store customers can see all product categories, while distributors do not have to see certain product categories. How can I do this plugin? P.S: Not the price but the whole category. Thank you all.
Good evening.
I can not activate my copy of the plugin.
Every time I try, he tells me that it is not possible to connect to the server.
What can it be? Thanks in advance.
I have a problem with the discount. I have set 0.3 for the proffesional role and it was working well but now when you are going to pay the discount appears twice.
i can see this error: The woocommerce-role-pricing / woo-role-pricing-light.php extension has been disabled due to an error: The extension file does not exist.
but the plugin is activated.
could you help me?
Thanks.
]]>Hi, my name is Salvo. I have a problem with your plugin.
The problem is:
When i see the prodoct for the first time, i see the regular price, but if i reflesh the page, i see another price. What can i do for resolve this problem??
Please, help me!!!
Hello,
If a product with variations is added in the cart it shows price 0.00. Using version 3.2.2 and woocommerce 3.1.1
Any updates please?
]]>Hi,
I corrected the bug of the price “0” of version 3.1.3
If someone wants it the new version 3.1.4 :
[ link redacted ]
]]>Hi, I have the Pro version and I am implementing it on my company site at the moment.
Some of the products on the website are not available for purchase online because they are personalized/customized and what the customer wants will affect the price too much, the variations would be massive.
So these products do not have a price assigned to them and as such none appears normally and it can’t be added to basket etc and the customer is instructed to call or email us for a quote.
When I apply the Role Based Pricing though to a category that one of these products is in it sets the price of that product to €0.00 and allows the customer the products to add to basket!!
Obviously this isn’t good, can you help?
]]>Hi,
File: class-woorolepricinglight.php
Row: 187
$children = $product->get_children(true);
Calling get_children with a bool is deprecated.
Please fix in next release, thanks.
Regards,
Bjorn
In catalog prices on variable products are correct but after adding to cart discount dissapear. Simple products are ok.
]]>Hello,
After updating Woocommerce, I see that some price are’nt good : 34.99€ instead of 35€
When I disable the plugin prices are ok.
Any solution ?
Thanks you !
]]>Hey guys,
After updating to Woo 3.0 and Role Pricing 3.1, regular simple products price are all displaying 0.00$.
Any suggestions?
Thanks!
]]>The price is not displayed when the product is only variable on the checkout page as I solved it.
Thank you
Hello,
My theme legenda of etheme provide a Quick View made with ajax. The price is not update for this Quick view display.
This function is call in ajax, call a template which call woocommerce_template_single_price() function.
I seem to be correct way to works with your plugins but it not working.
Do you have a idea ?
]]>Hello,
I have a site using the role-based pricing plugin.
I have created roles which have 20%, 30% and 40%.
These discounts are not applied when someone with the trade discount tries to purchase a product.
]]>Hi, I install the plugin yesterday for test. But when activate the plugin, first, the customer don’t see the product prices and in the cart I don’t know why I see a wrong amount in negative.
Some idea?
]]>Hi,
File: core/class-wrp-variations-admin.php
Row: 219
Please replace with wp_get_currentuserinfo(), i tried the simple switch but it’s not working, i guess because it’s all static?? I see the plugin is being called in the init hook, so not really sure why replacing it doesn’t work.
Also, everything runs allways. Maybe it’s a good idea only to run certain parts when Woo is active?
Now with every page load my debug log is filling up with PHP notices.
Thanks.
]]>Hi,
I really need the pricing to be modified when manually entering an order for a customer on the back-end system. Any news on this?
Thanks,
Mark.
Hello,
Does this plugin allow shipping discount for ‘gold’ member only ?
Example, flat shipping rate of 10$ for any user and my privilege members get free shipping.
It is possible ?
https://www.ads-software.com/plugins/woocommerce-role-pricing/
]]>This plugin is excellent, I created customers, dropship and agent user with different discount / price role and it works, I only wish that in shop or product page will show a strikethrough normal price and different colour for discount price, keep the good work
https://www.ads-software.com/plugins/woocommerce-role-pricing/
]]>