Pablo

Forum Replies Created

Viewing 15 posts - 271 through 285 (of 294 total)
  • Author
    Posts
  • in reply to: Can I set a different date range for different products? #100770
    Pablo
    Moderator
    Plugin Support

    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 );
    in reply to: How can I limit memberships using formula? #100785
    Pablo
    Moderator
    Plugin Support

    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=""]
    in reply to: How can I limit memberships using formula? #100783
    Pablo
    Moderator
    Plugin Support

    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]

    in reply to: How can I limit memberships using formula? #100779
    Pablo
    Moderator
    Plugin Support

    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

    in reply to: Why is the plugin not sending email verification anymore? #101418
    Pablo
    Moderator
    Plugin Support

    Hi 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
    in reply to: Can I set a different date range for different products? #100768
    Pablo
    Moderator
    Plugin Support

    Hi,

    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 😉

    in reply to: Why is the plugin not sending email verification anymore? #101416
    Pablo
    Moderator
    Plugin Support

    Please, 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

    Pablo
    Moderator
    Plugin Support

    Hi 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.

    Pablo
    Moderator
    Plugin Support

    Hi 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

    in reply to: How do I translate the texts in the plugin? #101401
    Pablo
    Moderator
    Plugin Support

    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 😉

    in reply to: Why did the plugin stop working? #89817
    Pablo
    Moderator
    Plugin Support

    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 😉

    in reply to: Why did the plugin stop working? #89815
    Pablo
    Moderator
    Plugin Support

    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/

    in reply to: Why did the plugin stop working? #89813
    Pablo
    Moderator
    Plugin Support

    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]

    in reply to: Why does it not display properly on mobile? #88422
    Pablo
    Moderator
    Plugin Support

    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 😉

    in reply to: Why the costs from my products have been removed? #89820
    Pablo
    Moderator
    Plugin Support

    Let me know if we can take a look at your problem.
    If that’s possible, please send a message to [email protected]

Viewing 15 posts - 271 through 285 (of 294 total)