newshop
Forum Replies Created
-
Forum: Plugins
In reply to: [Germanized for WooCommerce] Preisauszeichnung auf order-received SeiteHm, heute funktioniert mein Code von gestern schon nicht mehr (die Lieferzeit wird zwar immernoch wie gewünscht hinter die Quantity gehängt, erscheint allerdings auch wieder nach dem Produktnamen, also scheint der remove_filter nicht mehr zu greifen), obwohl die Hooks doch scheinbar die gleichen sind. Wurde in dem heutigen Update irgendwas diesbezüglich geändert?
Forum: Plugins
In reply to: [Germanized for WooCommerce] Preisauszeichnung auf order-received SeiteAh ok, na dann schnibbel ich bis dahin weiter 🙂
Danke!Forum: Plugins
In reply to: [Germanized for WooCommerce] Preisauszeichnung auf order-received SeiteOk danke! Es ist nicht zufällig in Planung, die Positionierung von der Kassenseite auch für die Bestellübersicht zu übernehmen, oder? Dann könnte man sich solche Codeschnipsel sparen 🙂
Forum: Plugins
In reply to: [Germanized for WooCommerce] Preisauszeichnung auf order-received SeiteOk, so gehts, aber ist das auch die beste Lösung?
add_action('init','delivery_time_position_order_table'); function delivery_time_position_order_table() { remove_filter( 'woocommerce_order_item_name', 'wc_gzd_cart_product_delivery_time', wc_gzd_get_hook_priority( 'order_product_delivery_time' ), 3 ); add_filter( 'woocommerce_order_item_quantity_html', 'wc_gzd_cart_product_delivery_time', wc_gzd_get_hook_priority( 'order_product_delivery_time' ), 3 ); }Forum: Plugins
In reply to: [Germanized for WooCommerce] Preisauszeichnung auf order-received SeiteHallo,
habe das gleiche Problem: Ich möchte dass die Lieferzeit nach der Product Quantity angezeigt wird, leider lässt sich das nur für Warenkorb und Kasse einstellen, nicht aber für die Order Table (Order received, Kundenkonto).
Ich blicke bei den Germanized-Hooks und Filtern nicht so richtig durch, daher wärs super wenn mir jemand sagen könnte, was ich in meine functions.php schreiben muss, um die Lieferzeit hinter die Anzahl statt den Produktnamen zu bekommen.Ich muss ja wahrscheinlich erstmal das hier aushebeln:
add_filter( 'woocommerce_order_item_name', 'wc_gzd_cart_product_delivery_time', wc_gzd_get_hook_priority( 'order_product_delivery_time' ), 3 );
Und dann stattdessen das hier anwenden:
add_filter( 'woocommerce_order_item_quantity_html', 'wc_gzd_cart_product_delivery_time', wc_gzd_get_hook_priority( 'order_product_delivery_time' ), 3 );Aber iwie greift es nicht wenn ich das hier in meine functions schreibe:
remove_filter( 'woocommerce_order_item_name', 'wc_gzd_cart_product_delivery_time', wc_gzd_get_hook_priority( 'order_product_delivery_time' ), 3 );Was mach ich falsch? Vielen Dank schonmal!
Forum: Plugins
In reply to: [Germanized for WooCommerce] Kaufen-Button nimmt Button-Text nicht anOk, ich habs. In wp-content/languages/wpml war eine Datei namens “admin_texts_woocommerce_gzd_order_submit_btn_text-de_DE_formal”
Die hab ich gelöscht, neu gescannt, übersetzt und jetzt gehts. Find ich trotzdem iwie komisch dass das nicht automatisch funktioniert und verunsichert mich jetzt ziemlich, ob es noch mehr solcher Problemstrings gibt, die ich evtl nur noch nicht entdeckt hab…Forum: Plugins
In reply to: [Germanized for WooCommerce] Kaufen-Button nimmt Button-Text nicht anOder kannst du mir vielleicht einfach einen Codeschnipsel geben, mit dem ich den Germanized-Button komplett deaktivieren kann?
Ich habs damit versucht:
remove_filter( 'woocommerce_order_button_text', 'woocommerce_gzd_template_order_button_text', 9999 );
Allerdings erscheint dann zuerst der ursprügnliche Woocommerce-Text (“Zahlungspflichtig bestellen”) und dann gibts nen Ajax Refresh und es steht wieder “Kaufen” da. :/Den üblichen Workaround mit Standardtheme aktivieren und alle anderen Plugins deaktivieren, hab ich natürlich schon durch. Fazit:
Sobald WPML String translation aktiv ist, wird der Germanized String mit “Kaufen” überschrieben.
Hab mir auch schon meine komplette Datenbank exportiert und nach “Kaufen” durchsucht – keine Treffer.
Ich hab wirklich null Plan
1. Wieso er das überschreibt und
2. Wo der “Kaufen”-String überhaupt herkommt…Wäre für jeden Tipp dankbar.
Forum: Plugins
In reply to: [Germanized for WooCommerce] Kaufen-Button nimmt Button-Text nicht anIch stehe echt auf dem Schlauch.
Wenn ich in WPML String Translations die Option “Auto register strings for translation” aktiviere und als Filter “Woocommerce” anhake (nicht Germanized!) steht auf der Checkoutseite wie gewünscht “Jetzt kaufen”. Sobald ich die Funktion ausschalte, steht da wieder nur “Kaufen”.
Ich hab Woocommerce & Germanized komplett neu gescannt, aber der String “Kaufen” kommt nirgends vor.
Der neu eingetragene Text “Jetzt kaufen” wird in String Translation korrekt angezeigt und ich kann ihn auch ganz normal ins Englische übersetzen.
Ich hab echt keine Ahnung, woher diese “Kaufen”-Übersetzung kommt.Kann es sein, dass Woocommerce hier eine höhere Prio als Germanized hat?
Oder gibts sonst iiirgendeinen Anhaltspunkt, wonach ich mal schauen könnte?Forum: Plugins
In reply to: [Germanized for WooCommerce] Kaufen-Button nimmt Button-Text nicht anDas war definitiv die schnellste Antwort, die ich jemals bekommen hab, Respekt 😀
Ja, sobald ich WPML deaktiviere, wird mir der richtige Text angezeigt, aber das ist natürlich keine Lösung…Dann suche ich mal weiter und schreib hier rein wenn ich ne Lösung hab, danke dir!Forum: Plugins
In reply to: [Plugin Organizer] Page doesnt accept settingsOk, I think I narrowed it down and it seems that the Recreate Permalinks button is not compatible with WPML.
I have German and English, German is default.
I globally disabled some plugins and would like to enable a specific plugin on a specific page. I enabled in on the German and the English page settings, but it shows up only on the English page, not one the German page although they have the excact same settings.Deleting and copying the MU file has no effect.
If I hit the recreate permalinks button in English language, it says “0 permalinks recreated” and its all as it was before.
But if I hit the recreate permalinks button in German language, it says “50 permalinks recreated”, the plugin shows correctly in German language but stopped working in English language – the global settings apply for the English language.
If I then hit the recreate permalinks button in English language again, it works for the English page ant the global settings apply for the German page (means the selectively enables plugin is not loaded) and so on.So I dont know if this is a bug or if its simply not WPML compatible or if I misconfigured the plugin somehow?
Forum: Plugins
In reply to: [Plugin Organizer] Page doesnt accept settingsSorry for spamming, but just wanted to let you know, that unfortunately, trying to solve this by activating all plugins globally and disabeling the unneeded ones does not work on checkout page either. This specific page only accepts the settings I make in the global settings, all selective settings are ignored.
It is quite inconvenient that ALL plugins are loaded on the checkout page of all places, so I would be very grateful if there was a solution for this. I can also gladly provide FTP/admin data to a test page.
Forum: Plugins
In reply to: [Plugin Organizer] Page doesnt accept settingsHm, I found this post where you explain why to set up filters when a page redirects to an endpoint (what the checkout page does). So I tried to set up a filter and I also checked the “Also affect children” checkbox on the checkout page settings, but still with no luck.
I think its probalbly the safest way to enable all plugins globally and to disable them selectively instead of doing it the other way around, right (although its more complicated to maintain)? I was not aware of these problems with endpoint redirects and stuff…However, are there any advantages/disadvantages regarding speed/performance when making the settings though selective plugin loading on the specific pages compared to setting up filters?
Forum: Plugins
In reply to: [Plugin Organizer] Page doesnt accept settingsOh no, I have to correct myself. As soon as I hit the recreate permalinks button, it’s all gone. The globally disabled plugins dont show up on checkout altough they are selectively enabled. 🙁
Until recently I had it exactly the other way around: all plugins globally enabled and selectively disabled, but it would be easier to handle if I could disable the majority globally and enable them selectively.
It works everywhere, but not on the checkout page.
Here are my general settings: https://ibb.co/bg2CNkRWhat else can I do?
- This reply was modified 4 years, 10 months ago by newshop.
Forum: Plugins
In reply to: [Plugin Organizer] Page doesnt accept settingsOk thank you, that was the right hint.
I had disabled “Woocommerce Germanized” globally, but enabled it selectively on the checkout page, but it did not work and also other plugins I had disabled globally and enabled on the checkout page did not show up. Enabling “Woocommerce Germanized” globally did the trick and made all of the other problematic plugins to show up too without the need to enable them globally.
Pretty weird, not sure if this is the normal behavior or if the plugin has a bug somewhere, but it seems to work now. Thanks again.@niklasinpsyde
Danke, wäre super wenn ihr euch das mal anschauen könntet, da Plugin Organizer ein sehr verbreitetes Plugin ist und es lang gedauert hat, bis ich herausgefunden habe, dass es da scheinbar diese Abhängigkeit gibt.Zu deiner Frage: Ja, ich nutze das Selective Plugin Loading, d.h. ich schalte PayPal Plus auf der Startseite selektiv aus. Hier hab ich mal einen Screenshot meiner Einstellungen hochgeladen:
https://ibb.co/bg2CNkRDanke und viele Grüße!