Support » WooCommerce » Woocommerce variables Produkt wird nicht zum Warenkorb hinzugefügt

  • Hallo zusammen.

    habe ein Custom Theme wo ich das woocommerce plugin installiert habe. Wenn ich ein variables Produkt (T-Shirt mit Größe & Farbe) hinzufügen möchte kommt im Template nur der Hinweis -> „Bitte wähle unter tshirt Produktoptionen aus“ obwohl ich alles ausgewählt habe.
    Bei normal Produkten ohne Optionen funktioniert alles.

    Im Admin sollten die Produkte korrekt mit den Eigenschaften und Varianten angelegt sein.

    In der Console werden keine JS Erros angezeigt.

    WP-Version ist aktuell

    Installierte Plugins:
    Acf Pro 5.8.7
    Classic Editor 1.6.2
    WooCommerce 5.6.0

    woocommerce Zeug in meiner functions.php

    function mytheme_add_woocommerce_support() {
    	add_theme_support( 'woocommerce' );
    }
    add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );
    
    // display quantity on shop page
    add_filter( 'woocommerce_loop_add_to_cart_link', 'quantity_inputs_for_woocommerce_loop_add_to_cart_link', 10, 2 );
    function quantity_inputs_for_woocommerce_loop_add_to_cart_link( $html, $product ) {
    	if ( $product && $product->is_type( 'simple' ) && $product->is_purchasable() && $product->is_in_stock() && ! $product->is_sold_individually() ) {
    		$html = '<form action="' . esc_url( $product->add_to_cart_url() ) . '" class="cart" method="post" enctype="multipart/form-data">';
    		$html .= woocommerce_quantity_input( array(), $product, false );
    		$html .= '<button type="submit" class="bg-brown text-white w-full p-2 font-bold mt-4">' . esc_html( $product->add_to_cart_text() ) . '</button>';
    		$html .= '</form>';
    	}
    	return $html;
    }

    vielleicht hat hier jemand einen Plan was das Problem ist.


    Moderationshinweis: In Forum WooCommerce verschoben.

  • Das Thema „Woocommerce variables Produkt wird nicht zum Warenkorb hinzugefügt“ ist für neue Antworten geschlossen.