gmwp1111
Forum Replies Created
-
@ud_daniel: I had the same issue. Turned out my caching plugin (WP Rocket) was the reason. I added this path in “advanced” in WP Rocket “/dhl_download_label/(.*)” not to be cached. No problems since then. Probably it’s similar in your case?
BTW: if you rename the html file to pdf: can you open it as a real pdf then?- This reply was modified 4 years, 10 months ago by gmwp1111.
That helped, thanks a lot!
I used this snippet to show a cutom text in case the customer set the checkbox:
add_action( 'wpo_wcpdf_after_order_details', 'wpo_wcpdf_custom_text', 10, 2 ); function wpo_wcpdf_custom_text ($template_type, $order) { $fees = $order->get_fees(); foreach($fees as $fee) { if (strpos($fee['name'], 'postcard') !== false) { echo('Text to be shown on packing slip goes here'); } } }
Where can I change the German text exactly? I tried seaching it in the string translation of WPML but couldn’t find it. Thanks!
- This reply was modified 5 years ago by gmwp1111.
Hi Shadi,
Any updates or hints?
Thanks!
Best,
GeorgHi Shadi,
I would like to change both texts, the English and the German.
Thanks!
Best,
GeorgThis is finally what I use to cover more browsers:
.mc4wp-form:focus-within ::-webkit-input-placeholder { color: transparent; } .mc4wp-form:focus-within :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: transparent; opacity: 1; } .mc4wp-form:focus-within ::-moz-placeholder { /* Mozilla Firefox 19+ */ color: transparent; opacity: 1; } .mc4wp-form:focus-within :-ms-input-placeholder { /* Internet Explorer 10+ */ color: transparent; }
Thanks!
I was able to figure out how to set the color of the placeholder to transparent after focus:.mc4wp-form:focus-within ::-webkit-input-placeholder { color: transparent; }
Thanks!
Best,
GeorgForum: Plugins
In reply to: [Germanized for WooCommerce] Emails wenn PayPal Zahlung abgebrochenHallo Stephan,
durch das Snippet wird die Storniert-Mail unabh?ngig vom vorherigen Status verschickt, sobald sich der Status auf “abgebrochen” ?ndert, also auch von “Pending”.
Beste Grü?e
GeorgForum: Plugins
In reply to: [Germanized for WooCommerce] Emails wenn PayPal Zahlung abgebrochenHallo Stephan,
ich nutze folgendes Snippet, um genau das zu erreichen, was du willst:
add_action('woocommerce_order_status_changed', 'send_custom_email_notifications', 10, 4 ); function send_custom_email_notifications( $order_id, $old_status, $new_status, $order ){ if ( $new_status == 'cancelled' || $new_status == 'failed' ){ $wc_emails = WC()->mailer()->get_emails(); // Get all WC_emails objects instances $customer_email = $order->get_billing_email(); // The customer email } if ( $new_status == 'cancelled' ) { // change the recipient of this instance $wc_emails['WC_Email_Cancelled_Order']->recipient = $customer_email; // Sending the email from this instance $wc_emails['WC_Email_Cancelled_Order']->trigger( $order_id ); } elseif ( $new_status == 'failed' ) { // change the recipient of this instance $wc_emails['WC_Email_Failed_Order']->recipient = $customer_email; // Sending the email from this instance $wc_emails['WC_Email_Failed_Order']->trigger( $order_id ); } }
Damit wird die “Storniert”-Mail nicht mehr an den Shopadmin, sondern an den Kunden verschickt. Ich habe die entsprechende Mail dazu deshalb auch entsprechend angepasst.
Beste Grü?e
GeorgOk, I got it now:
.su-custom-gallery.su-custom-gallery-title-never div img
{border: none;}That works.
Best,
GeorgHi Vladimir,
Thanks! I have already tried custom CSS editor, but I can’t find the selectors of the each item of the gallery. Could you help out there?
Thanks!
Best,
GeorgHi,
thanks, that’s good news that you are planning to implement this function in your plugin. Do you know when this version will be available?
Best,
GeorgHi,
Sorry for the late reply.
Here is a screenshot of the cart with Woocommerce Germanized:
https://ibb.co/hHDqyFNIf the highlighted field is checked you can see this in the order details:
https://ibb.co/Nn2TjDYYou have already implemented the feature that this setting is automatically passed to your DHL plugin (same screenshot above).
I would like to have the same feature for the Plugin “German Market” (competitor of Woocommerce Germanized). Here it looks like this in the cart:
https://ibb.co/p1mVXTtThanks!
Best,
GeorgSorry for the late response, the error disappeared without any change from my side. I think it was a temporary error at DHL.
Thanks!
Best,
GeorgHi,
ich habe deinen letzten Vorschlag wie folgt erweitert. Jetzt wird die Mail nur bei überweisungen verschickt (sonst wurde sie bei Paypal doppelt verschickt) und sie wird nur einmal verschickt:
add_action( 'woocommerce_order_status_on-hold_to_processing_notification', 'my_child_send_order_paid_mail', 10, 1 ); function my_child_send_order_paid_mail( $order_id ) { $mails = WC()->mailer()->get_emails(); $order = wc_get_order( $order_id ); $payment_method = $order->get_payment_method(); $paid_mail_sent = get_post_meta( $order_id, 'paid_mail_sent', true ); if ($payment_method == "bacs" && empty($paid_mail_sent)){ if ( isset( $mails['WC_GZD_Email_Customer_Paid_For_Order'] ) ) { $mails['WC_GZD_Email_Customer_Paid_For_Order']->trigger( $order_id ); add_post_meta($order_id, 'paid_mail_sent',1); } } }
Vielen Dank!
Beste Grü?e
Georg