Forum Replies Created
-
AuthorPosts
-
March 15, 2022 at 7:11 pm in reply to: How can I make your plugin work with the WooCommerce Memberships plugin? #100900
Oh, and the ID is just the category or the tag ID. When you are at the admin tag or category page, you’ll be able to see the ID by looking at the URL and paying attention to the
&tag_ID
parameter. Example of the admin tag page URL having an ID of 77:term.php?taxonomy=product_tag&tag_ID=77
March 15, 2022 at 7:04 pm in reply to: How can I make your plugin work with the WooCommerce Memberships plugin? #100899Hi Tahir,
You will only need the tags if you want to create a limit for different products. For example, let’s say you want users to buy 10 products maximum. With the tags option, they will be able to add 10 different products to cart from a specific tag.
Now, if you want to create a limit individually for each product you don’t need the tag option. In that case, they will be able to add each product to cart 10 times.
The compatibility with Memberships works by allowing to create specific limits for each membership plan, like I was suggesting you on your first question:
[alg_wc_mppu limit="10" term_id="21" membership_plan="quarterly"]
Hi Ida,
I found out the Paypal fee is being saved with the meta
_ppcp_paypal_fees
as you pointed out but not as a simple string. It is being saved in the array form.So I improved the Orders > Extra Costs: From Meta option for you. Previously it was only possible to access an order meta if there was a string returning from it. Now it’s possible to access a serialized array too using dots.
Then you can access the Paypal fee using this:
_ppcp_paypal_fees.paypal_fee.value
I’ve improved the option description as well. You can find this tip over there too.
Please update the plugin to version 2.5.3 I just released and let me know if it works 😉
March 11, 2022 at 6:58 pm in reply to: How can I limit the purchases of the user by category? #100890Hi Roberto,
Actually, I think there is a way of getting what you’ve asked. The Limits > Per product settings will overwrite the Limits > Per category settings.
So you can set the Per category option as 3 and the Per product option as 1, but you’d have to do that to all the products from that category.
March 11, 2022 at 2:15 pm in reply to: How can I configure the plugin so that members can buy one unit of each product? #100886Hi Nathaniel,
There is also a different workaround you could try.
The idea is to create a shortcode pretending that all of the products have 1 as limit. And then we overwrite that rule by saying that the other products don’t have that limit.
Since you have mentioned category B for the products with limits, let’s say the other products are from category A having an ID of 6. This is what you could try:
– General > Mode > Product Quantities
– Limits > Per product category > Enable
– Formula > You have to use the shortcodes in the specific order:
[alg_wc_mppu limit="99999999" term_id="6"] [alg_wc_mppu membership_plan="1" limit="1"]
Anytime,
Thanks for the kind words. We’d appreciate if you could leave a review here or here if you are enjoying the plugin/support 🙂
We have the developers and FAQ tabs with some info but I know it’s just a little. We have plans to update it over time. By the way, I’m going to update it now with the filter I just sent you 😉
See you. Have a good weekend as well!
March 4, 2022 at 7:45 pm in reply to: Is this plugin compatible with Price Based on Country for WooCommerce plugin? #93159Hi again Martin,
I created an option for you on version 4.1.2 I just released.
Now it will be possible to choose the hook used on the “Force refresh” option. You can find it right below the “Force refresh” option.And I’m also adding the
'update_totals_on_change'
class to some country and address fields.I hope it helps 😉
I believe there could be a simpler way of getting what you want. If you just want to redirect after checkout, we have a filter for that. This is what you could try:
add_filter( 'alg_wc_ev_redirect_after_checkout', function( $redirect_to, $user_id ){ $redirect_to = get_site_url() . '/welcome'; return $redirect_to; }, 11, 2 );
Hi Gavin,
I didn’t test your code yet, but the number after
?alg_wc_ev_activate_account_message=
is supposed to be the user ID.March 4, 2022 at 12:49 am in reply to: Is this plugin compatible with Price Based on Country for WooCommerce plugin? #93158Thanks 🙂
You could try to update totals if the country/region field changes. It’s supposed to do that by default but maybe there could be something disabling it. This is the code you’d need to do that:
add_filter( 'woocommerce_checkout_fields', function ( $fields_sections ) { $fields_sections['billing']['billing_country']['class'][] = 'update_totals_on_change'; return $fields_sections; }, PHP_INT_MAX );
Anyway, the “Force refresh” option is using the
woocommerce_review_order_after_order_total'
hook and I just tested it here and it worked. I mean, when the country changes, the notice is refreshed.Maybe if it’s possible for you to test another hook as
'woocommerce_review_order_before_submit'
you could have more luck.I’ll add a new option for you on the next version allowing to choose the hook.
March 3, 2022 at 1:49 pm in reply to: How can I limit the purchase to the customer who does not have any membership? #100867All my user_roles are customers but I dont want to have to force all users to be on a membership so can I limit those who do not have a membership?
You can simply add the shortcodes starting with the more specific to the ones more generic, because the algorithm stops when the first matching shortcode is found (from top to bottom).
So, considering your example, I think it would work like this:
[alg_wc_mppu limit="10" term_id="161" membership_plan="advanced-membership"] [alg_wc_mppu limit="3" term_id="161"]
I want to only place limits on people who do not have memberships and let the others memberships have no limits or counters.
The same thing. You can start with the shortcodes containing the more specific rules, i.e., the memberships, and at the end you can add generic limits. There is no need to use the
-1
onmembership_plan
. Example:[alg_wc_mppu limit="0" term_id ="161" membership_plan="unlimited-membership"] [alg_wc_mppu limit="3" term_id ="161"]
March 3, 2022 at 12:25 am in reply to: Why does it not seem to get along with the Avatax plugin? #89897Hi Marye,
Sorry for the long delay.
Are you still experiencing issues with it?
If you are, please, send both plugins (Avatax and Subscription) to [email protected]. We’ll try to take a look.Would it be possible to run tests locally with them?
March 1, 2022 at 11:20 pm in reply to: Where do I add the license key? And does the plugin work with the WPML plugin? #93170Hi Louis,
1- To add the license you will need our WP Factory Helper plugin. You just need to add it to get automatic updates, when available.
2- You can use shortcodes in the messages, for example, for WPML translations:
[alg_wc_oma_translate lang="DE"]Text for DE[/alg_wc_oma_translate][alg_wc_oma_translate lang="NL"]Text for NL[/alg_wc_oma_translate][alg_wc_oma_translate not_lang="DE,NL"]Text for other languages[/alg_wc_oma_translate]
3- If you are referring to our Currency options, then each currency need to be set with the own currency. E.g.:
ILS – 30
USD – 9.3Let me know if it helps 😉
March 1, 2022 at 10:34 pm in reply to: How to make it work with the Side Cart for WooCommerce plugin? #88452Hi Alex,
In order to work with the “Side Cart for Woocommerce” plugin you’d have to override its template and add our code.
1- Overriding the template
You can follow their tutorial to learn how to do that. For an example, let’s say you want to display the “Amount left” at the mini-cart footer. You’d have to:Copy the contents from:
- pluginsside-cart-woocommercetemplatesglobalfootertotals.php
To:
- your-themetemplatesside-cart-woocommerceglobalfootertotals.php
2- Adding our code
You can use our php function or shortcode to display the amount left. Let’s say you want to use our shortcode. You could simply add this at any part of thetotals.php
file:<?php echo do_shortcode( '[alg_wc_left_to_free_shipping content="%amount_left_for_free_shipping% left for free shipping"]' ); ?>
Let me know if it works for you 😉
-
AuthorPosts