stylebutton
Verfasste Forenbeiträge
-
Forum: WooCommerce
Als Antwort auf: Lieferzeiten individuell anpassenDanke für den Hinweis
Forum: WooCommerce
Als Antwort auf: Lieferzeiten individuell anpassenUnter „Produkte“ gibt es den Punkt „Lieferzeiten“. Dort die gewünschten Varianten anlegen.
Im Produkt unter Versand dann die entsprechende Lieferzeit auswählen. Bei mir sind es normalerweise 3 Arbeitstage, bei manchen wie dem im Link aber auch 4 Tage:
https://discount-buttons.de/ovale-buttons-supermagnet/Forum: WooCommerce
Als Antwort auf: Produkte auf spezifischer Kategorieseite ausblendenHier die Lösung:
/** Entfernt Unterkategorien aus Kategorie Buttons **/ add_filter( 'get_terms', 'get_subcategory_terms', 10, 3 ); function get_subcategory_terms( $terms, $taxonomies, $args ) { $new_terms = array(); // if a product category and on the shop page if ( in_array( 'product_cat', $taxonomies ) && ! is_admin() && is_product_category( 'buttons' ) ) { foreach ( $terms as $key => $term ) { if ( ! in_array( $term->slug, array( 'slug' ) ) ) { // slug -> Sub categories to hide $new_terms[] = $term; } } $terms = $new_terms; } return $terms; } /** * Exclude products from a particular category on the shop page, but not from sub categories */ add_action( 'woocommerce_product_query', 'hideproduct_pre_get_posts_query' ); function hideproduct_pre_get_posts_query( $q ) { if (!is_admin() && is_product_category( 'slug' ) && is_main_query()) { // hide only at category slug $tax_query = (array) $q->get( 'tax_query' ); $tax_query[] = array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => array( 'slug' ), // Don't display products from this category 'operator' => 'NOT IN' ); } $q->set( 'tax_query', $tax_query ); }
- Diese Antwort wurde geändert vor 5 Jahren, 1 Monat von stylebutton.
Forum: WooCommerce
Als Antwort auf: Lieferzeiten individuell anpassenHast Du einen Link? Ich kann für jedes Produkt eine spezifische Lieferzeit angeben…
Forum: WooCommerce
Als Antwort auf: Dringend WooCommerce KategorienIch glaube, so richtig hat Dein Problem niemand verstanden. Willst Du ein Produkt 2 Kategorien zuweisen?
Forum: WooCommerce
Als Antwort auf: WooCommerce Produkbeschreibung unter BildDie Sache wird nicht von der functions.php bestimmt, sondern vom verwendeten Template. Du musst dafür das Template der Produktseite bearbeiten.
Forum: WooCommerce
Als Antwort auf: Produkte auf spezifischer Kategorieseite ausblendenDanke für Deine Anmerkung. 🙂 Das ‚is_admin()‘ habe ich mal auskommentiert.
Die Funktion entfernt allerdings nur die per Slug definierten Kategorien. Insofern sind die Produkte trotzdem zu sehen…Forum: WooCommerce
Als Antwort auf: Barzahlung bei Abholung vor Ort ohne RechnungPasse einfach den Text an. Z.B. „Im Falle des Versands bitten wir um Überweisung…
Forum: WooCommerce
Als Antwort auf: Produktebilder zu grossDas hat sicherlich mit Deinem Template zu tun. Nutzt Du eine customized Produktseite?
Das Bild selber ist ja nur 300 x 400 px groß und wird per CSS an das umgebende DIV angepasst, welches 48% der Seitenbreite einnimmt. Wenn Du die 48% entfernst, klappt es auch mit der Bildgröße 🙂