• Resolved ozzichek

    (@ozzichek)


    Hey! Thanks for your wonderful plugin. Can you please tell me – how I can add an article under the heading of the product?

    • This topic was modified 3 years, 5 months ago by ozzichek.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Antonio La Rocca

    (@therock130)

    Hi there

    thank you, we’re very proud of it ??
    Regarding your question, could you please explain me better what you want to obtain?
    Do you want to show product’s sku under title, inside wishlist table?

    I’m not sure of what you mean when you talk about “article” and “heading of the product”, that’s the reason why I ask
    Maybe you would find easier to explain attaching some screenshots ??

    Thread Starter ozzichek

    (@ozzichek)

    “Do you want to show product’s sku under title, inside wishlist table?”

    Yes you are right ??

    Plugin Support Antonio La Rocca

    (@therock130)

    Please, try to add the following code at the end of functions.php file of your theme or child theme

    add_action( 'yith_wcwl_table_after_product_name', function( $item ) {
    	$product = $item->get_product();
    	$sku = $product->get_sku();
    
    	if ( ! $sku ) {
    		return;
    	}
    
    	?>
    	<small><?php echo 'Sku: ' . $sku; ?></small>
    	<?php
    }, 10, 1 );
    
    Thread Starter ozzichek

    (@ozzichek)

    Thank you very much.

    Plugin Support Antonio La Rocca

    (@therock130)

    You’re welcome!

    We are doing our best to improve our plugins. Our target is to develop and release the best free plugins for WooCommerce, but to achieve this we need your help. Please leave a good review to support us and help our growth

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add SKU’ is closed to new replies.