Forum Replies Created
-
AuthorPosts
-
November 9, 2021 at 1:43 am in reply to: Can I set a different date range for different products? #100770
Hi,
The product name was just a comment. The number I used after the word “case” was actually the product ID. Product A, B and C with IDs 1, 2 and 3.
Please check this other code for your other questions:
add_filter( 'alg_wc_mppu_date_to_check', function ( $date_to_check, $date_range, $current_time, $product_or_term_id, $current_user_id, $is_product ) { if ( ! $is_product ) { return $date_to_check; } if ( in_array( (int) $product_or_term_id, array( 1, 2, 3 ) ) ) { // Product IDs 1, 2 and 3 - 15 days $date_to_check = ( $current_time - ( DAY_IN_SECONDS * 15 ) ); } elseif ( in_array( (int) $product_or_term_id, array( 4, 5, 6 ) ) ) { // Product IDs 4, 5 and 6 - 30 days $date_to_check = ( $current_time - MONTH_IN_SECONDS ); } return $date_to_check; }, 10, 6 );
Hi,
I’m just writing here to possibly help other users. The issue was a typo with the shortcode attribute:
[alg_wc_mppu memberhsip_plan=""]
instead of the correct one:
[alg_wc_mppu membership_plan=""]
Yes, this is the membership plugin compatible with our plugin.
Would it be possible for you to create/share an admin account to your server (WP and preferably FTP), so I could login and check what’s going on? If that’s the case, please send a message to [email protected]
Hi Ugene,
If you’re using the
product_id
attribute for the shortcode, please make sure to enable the “Limits > Per product” option.Let me know if it helps
November 2, 2021 at 8:57 pm in reply to: Why is the plugin not sending email verification anymore? #101418Hi Ralph,
I couldn’t find the “customer-redirect” page that you said you’ve created.
Please access that page and copy its full URL and paste it in the “Prevent login after register > Custom redirect URL” option.Example:
http://dev.mini-lease.dk.linux299.unoeuro-server.com/custom-redirect
November 2, 2021 at 12:00 am in reply to: Can I set a different date range for different products? #100768Hi,
Although it’s not possible to set a date range per product using the admin settings or by using shortcodes, I believe it would be possible via code using the
alg_wc_mppu_date_to_check
filter.If you only need to set limits for these specific products, you can simply enable “Limits > Per Product” option and then access the admin product page from A, B and C, setting the “Limit per user” option as 1.
In your (child) theme’s
functions.php
file you can add this code, considering products A, B and C with ids 1, 2 and 3:add_filter( 'alg_wc_mppu_date_to_check', function ( $date_to_check, $date_range, $current_time, $product_or_term_id, $current_user_id, $is_product ) { if ( ! $is_product ) { return $date_to_check; } switch ( (int) $product_or_term_id ) { case 1: // Product A - Lifetime. $date_to_check = 0; break; case 2: // Product B - Last 7 days. $date_to_check = ( $current_time - WEEK_IN_SECONDS ); break; case 3: // Product C - Last 24 hours. $date_to_check = ( $current_time - DAY_IN_SECONDS ); break; } return $date_to_check; }, 10, 6 );
Let me know if it helps 😉
October 29, 2021 at 9:04 pm in reply to: Why is the plugin not sending email verification anymore? #101416Please, take a look at your WooCommerce logs page and look for the errors. You’ll notice there are errors from your child theme
functions.php
.If you just want to redirect the users after verification, most probably you don’t need to use any custom code in your child theme. You can use our “Redirect on success” option. It seems you had tried it already but you didn’t add a valid URL there. Please just try to use a valid URL and let me know if it helps
October 29, 2021 at 2:57 am in reply to: Do you have hook I can use after the activation link has been clicked? #101407Hi Ralph,
You’re right. I just created a developers tab with a small usage example of the
alg_wc_ev_user_account_activated
action hook. Please take a look at it.October 23, 2021 at 11:15 pm in reply to: Do you have hook I can use after the activation link has been clicked? #101405Hi Ralph. We have a hook that is triggered after the user has clicked on the activation link and the account was verified successfully:
alg_wc_ev_user_account_activated
The first parameter is the user id
Hi Armin,
I just added the General > Verification info > Customization option to
wpml-config.xml
file for you. So now you’ll be able to translate it using Polylang or WPML for example. Please update the plugin to version 2.2.3.When translating the
[alg_wc_ev_verification_status]
shortcode into Danish, you could try something like this:[alg_wc_ev_verification_status verified_status="Verificeret" unverified_status="Ubekræftet"]
Let me know if it helps 😉
Great! I’m also impressed 🙂
In that case, please consider leaving a review if you are enjoying the plugin/support. It would be much appreciated 😉
Hum, so your Pro version is really outdated. Please update it to the latest version (2.4.9)
Make sure you have the WP Factory helper plugin installed so you can install available updates automatically, and enter the key from https://wpfactory.com/my-account/downloads/
Hi Anna,
Please try to update the plugin to the most recent version. Also, try to enable the “Advanced > Force costs update” options and check if you have better results.
Anyway, would it be possible for you to create/share an admin account to your server (WP and preferably FTP), so I could login and check what’s going on?
If that’s the case, please send a message to [email protected]Hi Rob,
Please try these 2 different options:
1) Set a different “position”
2) Wrap the “content” in a div, like:
<div>%amount_left_for_free_shipping% left for free shipping</div>
Let me know if it helps 😉
Let me know if we can take a look at your problem.
If that’s possible, please send a message to [email protected] -
AuthorPosts