I have just updated the plugin to the latest version and now my shopping cart is throwing an error message.
Missing argument 3 for WOO_SL_front::woocommerce_cart_item_quantity()
How do I resolve this bug?
What version of WooCommerce you use? Can you make sure it’s the latest?
The fix: https://support.yithemes.com/hc/en-us/articles/232013647-Composite-Products-error-on-WooCommerce-Cart-page
we have bought your plugin 5 months before and we updated your plugin. now on my account page when we click on License manager no license manager is shown just my account page is showing. Can u please tell us what we can do. Our customers are pissed that they can’t generate keys,
we are using wooco9mmerce 3.0.1 and latest plugin that you have still not getting the page
Can you go to WooCommerce > Settings > Accounts > check the Software License is set to “view-license” then click Save changes.
yes now worked i changed to view-license thanks
after installing the plugin I’ve get a warning message before I proceed to checkout.
The message are below:
Warning: Missing argument 3 for WOO_SL_front::woocommerce_cart_item_quantity(), called in /homepages/xxx/htdocs/wp-includes/class-wp-hook.php on line 298 and defined in /homepages/xxx/htdocs/wp-content/plugins/woocommerce-software-license/include/class.sl.front.php on line 470
What should I do?
Thanks in advance
I think yes
should be the latest versions …
Is there anywhere in your code a line when you de-register or alter in any way the ‘woocommerce_cart_item_quantity’ hook ?
If can’t figure out, please get in touch with us at www.nsp-code.com to help further.
Is it possible to have on a same product page different “licenses” choices ? such as here on envato, where for a same product one can chose between regular license, extended license etc.
Second question : is it compatible with WPML ?
Yes you can define as many licence types as need through groups functionality.
The plugin has not been tested for WPML but it should work fine.
Wow, thanks for the fast reply
Another question : is it possible to do the following thing :
I create a product and assign 3 types of licenses :
regular = regular license and “infinite” quantity avaiable
extended = extended license allowing for differrent kind of use and “inifnite” quantity avaiable
exclusive = an exclusive license allowing ONE user and only him to buy this license if avaiable (so quantity = 1)
And the part where it becomes tricky (especially through the payment process and if there is a delay) :
- As soon as someone buys at least one (so the first) regular or extended license the “exclusive” license automatically becomes unavaiable/impossible to buy
if (and only if) no one already bought a regular or extended license, exclusive license is stil lavaiable but as soon as someone buy the exclusive license now regular + extened license become unvaiable/impossible to buy (out of stock)
Some kind of conditional buying between license you know ?
Yes you can assign multiple licence types for simple products.
Sorry but this is not available. This could be achieved through quantity for product being sold.. however you need to control individually for each licence group.
I suppose you can achieve that through a custom code using filters.
I just purchased and installed the plugin. Something weird is happening when I start typing in the description field, it jumps me down to the bottom of the screen and it looks like there’s another description field down there but most of it is off the screen to the left. The layout of the field from Description down to Other Notes seem to be messed up.
Hopefully you know what’s going on here a have a quick fix. Please advise.
Thanks in Advance.
Apparently the styles are not applying. Can you try to clear your browser cache?
Cleared all the browsing cache, still the same.
Can you get in touch with us at www.nsp-code.com
I submitted a message via the contact page on nsp-code.com. Can you verify you received it?
Sorry but i never received any message from you. Can you try again? We get messages all the time, so it must be something not right.
I just resent via the contact page. Please let me know you received it, really hoping we can get this resolved today.
So weird.. i receive all message but your one.
Please just contact me at electronice_delphi @ yahoo.com Replace the spaces within email address.
did you get it?
No i didn’t received anything.
Just send me here your e-mail and i’ll get in touch. Or click my username and use the contact form on the right.
bbubser @ comast.net
brian @ axysmedia.com
I still haven’t received an email.
I send message to both of your e-mails.
Thank you. I just replied.
How do I get the expiration date from the API so that I do a days left to expiration? Also, Is there a way to set the license start date to when it is first activated and not when it was purchased?
At the moment such details are not available through API, but through internal client account.
Yes, this can be done through a custom code, here’s a solution:
1) add a filter on ‘woocommerce_order_status_completed’ with late trigger e.g. 999 and switch back to inactive the ‘_woo_sl_licensing_status’ order meta field. You may want to adjust the ‘_woo_sl_licensing_expire_at’ field too, this contain the expiration date. However this is irrelevant since the licence status is not active.
2) Use the WOOSL/API_call/arguments filter which trigger on API call. Then check for action ‘activate’ and a specific licence key, or for all (depends on what you need). Then if the call data is valid, change the ‘_woo_sl_licensing_status’ to active and ‘_woo_sl_licensing_expire_at’ to date is required to expire.
Remember the API filter trigger only if not using the cache module.
Yes this plugin is what you looking for. It will require additional code for your “template product” to check with licence key activation, but i can provide you with sample code on how to achieve. Or we can help you with that.
You also need to install WooCommerce which currently does not appear install don your site.
hey there, can you send me an example autoupdate code for a wordpress plugin?
Please get in touch with me at www.nsp-code.com and i’ll send the code.
Hello, Your changelog says Version 1.3.5 the download file says 1.3.4 ? is this a mistake?
Ps: Cant update plugins via API trows page 500 error.
Error1:Problem here: $is_download_permitted = ($order_data->get_status() 'completed' || ( get_option( 'woocommerce_downloads_grant_access_after_payment' ) ‘yes’ && $order_data->get_status() == ‘processing’) ) ? TRUE : FALSE; on your class.sl.api
Also license information doesn’t showup on the order with the latets WC 3.0.2/3
After I fix Error 1, I keep getting “Update Failed: Download failed. Forbidden”
I’ve re-submitted the version 1.3.5 not sure why it does not show up for you. Might take few days until approve.
1) Why this code could be a problem? Can you send the exact error message you see on your logs?
2) Can you check with the settings if the licence show after payment completed or after checkout? See WooCommerce > Settings > Products > Licence Products
3) What exactly you trying here?
I will contact you via email?
I got your message, we can take it further from there.
Hi, Waiting on your reply on the email and ZIP of current version.. thanks.
can you upload your own licence keys per product?
is it compatible with the new updated version of woocommerce?
Yes, you can upload your own licence keys.
The plugin is compatible with latest WooCommerce plugin version.
I just bought the latest woocommerce Software License plugin, I have a woocommerce 3.0.3 and WP 4.7.3 and i check in WooCommerce > Settings > Accounts > Software License was set to “view-license” then i click Save changes but no checkbox Licence on the adding new product page? Can you help me !
Can you make sure you trigger the Licence checkbox on product edit page, see this article http://www.nsp-code.com/woocommerce-software-license-documentation/create-a-licensed-product/
If you don’t see that, please make sure the plugin is actually active.
The plugin is active !!!! Becoz in WooCommerce > Settings > Accounts > Software License was set to “view-license” !!! But no CheckBox… why ??? I sent you also an email email@example.com !!!
I mean no tab Licence is append to the left menu ! thx for you help
This issue is being fixed within latest plugin code 1.3.6
I have purchase the product and set up this plugin in my website for virtual product. When any of client purchase the product from my website it does not display its license status on his account. It shows only item name and download button. How the client know about his license status ?
This should work fine, at Orders there should be a new button Licence Manage. You don’t see that? If no, can you make sure the product actually use Licensing (make sure the Licence checkbox, on top of Product Data area is checked ) http://www.nsp-code.com/woocommerce-software-license-documentation/create-a-licensed-product/
The problem is solved after updating woocommerce.
Thank you for your time
I’ve just noticed the latest changelog says 1.3.6 with a fix for missing License option/tab when adding product. But downloading this item is still giving me the 1.3.5 version. Any ETA on updating the download? Thanks
The update is still in pending queue, probably will be available in the next 24 hours.
Ah ok, thank you for clarification. I’ll work on updating some other things in the meantime.
Hate to be barer of bad news, but your latest update, after I upgrade my software, all clients lost the download permissions, no product is available anymore for download on the order.
Also after I manually add it the autoupdate is not working. showing no updates.
Regarding the autoupdate,
Is not working for me with me since WC 3+
line 692 class.sl.api.php
$is_download_permitted = ($order_data->get_status() == 'completed' || ( get_option( 'woocommerce_downloads_grant_access_after_payment' ) == 'yes' && $order_data->get_status() == 'processing') ) ? TRUE : FALSE;
$order_data->get_status() returns nothing.
Have to fallback to object $order_data->post_status == ‘wc-completed’
Thanks for your message, this has been fixed in Version: 220.127.116.11 currently under review.
The file class.sl.api.php has a couple of errors that stop the update check from working.
Line 717: $order_data = get_post($licence_key_data->order_id);;
Should be: $order_data = get_post( $licence_key_data->order_id );
Line 737: $is_download_permitted = ($order_data->get_status() 'completed' || ( get_option( 'woocommerce_downloads_grant_access_after_payment' ) ‘yes’ && $order_data->get_status() 'processing') ) ? TRUE : FALSE;
Should be: $is_download_permitted = ( $order_data->post_status ‘wc-completed’ || ( get_option( ‘woocommerce_downloads_grant_access_after_payment’ ) 'yes' && $order_data->post_status ‘wc-processing’ ) ) ? TRUE : FALSE;
Great to hear that.
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 $17
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