PascalBajorat
Forum Replies Created
-
Forum: Plugins
In reply to: [PB SEO Friendly Images] not in database?Yes, I understand. But why do you want to deactivate it? If you disable it, the plugin can’t optimize alt and title attributes for new posts or images.
Forum: Plugins
In reply to: [PB SEO Friendly Images] not in database?Yes, that’s right. If I store those changes in the database it’s more complex to rewrite the values after some changes of the settings.
If you have concerns about performance, you can use the plugin together with a cache. It works fine with all popular caching plugins like W3 Total Cache, WP Super Cache, WP Rocket and many more.
kind regards
PascalBesten Dank, funktioniert perfekt.
Hey,
ich frage nur noch einmal nach, weil ihr sonst immer sehr schnell geantwortet habt: Ihr habt gesehen, dass ich in dem Text oben noch eine kleine Frage hatte? Falls das bereits auf dem Schirm ist, einfach ignorieren.
Eine letzte Frage noch: Gibt es einen Filter um den Dateinamen zu bestimmen, dass der Dateianhang nicht “Lieferschein-2016-XXXX.pdf” heißt.
Danke
Hi,
bin alle Variablen und Objekte einmal durchgegangen und habe die Probleme gefunden. An deiner Vorlage waren ein paar kleine Anpassungen notwendig, jetzt funktioniert es.
Vielen Dank für die Unterstützung und die Ansätze zu dem Thema, ich lasse euch später noch eine 5 Sterne Bewertung für den tollen Service da, top.
Eine letzte Frage noch: Gibt es einen Filter um den Dateinamen zu bestimmen, dass der Dateianhang nicht “Lieferschein-2016-XXXX.pdf” heißt.
Der Vollständigkeit halber stelle ich anbei noch den funktionierenden Code zur Verfügung, welcher jetzt in meinem technischen Umfeld funktioniert:
function child_send_packing_slip( $attachments, $id, $object ) { if ( 'customer_invoice' !== $id ) { return $attachments; } $order = wc_get_order( $object->post ); $slips = wc_gzdp_get_invoices_by_order( $order, 'packing_slip' ); if ( empty( $slips ) ) { // Generate packing slips $args = apply_filters( 'woocommerce_gzdp_packing_slips_defaults', array( 'invoice_status' => 'wc-gzdp-pending' ) ); $invoice = wc_gzdp_get_invoice( false, 'packing_slip' ); $invoice->refresh( $args, $order ); // Recheck for packing slips $slips = wc_gzdp_get_invoices_by_order( $order, 'packing_slip' ); } if ( ! empty( $slips ) ) { $slips = array_values($slips); $attachments[] = $slips[0]->get_pdf_path(); } return $attachments; } add_filter( 'woocommerce_email_attachments', 'child_send_packing_slip', 10, 3 );Die Fehlermeldung die bei Ausführung des obigen Filters ausgelöst wird lautet wie folgt:
Notice: Trying to get property of non-object in /wp-content/plugins/woocommerce-germanized-pro/includes/abstracts/abstract-wc-gzdp-invoice.php on line 240
Fatal error: Call to a member function get_formatted_billing_address() on boolean in /wp-content/plugins/woocommerce-germanized-pro/includes/abstracts/abstract-wc-gzdp-invoice.php on line 253
Vielen Dank für das schnelle Feedback. Ich habe die Funktion jetzt wie folgt in der functions.php des Themes implementiert:
function child_send_packing_slip( $attachments, $id, $object ) { if ( 'customer_invoice' !== $id ) { return $attachments; } $order = wc_get_order( $object->order ); $slips = wc_gzdp_get_invoices_by_order( $order, 'packing_slip' ); if ( empty( $slips ) ) { // Generate packing slips $args = apply_filters( 'woocommerce_gzdp_packing_slips_defaults', array( 'invoice_status' => 'wc-gzdp-pending' ) ); $invoice = wc_gzdp_get_invoice( false, 'packing_slip' ); $invoice->refresh( $args, $order ); // Recheck for packing slips $slips = wc_gzdp_get_invoices_by_order( $order, 'packing_slip' ); } if ( ! empty( $slips ) ) { $attachments[] = $slips[0]->get_pdf_path(); } return $attachments; } add_filter( 'woocommerce_email_attachments', 'child_send_packing_slip', 10, 3 );Leider führt die aktuelle Version zu einem Fehler im Bestellablauf. Im letzten Schritt, nach dem Klick auf “jetzt kaufen”, kann die Bestellung nicht erfolgreich abgeschlossen werden:
https://www.dropbox.com/s/dmkckfwyqx8bj9i/Screenshot%202016-06-02%2011.20.32.png?dl=0
Habt ihr da noch eine Idee woran das jetzt liegen könnte? Gewählte Zahlungsmethode war “Rechnung” daher wird die Rechnung direkt nach / während der Bestellung generiert und hier auch die Action ausgeführt.
Hallo,
noch eine nachträgliche Frage: Das besagte Zertifikat, welches aus dem Lieferschein-Template entstehen soll, wird aktuell noch nicht an die E-Mails angehängt, obwohl ich den obigen Code eingebunden habe.
Die Produkte im Warenkorb waren alle virtuelle / digitale Produkte, vermutlich wird daher auch kein Lieferschein generiert. Besteht die Möglichkeit mit dem obigen Code den Lieferschein auszugeben und mit Artikelliste zu generieren, auch wenn es sich nur um digitale Produkte handelt?
Wenn ich das noch gelöst bekomme, sollte ich den Rest auf Basis der PDF-Templates zusammengebaut bekommen, wäre super wenn es dafür noch eine Lösung gibt.
Besten Dank im Voraus.
Besten Dank! Das werde ich auf jeden Fall mal testen. Der Lieferschein wird angepasst zu einem Zertifikat, dann ergibt das ganze auch mehr Sinn 😉
Forum: Plugins
In reply to: [PB oEmbed HTML5 Audio - with Cache Support] Multiple Instances not workingIt’s not a bug in the player, it’s limited by Chrome. For example see this entry here: http://stackoverflow.com/questions/17004658/chrome-only-loading-6-html5-audio-tags
Forum: Plugins
In reply to: [PB oEmbed HTML5 Audio - with Cache Support] Multiple Instances not workingPlease try to load the audio elements with the preload attribute, maybe this will help.
Forum: Plugins
In reply to: [PB oEmbed HTML5 Audio - with Cache Support] Multiple Instances not workingHi,
hm I’m not sure if there is a problem with the Plugin or with the files. If I try to open the mp3 sources of the four not working audio elements they could not be loaded.
Could you please check that there is no problem with the files.
Pascal
Hi Frank,
thank you very much for your quick response. I’m using this as base for my themes: https://github.com/pascalbajorat/WordPress-Boilerplate/blob/master/functions.php
And the function “FrontendScripts()” will not be called when I activate AO.
I will try it with version 1.9.2, maybe you have an idea so far.
Thank you and kind regards
PascalI think this tutorial will help you: http://designshack.net/articles/css/custom-html5-audio-element-ui/
Forum: Plugins
In reply to: [PB oEmbed HTML5 Audio - with Cache Support] Change buttonsSince the last update (2.5) my player has a new CSS class “.pb-html5-audio-element” you can use CSS and JavaScript to style and customize your player.
Please have a look at the readme.txt to learn more about custom classes and id’s.