markhf
Forum Replies Created
-
Forum: Plugins
In reply to: [Memberships for WooCommerce] assign roleHi @wpbetsy
The code snippet can be added to last line of the functions.php just before the tag ” ?> ”
You can see the functions.php file in the root folder of your active theme ( in child theme if any child theme )
By adding the code snippet, each member will be added to the custom role you defined in the code snippet.
Forum: Plugins
In reply to: [Subscriptions for WooCommerce] Customer charged twiceThere is option in Pro version to apply the coupon only for the initial payment. If the coupon is manually withdrawn after the initial payment, it will not apply for the renewal. Please leave a review if plugin/support was helpful.
Forum: Plugins
In reply to: [Memberships for WooCommerce] assign roleHi @wpbetsy
Please contact us here in our support page to help you fix the code snippet in your site.
Forum: Plugins
In reply to: [Memberships for WooCommerce] limited page pop upHi @wpbetsy
We will check the possibilities of including this as a plugin option. For the time being, you can use the above code snippet.
Forum: Plugins
In reply to: [Subscriptions for WooCommerce] Change the group of user after subscriptionHello Eric ( @ericstz ),
Please add below code snippet in your active theme functions.php
add_filter('hf_subscription_updated_users_role', 'assign_role_after_subscription', 10, 3); function assign_role_after_subscription($new_role, $user, $role_old) { $role = 'mycustomrole'; // string $role = Role name $user->add_role( $role ); }Hi @uiraricciardi,
With the free version when a coupon is used, it will be applied to both the initial and the recurring payments.
With the premium version of the plugin you can apply the coupon only to the initial payment.
Forum: Plugins
In reply to: [WebToffee WP Backup and Migration] Uploading the back up files from PCHi @amir19
Please leave us a review if plugin/support was helpful.
Forum: Plugins
In reply to: [Subscriptions for WooCommerce] Woocommerce SubscriptionHi @nidhidave,
The issue has been fixed in the latest version of the plugin. The pending cancellation will change to cancelled when the pre-paid term ends. Please check and let us know if you have any further issues.
This functionality is also available and working in the paid version as well.
Forum: Plugins
In reply to: [Memberships for WooCommerce] assign roleHello @wpbetsy
Please try below code snippet with necessary changes.
add_filter('hf_memberships_new_membership_data', 'assign_role_after_membership'); function assign_role_after_membership($new_membership_data, $user_id_product_id_order_id) { $theUser = new WP_User($user_id_product_id_order_id['user_id']); $role = 'mycustomrole'; // string $role = Role name $theUser->add_role($role); return $new_membership_data; }Forum: Plugins
In reply to: [Memberships for WooCommerce] limited page pop upHello @wpbetsy
You can use below filter for that.
add_filter('wt_user_allowed_posts', 'redirect_to_custom_page'); function redirect_to_custom_page($posts){ if(empty($posts)){ // wp_redirect(wp_login_url()); // redirect to login // $posts = array(200); // Change the 200 to your cutom page post ID } return $posts; }Please leave a review if plugin/support was helpful
Forum: Plugins
In reply to: [WebToffee WP Backup and Migration] Uploading the back up files from PCHave you uploaded file in the same name and FTP tool asked for rewrite existing?
Could you please share more details here in our support. So we can check this in your site.Forum: Plugins
In reply to: [WebToffee WP Backup and Migration] Uploading the back up files from PCHi @amir19
Have you replaced the file through FTP and it’s listing in media library.?
Forum: Plugins
In reply to: [Subscriptions for WooCommerce] Pending Cancellation?Hi @ajiaim
Please update the plugin to the latest version ( 1.3.1 ). We have fixed this and updated in the latest version.
Forum: Plugins
In reply to: [WebToffee WP Backup and Migration] Uploading the back up files from PC1.Upload a smaller zip file into media library.
2.By clicking on that file, you can get the Path of that file.
3.Upload the backup file with same name and replace in the above location.
4.Browse the file from media library.Please check and let us know how it goes.