Just installed plugin. Is there a reason that a simple “[ITEM] subtract an amount” discount would be applied to the item price, then applied again to the “total” field for that item in the cart, effectively doubling the discount amount? It’s doing this regardless as to whether it is an amount or a percentage, and regardless of the value for “Which value has to be considered?”. Really annoying, ready to ask for a refund and just pay for the much more pricey WooThemes equivalent.
as you can see in the demo site, configuring the [ITEM] subtract a fixed value from the item original price rule, the plugin properly subtracts the selected amount only once to the item price: https://dl.dropboxusercontent.com/u/188630/support/wctbp_sub.jpg
In this example I’ve configured for the Product 2 an amount of 2S, so its final price with vat at 20% is 1.20$.
Can you try updating the plugin to the latest 7.3 version that has been published today? in case you are still experience the issue, could you share a complete screenshot of the pricing rule you are using? In alternative you can also send me an admin access to me, in this way I can see it by myself. To send a private message: click on my name the use the low-right box.
I’ve found the problem. This issue only happens when the discount is applied to items with a “product add on”. It doesn’t matter if the add-on is free, or has a price, if the add-on is applied, the discount is applied twice. This is the URL of the conflicting plugin: https://woocommerce.com/products/product-add-ons/
Here’s a screenshot. Take a look at the 2nd and 3rd items, see the 2nd item with optional add-on selected gets discounted twice (as does the 1st with a mandatory add-on), whereas the 3rd is correctly discounted once:
the plugin hasn’t any support for that plugin. According to me the product addon assigns same product id to each addon, so the Pricing plugin applies them the pricing rules to each of them.
If you send me a private message (click on my name then use the low-right box) reproting your email, I can send mine where you can send me that plugin. In this way I can see IF it will be possible to add support for that plugin.
Thanks a bunch for your efforts to fix this conflict, the plugin is now working as intended!
Very glad to hear that!!
Have a nice day!
pre-purchase question. I have been trying to find a plugin that with apply a 5% discount for 5 items or more in the cart. And another option of 10% for 10 or more items in the cart. Does this plugin do that? I see many that do bulk discounts for individual products. I need one that is for all products.
yes maybe it could fit your needs. However for 5 items, do you mean “exactly 5 distinct item on cart” or it could be even the same product with cart quantity equal to 5 ?
any product in my shop. If you have more than 5 in the cart then you get 5% off
and same for 10 items get 10% total
ok i purchased and it seems to be working for what I need it to do. But I have one last question (for now):
In my cart the text for the discount just says “1. Discount” Can I change that text?
“5& off 5+ Items”
“10% off 10+ Items”
THANK YOU VERY MUCH. The plugin was worth the money. I spent all day trying to find a free plugin. I just purchased yours and got in done in an hour.
Ah ok, you purchased while I was writing the guide
For now there isn’t any option to customize the text. you have to edit the WCTBP_Cart.php file you find inside the classes\com folder and on line 164 you will find the ‘Discount’ text. Customize as you wish
I have two of your plugins, attach me and pricing, what’s the best way to update?
To update you can simply deactivate and delete the old plugin versions. Then you can upload the new ones. Don’t worry you won’t lose any setting
Thank you, I was worried about losing settings
I’m noticing that the plugin seems to make woo commerce a little buggy particularly on the single product page it doubles options to choose “size (a variation)” and “add to cart”. Can these please be fixed. I only want the native option to show up (the options on the right). http://prntscr.com/f1po2s
it sounds strange. The plugin doesn’t hook to any action that manages the “add to cart” button, so it is strange hear about this kind of issue. It is most likely that your theme has a sort of incompability or it is not properly using the WooCommerce actions to render those buttons.
Which WooCommerce are you running? If you try to disabling the Pricing! plugin, are you still experience the issue? Can you update to the latest 7.4 version that you can download from its official CodeCanyon page? Would be also possible to have a full admin access in order to perform some test to see if it possible to understand which is the cause of the issue? If so send me via private message (click on my name then use the low-right box).
I just want to check that I can achieve the following:
If a customer buys 12 bottles of Wine (category) or more (different products) it applies 10% discount to just the total of those bottles and not anything else in the cart?
Hopefully that makes sense.
even after latest update, still getting this error: product_type was called incorrectly. Product properties should not be accessed directly.
it is quite strange because the plugin never calls that istance variable. Are you sure that is a Pricing! script that is raising that warning? Could you report the exact warning message you are getting with the path of the script that is generating that warning?
When I de-activate the plugin, the debugging errors go away, so unless there is some strange interaction with your plugin and another, I do think it is caused by yours. Here is the error:
product_type was called incorrectly. Product properties should not be accessed directly. Backtrace: require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(’/var/www/mysite.com/wp-config.php’), require_once(‘wp-settings.php’), do_action(‘wp_loaded’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Form_Handler::add_to_cart_action, WC_Form_Handler::add_to_cart_handler_variable, apply_filters(‘woocommerce_add_to_cart_validation’), WP_Hook->apply_filters, WCTBP_Cart->cart_add_to_validation, WCTBP_Product->get_new_price_or_discount_rule, WC_Product->get_type, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.0.)
Type: PHP Notice Line: 4138
Are you sure you are running the latest 7.6 plugin version? From the stack trace you have reported it seems that you are running an old plugin version. Please update the plugin to the latest version by downloading it from its codecanyon page and report me back if you are still experience the issue.
Yes, I am running 7.6
It is very strange. Reading that stack trace it seems that the WCTBP_Product component is directly callig the instace variable $product->product_type. It the latest 3.0.X WooCommerce version it is discourged to do so and then a Warning message is printed (keep in mind that is a Warning not an Error). However If you try to edit the WCTBP_Product.php file that you find inside the classes\com folder and you look for the product_type string, you will see that it is never called. Instead of it it is properly using the $product->get_type() method (read about it in the WooCommerce api: https://docs.woocommerce.com/wc-apidocs/class-WC_Product.html ) .
Have you customized in any way the Pricing! plugin or WooCommerce plugin?
You can also try to search in all the Pricing! plugin for the product_type with a search in files program (like TextPad: https://www.textpad.com/ ) and you will see that that istance variable is never called by my plugin, so you system is missgenerating a warning message. Unfortunately there is nothing to fix in my plugin simply because that istance variabled is never called in any of its scripts.
I have not customized the plugin in any way. I also did the search already that you mention and I agree that every time it seems to be using get_type(). Nevertheless, I have disabled all other plugins except woocommerce and yours and the message remains. But if I disable your plugin, the message goes away. It always happens at the point of adding an item to the cart if that helps.
Unfortunately I cannot fix it because actually it is not generated by my plugin. It seems that the native woocommerce get_type() method defined for WC_Product class in your installation is generating that warning. Try reinstalling latest WooCommerce version to see if it helps.
I understand. Perhaps it is a bug in Woo 3.0.6. I have installed a query monitor that gives me more information if you like, I can send the Call stack and other info along to you.
Yes, send me a private message (click on my name then use the low-right box) reporting your email. I’ll reply with mine where you can send the log. I’ll try to give a look to see if it something can be done.
are you using any caching plugin that may your server running some old files?
I understand that the plugin can help me set pricing rules based on stock quantity available.
I am looking at a scenario where total stock is 60. For stock availability between 51-60, price is 100, stock availability between 31-50, price is 200, stock availability between 1-30, price is 300. If I understand correctly, this is already possible.
Now to the question: When stock availability is 60, instead of showing “60 in stock”, I would like to show only 10 in stock at this price. When stock availability is 59, I would like to show only 9 in stock at this price.
Would that be possible with this plugin?
HI, thank you for the response. I have checked the demo and that works for me perfectly as far as the stock level price change is concerned.
Now to the question:
I have searched online for a code to do what I wish for in therms of stock level message. Here is the link: http://stackoverflow.com/questions/29287003/add-message-to-woocommerce-variation-based-on-stock-quantity
Just check the question and the code mentioned for single product that is working. Will this code also work with this plugin.
Some more info:
I only need to use the plugin for a specific product category where stock quantity, price change based on stock level will be same.
the code you shared should work. From what I read, that snippet of code is not replacing the default stock level message but it injects in the end of product short description text a custom message (that in your case will be related to the stock level). It is not interfering with the plugin code, the plugin is not using that hook for any of its purpose.
So theorically there should be no problems, you can add that custom code in your theme funtions.php or where you wish.
Thank you, hopefully the last question before I buy the plugin:
The link I shared is about custom message when stock is greater than 1. Would you be able to guide me on how to change the code for multiple stock level.
No, unfortunately I’m not able to report you on the fly how it had to be changed for your purpose. Plugin is not designed to expose through APIs the stock levels for rules that applies to a particular product.
For your purpose you have to manually hard code the configured stock levels according the displayed products.
I would like to set a discount based on a “product tag” instead of a category. Is this possible?
No, unfortunately the plugin has any feature to use tags. You can only use categories.
Is there a way to convert my tags to categories in Woocommerce?
I don’t know, sorry
I found it. If someone else is looking for the solution: I changed the taxonomy from product_tag to product_cat in the term_taxonomy table. I did this with PHPmyadmin.
Thank you for sharing
This plugin has some bug in it currently
Wordpress Core: 4.7.5
WooCommerce: Version 3.0.7
WooCommerce Pricing!: Version 7.6
Attempting to add a new page reports:
“Are you sure you want to do this?\nPlease try again.” (Title: Wordpress Failure)
This indicates a nonce error.
Attempting to enable plugin: x-under-construction
Enabling x-under-construction works on the plugin gui (backend of wordpress site)
Disabling this plugin resolves all issues.
The error sounds very srange. However I’ve released a new version that should prevent that. If you send me a private message (click on my name then use the low-right box) reporting your email, I can send you the new version.
In alternative you have to wait 4 – 5 days for CodeCanyon to approve the new version. Let me know
This issue is now resolved!
To report: the nonce error (Are you sure you want to do this?) was not related to this plugin.
In the updated version:
There are no errors currently with enabling / disabling other plugins while this plugin is active within wp-cli.
+1 for quick email support as well.
Hi, i want to show a promotional price, only for new user (guest user) automaticly this user buy (become a customer) the price showed for next purchase will be the regular price.
Can your plugin archive this???
no unfortunately the plugin hasn’t that feature.
any chance what it will be work with wp 3.9x and wc 2.0x?
No, any chance. Sorry.
Use, by you or one client, in a single end product which end users are not charged for. The total price includes the item price and a buyer fee.
Use, by you or one client, in a single end product which end users can be charged for. The total price includes the item price and a buyer fee.
View license details
Get it now and save up to $7.50
Unlimited graphic downloads & digital courses. Only $29/month
22,000+ templates & 1,000+ courses
Learn almost anything with
Envato Tuts+ for free
9000 free tutorials, 3000 paid courses
Designers matched perfectly to
you on Envato Studio
2000 artists ready to undertake your work