mediaticus
Forum Replies Created
-
Forum: Plugins
In reply to: [Subaccounts for WooCommerce] Nonce could not be verifiedHi @thuisfeestje,
Thank you for reaching out!
The reported issue has been addressed on version 1.6.2. If you still have any issues, feel free to come back and let us know.
We haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved.
If you have any other questions about the plugin, please start a new thread.
Forum: Plugins
In reply to: [Subaccounts for WooCommerce] Role inheritance?We haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved.
If you have any other questions about the plugin, please start a new thread.
Hi @jared1eob,
We responded to your email on October 23, could you please confirm that you received our email?
Forum: Plugins
In reply to: [Subaccounts for WooCommerce] Role inheritance?Hi @w4yp01nt,
Could you please try the snippet of code below and let us know if it works as expected?
// Make subaccounts created on frontend inherit user roles from the parent account.
add_action( 'sfwc_frontend_after_add_subaccount_validation', 'm3di4ticus_inherit_parent_roles_on_frontend_subaccount_creation', 10, 2);
function m3di4ticus_inherit_parent_roles_on_frontend_subaccount_creation( $parent_user_id, $user_id ) {
if ( is_user_logged_in() ) {
// Get parent account data.
$parent = get_userdata( $parent_user_id );
// Get subaccount data.
$subaccount = get_userdata( $user_id );
// Get parent account role(s).
$parent_roles = sfwc_is_user_role_valid( $parent_user_id );
// Set parent's roles.
if( ! empty( $parent_roles ) ) {
foreach( $parent_roles as $parent_role ) {
$subaccount->add_role( $parent_role );
}
}
}
}Important note: The above functionality will soon be included in the plugin. To avoid any conflicts or race conditions, remember to remove the above code from your functions.php file or from any code snippet plugin (you can take a look at our plugin’s changelog to see if the above functionality is present).
Hope this helps.
Forum: Plugins
In reply to: [Subaccounts for WooCommerce] Role inheritance?Hi @w4yp01nt,
Thank you for reaching out!
I had a look at your code, thanks for contributing to the plugin. Your approach seems good, other users may find it useful as well. ??
We are also planning to add a new option in the backend plugin settings page, which will allow the admin to decide whether subaccounts should inherit the manager (parent account) role when a new subaccount is created on the frontend. This could be useful in your case.
Regarding the possibility to enable additional roles, we will soon allow developers to add additional roles among the enabled ones via
add_filter
.If you have any other questions about the plugin, just let us know.
Hi @jared1eob,
Thank you for reaching out!
We would like to better understand the customizations that need to be made. Could you please send us an email explaining in detail the necessary customizations?
You can contact us via: Dashboard → WooCommerce → Subaccounts → Contact Us.
Forum: Plugins
In reply to: [Subaccounts for WooCommerce] Multisite installations…We haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved.
If you have any other questions about the plugin, please start a new thread.
Forum: Plugins
In reply to: [Subaccounts for WooCommerce] Subaccounts for Woo SubscriptionsWe haven’t heard from you in a while so I’m going to go ahead and mark this thread as resolved.
If you have any other questions about the plugin, please start a new thread.
Forum: Plugins
In reply to: [Subaccounts for WooCommerce] Multisite installations…Hi @mpmchugh,
Thank you for reaching out!
Activating the plugin on the entire network is not supported at this time. However you may want to try activating it individually on all the sites you need to use it on.
Please note that the plugin has not been tested on multisite installations, so we recommend testing it thoroughly on a staging environment first.
Feel free to report any issues you may encounter.
Hope this helps.
Forum: Plugins
In reply to: [Subaccounts for WooCommerce] Subaccounts for Woo SubscriptionsHi @jared1eob
Thank you for reaching out.
It should work, however feel free to test the plugin and report any issues you may encounter.
Hi @wynnesps
Thanks for your update on this.
I recommend purchasing the premium version from the production site and downloading/installing it later on the development site. In this way the license will be immediately associated with the production site.
I’m going to go ahead and mark this thread as resolved for now. If you have any other questions about the plugin, please start a new thread.
Hi @wynnesps
Thank you for reaching out.
Yes, you can transfer your license from one site to another one. Also, please consider that you can use the same license on two sites (development and production site) at the same time, as long as the development/staging site has specific TLDs or subdomains.
Below you can find the list of TLDs and subdomains that are considered as development sites.
TLDs that are considered as dev or staging:
- *.dev
- *.dev.cc (DesktopServer)
- *.test
- *.local
- *.staging
- *.example
- *.invalid
- *.myftpupload.com (GoDaddy)
- *.cloudwaysapps.com (Cloudways)
- *.wpsandbox.pro (WPSandbox)
- *.ngrok.io (tunneling)
- *.mystagingwebsite.com (Pressable)
- *.tempurl.host (WPMU DEV)
- *.wpmudev.host (WPMU DEV)
- *.websitepro-staging.com (Vendasta)
- *.websitepro.hosting (Vendasta)
- *.instawp.xyz (InstaWP)
Subdomains that are considered as dev or staging:
- local.*
- dev.*
- test.*
- stage.*
- staging.*
- stagingN.* (SiteGround; N is an unsigned int)
- *.wpengine.com (WP Engine)
- dev-*.pantheonsite.io (Pantheon)
- test-*.pantheonsite.io (Pantheon)
- staging-*.kinsta.com (Kinsta)
- staging-*.kinsta.cloud (Kinsta)
Additionally, if your domain is localhost (with any port), it will also be treated as a localhost domain.
Please let us know if you have any additional questions or concerns about the plugin.
The reported issue will be fixed in the next release of the plugin. In the meantime, for those experiencing the same issue, we recommend editing the checkout page and replacing the checkout block with the checkout shortcode.
Thank you for the update.
Unfortunately we are not able to reproduce the reported issue; could you please contact us via: Dashboard → WooCommerce → Subaccounts → Contact Us and provide both admin and FTP access to your staging site?