Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #735434

    Hallo, wie kann ich im Warenkorb die Artikelnummer anzeigen lassen?

    Vielen Dank im Voraus!

    #737108

    Hey Luisgasser,

    Thank you for using Enfold.

    What do you mean by “item number”? Could you please provide a screenshot? If there are products with more than one item, the number of items should display below the product title and beside the product price. Example:

    Example Product 
    2 × £9.99
    

    Best regards,
    Ismael

    #737171

    Hi Ismael,
    i mean this the product number – please see screenshot

    #739229

    Hi!

    I’m sorry but I don’t understand the language. Is that the SKU field? If it is, please add this snippet in the functions.php file:

    add_filter( 'woocommerce_cart_item_name', 'woocommerce_cart_item_name_sku_in_cart', 20, 3);
    function woocommerce_cart_item_name_sku_in_cart( $title, $cart_item, $cart_item_key ) {
    	$sku = $cart_item['data']->get_sku();
    	return $sku ? $title . sprintf(" (SKU: %s)", $sku) : $title;
    }

    You might need to remove all items in the cart, refresh the page then add them again.

    Cheers!
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.