• katpetuk

    (@katpetuk)


    I already added the SKU to the wishlist page with some code I found online added to the functions.php but is it also possible to add the product’s “short description” or other attributes (simple products) to show on the wishlist page?

Viewing 1 replies (of 1 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    In order to achieve what you need, add the following code in the functions.php file of your active child theme:

    if ( ! function_exists( 'yith_wcwl_table_after_product_name_custom' ) ) {
    	function yith_wcwl_table_after_product_name_custom( $item ) {
    		global $product;
    		$product = $item->get_product();
    		echo '<p>' . $product->get_short_description() . '</p>';
    	}
    	add_action( 'yith_wcwl_table_after_product_name', 'yith_wcwl_table_after_product_name_custom', 99, 2 );
    }

    If you want to add more elements, such as new columns, you will have to override the wishlist-view.php template and edit it to your liking.

    Let us know any news.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Add Short Description to the Wishlist page’ is closed to new replies.