jlanpheer
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Payment Method Configuration error.Here’s an update. As instructed, we did downgrade the plugin to version 9.9.2 and re-authenticated our Stripe account and that DOES appear to have fixed the problem. So, thank you for that instruction.
My client told me that they upgraded because they got a specific instruction from you to upgrade. Having downgraded, has my client lost some functionality or perhaps some security protections? Please advise on how we should proceed going forward.
Thanks so much for the help so far!
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Payment Method Configuration error.Thanks for your reply and instruction. We will do this in the morning and report back.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Payment Method Configuration error.Hi, sorry just saw your reply, i can do that. Could you please point me to the place where i would get the 9.9.2 version of your plugin? I’ll get this done for us.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Payment Method Configuration error.OK, thank you for letting me know. Can you recommend any workarounds for my client? As of now, their site is completely unable to accept/process payments. Do you have customers using your plugin that have been unable to process payments for a month now? I would assume that you’ve been able to provide some sort of workaround for/to them. Thank you for any advice you can offer.
As a bit of context for my questions, we have business use cases where custom discounts need to be applied based on the number of products in a certain category that remain on the order after a refund. One of our use cases involves the instance where a customer may have purchased five (or more) items that are in Woocommerce category ‘X’, in which case we offer a volume discount. Essentially, this means that if a customer buys 4 or more of an applicable item, every item over the count of four is sold for ‘free’, a typical volume discount.
If the customer requests a refund on one or more of the items, but after the ‘refund’ they still have four or more items on the order matching that description, we want to be able to update the order to show the returned item, however the amount refunded in this case is zero. We have other use cases where the refund logic calculates a non-zero refund and we’ve hung that logic on the ‘woocommerce_admin_order_totals_after_refunded’, but the action doesn’t appear to fire in the use case when the refund is zero. Hence the questions about how Stripe handles this…..
- This reply was modified 8 months, 2 weeks ago by jlanpheer.
Forum: Plugins
In reply to: [WooCommerce] Hook woocommerce_get_shop_coupon_data not firing.Thank you for the class reference, i had already checked that out and not found anything that appeared to be new. I did as you asked and posted this on GitHub Discussions three days ago now, and (as i’ve usually found in this recommended discussion forums in the past) i’ve not had a single response to the discussion that i’ve opened. For anyone reading this that feels that they can offer a suggestion, here’s the link to the discussion:
https://github.com/woocommerce/woocommerce/discussions/58831
Forum: Plugins
In reply to: [WooCommerce] Hook woocommerce_get_shop_coupon_data not firing.Thanks for your reply. I have posted on both of the forums that you’ve suggested above before and have never received a response to any of my queries. I may end up trying that, but my expectations of getting any real help there is about as close to zero as you could imagine.
As a support person on this forum, could you at least confirm: (1) is this still a valid Woocommerce hook and (if so) have there been any changes to its functionality at any time if the last few Woocommerce updates? Even if you have a link to where i might find those might be helpful. From even casual inspection, “something” has clearly changed here and any help in tracking it down would be helpful.
Forum: Developing with WordPress
In reply to: Simple AJAX call to upload a file.Thank you Seyyed for your kind and detailed response! It was very helpful!
First, i realized about 10 minutes after i posted this that the name of my function and the name in the ‘action’ parameter were not the same, i had made that mistake after creating several incarnations of this function, trying slightly different things. However, correcting that did not solve the problem.
What DID solve it was handling the nonce parameter correctly. I did not know that if you localized the script that the nonce argument should be included INSIDE the ‘data’ array that is passed. Every example i had seen had showed it as a separate parameter. Doing so fixed the problem straight away. I don’t know why i didn’t think to try that, but your suggestion makes sense and solved my problem. I’m not quite sure why other parameters in the call are not also included in the passed ‘data’ array (e.g. processData, contentType etc…) but i will have to study that.
Thank you again for your help and i am marking this as ‘resolved’. Take good care of yourself and your loved ones!
Forum: Developing with WordPress
In reply to: Simple AJAX call to upload a file.Just to provide a bit more info, if i replace the ‘url’ parameter with this, i instead get the error: POST 400 (Bad Request). As in:
$.ajax({
url: ajax_new_obj.ajax_url,
type: 'post',
data: formData,
processData: false,
contentType: false,
success: function (response) {
if (response.success) {
$('#csv-table').html(response.data);
} else {
alert(response.data);
}
},
error: function (data, status) {
console.log(data, status);
alert('An error occurred while loading this payroll file. Please check the file format and try again.');
}
});
});Forum: Developing with WordPress
In reply to: Plugin click redirect shows blank page.I actually found the solution. By debugging, i trapped the url that was being called and saved that. I also captured the url of the “View Page” that WAS working. I found them to be different by a SINGLE character: the one that worked had a trailing “/” on the end. So, the two lines of code that i compared were:
https://mysite.com/stats-app
https://mysite.com/stats-app/The second one worked, the first did not. Not sure why that is, i’d be curious if anyone has an explanation. It’s also a mystery why the code has worked for YEARS using version #1 and suddenly, not this past Sunday.
Thanks for any theories about the slash, but the problem is resolved and thanks for the helpful suggestions!
Forum: Developing with WordPress
In reply to: Plugin click redirect shows blank page.Oh, i had also tried changing the button link to this form:
onclick="<?php echo get_permalink( xxxx ); ?>"No dice…..
Forum: Developing with WordPress
In reply to: Plugin click redirect shows blank page.Hey, thanks for the suggestions, I’ll check the “no-cache-ing” option, thanks, i hadn’t tried that.
2. Button code, i actually started with your simpler version, the same as your suggestion, but i will add the no-cache.
3. Good suggestion to try the shortcode on a different page, thanks i will try that. I have registered it properly. (and this plugin has been working without issue for several years, which is what is truly baffling about this).
4. The hosting company HAD switched to php8 recently, and we had troubles (not with this) last week and they switched us back to 7.3.4 and this has worked for a week…. until tonight. Could .htaccess be an issue?
5. It MIGHT be this, the problem is that the theme has been SO heavily customized that going to a default theme will make this functionality unavailable. But, i will check that.
6. Everything’s running https, i checked that first thing.
7. Also checked permissions, also all good.
I’ve been debugging all day, no directly relevant errors in the debug log and nothing in the browser console at all.
I’m wondering about the php8 shift and then back to 7.3.4 myself….. Thank you for some ideas to try, i was running out of them.
- This reply was modified 1 year, 6 months ago by jlanpheer. Reason: adding info
Oooo, thank you for your response. Actually, i DID have an “=” sign where i had originally put a “:”, i mistyped my example. When going back, i did discover that your example worked. However, i DID actually find what was actually causing it not to work. I wasn’t using an English color, i was using an rbga value. As you say, this works:
<span style:”color:red;”>Company</span> Header
However, this does NOT:
<span style:”color:rgba(255,255,255,0.3)”>Company</span> HeaderIs this possible? I would like the color to match the rgba value of the logo on the site as closely as possible. Using the alpha approximation is a fallback, but i’m wondering now if i can do the above. Thank you for your answer! Much appreciated!
OK, thank you for your reply, much appreciated. I thought as much, but wanted to ensure we went the right path.
Forum: Plugins
In reply to: [WooCommerce] Product Collection Woo Block Sorting/FilteringThank you for the suggestion. I’ve been directed to the Slack before here, and either (a) i don’t know how to connect with the “right people” there or (b) the Slack is a black hole of requests, because i’ve posed a couple of questions there in the past which i never heard a word in response to. But, i will try it, thank you.