willzenstein
Forum Replies Created
-
Danke für die Info. Ich kann mir gut vorstellen, dass irgendwas anderes als das Germanized Plugin selbst verhindert, dass die Meldung richtig ausgeblendet wird. Ich bin nur nicht richtig motiviert das zu eruieren.
Für alle, die ein ähnliches Problem haben: in der DB in Tabelle <prefix>_wc_admin_notes nach “%gzd%” suchen wirft alle Benachrichtigungen von Germanized aus (im Anschluss auswählen und löschen). Oder als SQL statement:
SELECT * FROMwp_wc_admin_notesWHEREnameLIKE '%gzd%' ORDERBYnote_idDESCWir haben das selbe Problem. Es ist wirklich irritierend. Es funktionieren weder das “X” noch “Nicht jetzt”. Es hilft nur die Einträge direkt in der Datenbank zu löschen.
Thanks! The error mails dried up.
Thank you very much. The update indeed fixed the issue. I guess this will “land in the upstream” and will also be available in the regular updates via the WP plugin repository?
Super, die Info mit der term-relationship hat die Lösung gebracht. Für alle, die hier nach einer Lösung suchen, eine grobe Zusammenfassung, wie es funktioniert (sowohl simple wie variable Produkte):
- Lieferzeit ein mal manuell anlegen; Slug aus wp_terms auslesen
- Metafeld
_default_delivery_timebeim entsprechenden Produkt mit dem Slug befüllen bspw. mitupdate_post_meta( $product_id, '_default_delivery_time', $lieferzeit-slug ); - Verknüpfung von Produkt zu Lieferzeit mit Eintrag von Produkt ID und Lieferzeit-Slug in Tabelle wp_term_relationships bspw. mit
wp_set_object_terms( $product_id, $slug_id, 'product_delivery_time' );anlegen/updaten - gegebenenfalls beim Produkt Metafeld
_gzd_versionmit der aktuellen Version updaten
(Individuellen Prefix der Tabellen beachten & nach dem Update eventuelle Caches [Redis] leeren. Berücksichtigt nur default Lieferzeit, keine länderspezifischen.)
Vielen Dank nochmals für die Hilfe!
Wir haben die Version 3.15.5 installiert, was auch die aktuelle Version ist.
Ich habe gerade nochmals ein programmatisches Update gemacht. Es gibt für ein Produkt in wp_postmeta mit dem key “_default_delivery_time” einen Eintrag beim value mit einer Lieferzeit-slug, die auch in wp_terms bereits angelegt ist. Laut Ihrer Info müsste das reichen. Der Datenbank-Eintrag (sprich die richtige Lieferzeit) wird aber weder im Front- noch im Backend (Produkt editieren) angezeigt.
Haben Sie eine Idee woran es liegen könnte?
Danke nochmals!
Danke für die schnelle Antwort, aber was heißt “in neueren Versionen vorliegen”? Eine höhere meta_id in wp_postmeta?
Forum: Themes and Templates
In reply to: [AccessPress Lite] Length of excerptHi Artiss,
you can use the code if your theme or plugin is open source. If it is not you can use it too but it is really bad for your Karma 😉
Cheers, willzenstein
Forum: Themes and Templates
In reply to: [AccessPress Lite] Length of excerptI found a way. The length of an excerpt is set by function accesspresslite_excerpt(). The second parameter is the length of the excerpt. You can find it in the templates. However, the function does simply cut off after the amount of given characters although it might be in the middle of a word. To cut off after a word you could do the following.
Create a file called functions.custom.inc.php in your child theme directory and place the following custom function in it :
function custom_excerpt( $accesspresslite_content , $accesspresslite_letter_count ){ $accesspresslite_striped_content = strip_shortcodes($accesspresslite_content); $accesspresslite_striped_content = strip_tags($accesspresslite_striped_content); $string = $accesspresslite_striped_content; $your_desired_width = $accesspresslite_letter_count; $parts = preg_split('/([\s\n\r]+)/', $string, null, PREG_SPLIT_DELIM_CAPTURE); $parts_count = count($parts); $length = 0; $last_part = 0; for (; $last_part < $parts_count; ++$last_part) { $length += strlen($parts[$last_part]); if ($length > $your_desired_width) { break; } } $excerpt = implode(array_slice($parts, 0, $last_part)); if( strlen($accesspresslite_striped_content) > $your_desired_width){ $excerpt .= " ..."; } return $excerpt; }Include it in index-one.php, index.php or any other template file where you should need it via
require_once('functions.custom.inc.php');Replace all spots in the template files where accesspresslite_excerpt() is used with custom_excerpt()
Forum: Themes and Templates
In reply to: [AccessPress Lite] Length of excerptSorry, changing the function accesspresslite_excerpt() actually shows a result, but how could I adjust via a child theme so that I can still get the updates?