Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there!
    Thank you for contacting us.

    To achieve that you will need to customize the following file:

    \wp-content\plugins\yith-woocommerce-wishlist\templates\wishlist-view.php

    You can overwrite it by pasting it in the following path:

    \wp-content\themes\your_active_theme\woocommerce\

    Once done, the plugin will recognize the file inside your theme over the one on the plugin, that way, you won’t lose the changes due to a plugin update.
    then, you will need to create the changes you want.

    Please, let us know any news.
    Have a nice day!

    Thread Starter huang0301

    (@huang0301)

    Thank you for your reply.

    It’s difficult for me to customize file,because I don’t have a lot of knowledge of html or php.

    Does any filter to make it work?

    I just like to show categories of products on wishlist.

    example:

    product:

    the red shoes

    price:

    $100

    category:

    shoes

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    At the moment we do not have a filter for that.

    First, you must add a new column in the template, respecting the order you mention, like this:

    		<th class="product-category">
    				<span class="nobr">
    					<?php
    					echo esc_html( __( 'Product category', 'yith-woocommerce-wishlist' ), $wishlist );
    					?>
    				</span>
    		</th>

    Then, in the tour of each item in the wishlist, also respecting the order that you have commented, you must add a container to show the categories of the product, like this:

    <td class="product-category">
    <?php 
    /* your code */
    ?>
    </td>

    Check it out and tell us any doubt, please.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to show category of product on wishlist?’ is closed to new replies.