Erik Molenaar
Forum Replies Created
-
@nazrulhassanmca Sorry for that, I am mixing up files over here. Gettin’ late ??
I got it to work, but I can’t define a custom message for card_declined.
Can you tell how to fix this? Thanks again ??add_filter('woocommerce_stripe_woocommerce_addon_error','woocommerce_stripe_woocommerce_addon_error_overide',$error) ; function woocommerce_stripe_woocommerce_addon_error_overide($body){ if($body['error']['type'] == 'incorrect_number' ){ $error = 'Its working! This custom message is shown on incorrect_number.'; } if($body['error']['type'] == 'card_declined' ){ $error = 'This custom message wont show. It just says Error processing checkout. Please try again.'; } return $error ; }
- This reply was modified 8 years, 6 months ago by Erik Molenaar.
- This reply was modified 8 years, 6 months ago by Erik Molenaar.
Awesome! Looking forward to your plugin update ??
That would also be an excellent idea. So this way it is just adding the required custom error messages to functions.php?
In version 3.0.2 of the plugin, I can’t find below code anywhere in the plugin files. Can you tell me how to do this modification in this version? And in which file? Thanks ??
catch (Exception $e) { $body = $e->getJsonBody(); $error = $body['error']['message']; $wc_order->add_order_note( __( 'Stripe Error.'.$error, 'woocommerce' ) ); wc_add_notice($error, $notice_type = 'error' ); }
- This reply was modified 8 years, 6 months ago by Erik Molenaar.
BTW: Do you have any plans to include custom error message editing in the plugin settings?
Or even support translations?It would be a dream to customize these error messages to a custom user-friendly error message in the WordPress dashboard instead of hacking the plugin files.
Looking forward to your reply, and thanks again!
- This reply was modified 8 years, 6 months ago by Erik Molenaar.
Thanks nazrulhassanmca, that seems like a good temporary fix ??
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Different order status behaviourI tried again in another WP install, it seems the ‘card_declined’ order set to “Pending Payment” (which is appropriate!), user can try again and again and it will remain ONE order instance (which is good!). I think I messed up with a older release, sorry for that.
Only ‘unwanted’ behaviour is their is no “Failed order” notification sent out to the admin, which the previous version (2.6.12) did!
Forum: Plugins
In reply to: [WooCommerce] Autosend Invoice with Pay Link after a Failed/Declined PaymentThanks Riaan!
Easy way:
I may have found a plugin who does just what I am looking for ??
https://codecanyon.net/item/woocommerce-payment-reminder/6965773Forum: Plugins
In reply to: [Advanced iFrame] Widget within iFrame to prevent crawling by GooglebotIt’s actually a menu widget, does your plugin provide support to add an noindex to a widget?
That is a good tip, Tatvic! Thanks for your help ??
Hi Tatvic,
Thanks for your prompty reply!
In GA it says for Revenue the following “…Depending on your implementation, this can include tax and shipping”. Check out https://screencast.com/t/4Y3SbRfa6G3b
Do you have an idea how to exclude tax and shipping from the GA e-commerce reports? I find it strange the mention in their documentation it should be excluded, but apparently it is included in their reports after all?
Forum: Plugins
In reply to: [Advanced iFrame] Widget within iFrame to prevent crawling by GooglebotHi Michael!
Thanks for the prompt reply!
So would it be possible to set a “noindex” on the frame contents (the widget for example)? My guess is this would be a ‘future proof’ method to let Google know it’s a repetitive/duplicate part/iFrame of the page contents.
Looking forward to your reply.
Kind regards
ErikForum: Reviews
In reply to: [Fedex WooCommerce Shipping Method Plugin] Awesome plugin & works great!Hi!
You have a nice packing algorithm indeed! But…: it does not account for scenarios where 1 product SKU consists of multiple packages, e.g.:
SKU #4083
Box 1 -> 122x71x11 cm (25 kg)
Box 2 -> 140x30x12 cm (15 kg)The problem actually lies in WooCommerce, because they do not have a native field for ‘boxes’ or ‘packages’. It’s only weight and dimensions… -> https://screencast.com/t/ZYNqAzlLL
Perhaps it would be possible to add an extra field to this Shipping form for “No. of Packages”. But if that is too complicated (which I can imagine!), an nice alternative would be to edit the amount of boxes before creating the shipment/printing labels. That would solve it!
Btw: I really appreciate how you guys listen to your users. Your support is stellar! I am looking forward to future updates ??
Forum: Plugins
In reply to: [GA Experiments+ | Dev Edition] [object Object] when AuthenticatingPerhaps it is the authentication process. I manage multiple accounts, could that be it? Can I receive your API key to try it out?
Forum: Plugins
In reply to: [GA Experiments+ | Dev Edition] [object Object] when AuthenticatingI just tried it on a fresh WP install on a complete different web server, and it gives the same error. If you try on a fresh install you probably will have the same error?