Forum Replies Created
-
AuthorPosts
-
November 12, 2021 at 9:57 pm in reply to: Is it possible to add an extra function so that I can use it in the API? #101427
Hi Mohsin,
Sorry for the delay. What extra functions would you need?
Meanwhile, if you simply update the user meta
alg_wc_ev_is_activated
as 1, the user is considered activated by our plugin and won’t receive the verification email. Would it be enough for you?November 10, 2021 at 8:08 pm in reply to: How to display the notice only for zones with free shipping? #88431Hi Joaquin,
Actually we have been thinking about your question and we decided to create a new option for you.
Now you can use the
-1
value on the shipping area you want to hide the amount left text.Please update the plugin to version 2.1.1 and let me know if it works for you
November 9, 2021 at 11:16 pm in reply to: Why does it not display even though the min amount is set? #88428Hi Kelton,
Sorry for the delay.
Probably, you should have simply misunderstood some of our options.The
'min_cart_amount'
present on the code you mentioned is the minimum total cart amount required to display the amount left text.That option was a bit misleading the way it was before and commonly confused with the Manual min amount option. But since version 2.0.8 we now believe that it is on a more appropriate location.
You can find it now at:
– General > Hide the amount left text > By cart amountSo we think that our current code is correct.
Please make sure that you have the most recent version of the plugin and let us know if you think it makes sense.November 9, 2021 at 1:43 am in reply to: Can I set a different date range for different products? #100770Hi,
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/
-
AuthorPosts