GlideAgency
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Fastest Cache] Cloudflare Integrated but not detected@emrevona are you able to provide any information on how you came to this conclusion?
If we have set up the plugin as well as Cloudflare exactly as per your instructions, what else should I do or where do I look to try and resolve this?
Forum: Plugins
In reply to: [WP Fastest Cache] Cloudflare Integrated but not detectedHi @emrevona thanks for your reply. The DNS is on Cloudflare, as you can see with this DNS check:
Bump…
Hi @missveronicatv, thanks for your response.
I don’t actually have the add action section at the moment.
I will try your code snippet and let you know if that works.
Hi @ultimatemembersupport can you please respond to the above?
Thanks
Hi team,
Any chance of a response to the above question?
Thanks
Forum: Plugins
In reply to: [Search Field for Gravity Forms] Select post from search field@wpsunshine gotcha, thanks for the explanation, that makes sense now.
If you do ever get to it, I think it will be a valuable feature to add to the plugin.
Since the Gravity Wiz Populate Anything plugin doesn’t work like a search field, so you end up having to load a dropdown select field with all products for example.
This is fine when you don’t have a lot of products, however the search and select feature could be invaluable if there are 100’s of products to search through. ??
Forum: Plugins
In reply to: [Search Field for Gravity Forms] Select post from search field@wpsunshine thanks for confirming, I thought the plugin was meant to work like that from the get go.
If the search field isn’t selectable or sent through the form submissions, can I ask what the purpose of it is?
Hi @ultimatemembersupport I have added this code in but the result is the same.
The order for the product goes through fine, but the user is added with the Customer role only.
Can you please advise?
Forum: Plugins
In reply to: [Anything Order by Terms] Broken with WP 5.9.3I just wanted to confirm this issue is happening on multiple websites.
Are there any plans to update the plugin to fix this issue?
Hi @ultimatemembersupport after much back and forth with WooCommerce, I have finally worked out the function required to check if the user has bought a product.
The reality is, WooCommerce can only check if an existing customer has purchased a product, and cannot see Guest purchases.
So first I had to disable Guest checkout for this product, so the customer needs to add a Username and Password during checkout of this product.
This has worked well, and I have now added your code to the function I created, however upon testing, it is not doing anything, and users are still being saved as Customer after purchasing this specific product.
Here is the code below:
function check_customer_bought_product() { global $woocommerce; $user_id = get_current_user_id(); $current_user= wp_get_current_user(); $customer_email = $current_user->email; if ( wc_customer_bought_product( $customer_email, $user_id,'14427')) { UM()->roles()->set_role( $customer_id, 'um_constable-care-club-member' ); return true; } return false; }
Please let me know your thoughts.
@aswingiri thanks for your response, and sorry for the delay in getting back to you.
Can you just confirm, since I also need to check for the purchase of a specific product, and not all products, can that check be done in the above add_action as well?
Or does that need to be defined elsewhere and referenced here? Are you able to confirm how I can run that check first and then apply the set_role function to only those users?
Thanks for your help.
Thanks everyone for your help. I can confirm everything is working as expected now.
Just to confirm though I did have to remove the document->get_type bit of the code since I was getting a critical error. But without that bit it works fine.
Thanks again.
@champsupertramp thanks for that, I can confirm it’s all working correctly now.
Hi @pomegranate thanks for that info. Sorry for the misunderstanding, it is a relatively complicated setup and unfortunately the developer that originally wrote the code is no longer working here.
Disabling invoices on free products is now working as expected.
With regards to the attachment issue, I just wanted to clarify that rather than disable the attachments for the cybersource payments, we need them disabled when using the custom invoice payment method.
Here is a screenshot of the payments screen if that helps – https://imgur.com/k65yHOG
So the main question is since the custom payment method is via a separate plugin, is it possible to detect if the payment method is the custom one via the same code above, and just changing cybersource to “other_payment” instead? “other_payment” seems to be the key for the Invoice Payment from what I can see in the functions file –
$order->get_payment_method() == 'other_payment'
Finally can you confirm if this code is meant to be added to the functions.php file or should it be in the WooCommerce Order Complete email template?