Flyer29
Forum Replies Created
-
Forum: Plugins
In reply to: [Klarna for WooCommerce] How to select payment methodsThank you for raising the request. If I understand it right, my MID in the European playground should be PK02246.
Forum: Plugins
In reply to: [Klarna for WooCommerce] How to select payment methodsUnfortunately no. I registered to the playground to get access to it and test this plugin.
Not being able to change settings in a playground is weird and not really practical for developer. To me, this is a process flaw : without a given client with a shop and an ID, I’m not able to show on a test system for woocommerce how things would look like. Unfortunately, this is what wake up curiosity of clients.
If you have contact to klarna and can raise the issue to them, this would be really nice. From my side I won’t investigate further the Klarna payments and stick to the old plugin. Your support was fantastically quick and awesome, thanks for it!
Forum: Plugins
In reply to: [Klarna for WooCommerce] How to select payment methodsThat was quick! Thanks a lot for your answer. Just to be sure I got you right: As a developer and before my client would go into production, I have no chance with developer credentials and a woocommerce test system to test the display of payment options nor I can show them to my client on my test system, right?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Fallback from AND to ORGot it. Thank you so much!
Got it. Just in case you could need the code, I found a solution how to remove the already displayed notice from the coupon. No chance within php, so I ended up using the same jQuery function I use to update the review order upon selection of a payment method. Here is the function, in case you could need it :
/** * Updated the checkout when change the payment method. */ (function ( $ ) { 'use strict'; $(function () { $( document.body ).on( 'change', 'input[name="payment_method"]', function () { $(".woocommerce-error, .woocommerce-message").remove(); $("html, body").animate({ scrollTop: $("form.checkout").offset().top - 100 }, 1e3); $( 'body' ).trigger( 'update_checkout' ); $.ajax( $fragment_refresh ); }); }); }( jQuery ));
That’s really cool! I will then try to be patient ??
as a small hint, be aware to check if you are on the cart page or checkout page (is_cart() and is_checkout()) while manipulating coupons otherwise you will end scratching your head why coupons are doubled ??
I will close the topic now, but if in the mean time you came up to a solution how to fade out already displayed notices (I will try my luck with jQuery FadeOut right now), it would be really cool if you post the snippet here.
Thanks a lot for the quick answer! It’s unfortunately not working, the invalid coupon still nit get refreshed in the order review. I ended up manually adding and removing coupons to the order review using your logic. This saved me a lot of time.
Now, I just only need to fadeout/erase the Woocommerce notice when I took off the coupon from the order review (since I still want to use your really nice customer notice when adding a coupon). Do you perhaps have an hint/idea how to hide an already displayed woo notice? The notices when added are queued, displayed and then erased from the queue so I have no chance to catch them up to make them disappear.
Don’t hesitate to mark the topic as closed if you have no idea on this one, the logic you are sing to add and remove coupons already helped me a lot.
Regards
PierreForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] syntax error on live siteHoly molly, that was the trick. Awesome!
Btw Ewout, I was heavily tweaking the packing slip template to produce something really german that has to be put to each order to explain the people that they can give goods back if they don’t like it (if you don’t do that here you will go to jail and so on, really). Based on shipping class you can then per item offer (or not) a return.
Since you helped me that much and that quick, I was thinking about sending you the template, so you could look at it and decide to offer (or not ) this kind of packing slip as a premium template. Is it a way for me to send you the pdf sample and the php file I made with a lot of love?
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] syntax error on live siteThe infamous line 107 seems not to be the root cause. Looking in the browser, I see in console a 500 error for “xxx/wp-admin/admin-ajax.php?action=generate_wpo_wcpdf&template_type=invoice&order_ids=25381&_wpnonce=091b5a553d”.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Operator IFYou have the wrong syntax, it has nothing to do with the plugin. The right, really basic php syntax for condition is:
if (this) {then do that;} else {do this if the condition is not met;}
Alternatively you can use
if (condition) {do this;} elseif (this second condition is met) {do this alternative;} else {do this if none of both conditions were met;}Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Bullet list formattingI’ll do, I’ll do, I’m so happy I could marry you next week.
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Bullet list formattingwon-der-ful! You made my day ewout. I was trying my luck with some content in the :before (what didn’t work). So I’ll use your code. Thanks a lot and have a good day!
Regards
PierreForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Bullet list formattingGosh are you good. I’m getting my bullets now but the formatting is still, let’s say, you have to get used to it. The bullets are aligned with the top of the line, not with the middle of the line (what I get perfectly on the HTML preview).
Based on your experience of a senior packing slip guru and knowing I’m trying to get a tick list to display (squares people can then cross), do you believe I should try to further pimp the list style or better include a picture of a square? The css : before argument will probably not work with the pdf wrapper, right?
Forum: Plugins
In reply to: [Relevanssi - A Better Search] snippet constructor errorSo, after some time spent with var_dump, I found a solution working for me (but I perhaps destroyed something else). So feel free to still give me a solution if you have a better one.
in the excerpts-highlights.php file, the mb_stripos function around line 211 is looking for $term in $excerpt_slice. Unfortunately, you set just before ‘$term = ” $term”‘, so that the new $term has no chance to be found in the $excerpts_slice, but only if $terms was the beginning of a word, but not a portion. In my example, after adding the space to $term, mb_stripos can’t find ” anzanella” in ” Panzanella” but would find ” Panz” in ” Panzanella”. So commenting out the addition of a previous space solved my issue (but perhaps broke something else).
ups. I was posting in the wrong thread, this is had nothing to do with the clear button not translating. Sorry for this one.