Title: Bug adding product
Last modified: November 12, 2021

---

# Bug adding product

 *  [Lidia](https://wordpress.org/support/users/lydiamunoz/)
 * (@lydiamunoz)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/bug-adding-product/)
 * Hi,
    We are using the YITH WooCommerce Wishlist plugin and we see that your template
   has an override on this plugin in /wp-content/themes/negan/framework/classes/
   class-woocommerce.php.
 * The add to wishlist button that appears in the product view shows an icon:
 * [https://trello.com/1/cards/6176d7188d1f9f276568cbd3/attachments/618d4a8357e6563b08e70896/download/icon_.png](https://trello.com/1/cards/6176d7188d1f9f276568cbd3/attachments/618d4a8357e6563b08e70896/download/icon_.png)
 * And this icon does not add the product to the wish list because the url of this
   link does not include the nonce parameter of WordPress. We have written the modification
   in the class-woocommerce.php file so that it works well but in case of updating
   the template we would lose the change.
 * Is there a way we can override this plugin on the child template so that when
   updating the template we don’t lose the change?
    Thanks.

Viewing 1 replies (of 1 total)

 *  [Héctor.G](https://wordpress.org/support/users/hectorgc/)
 * (@hectorgc)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/bug-adding-product/#post-15062634)
 * Hello there,
    Hope you are doing well!
 * If there is an incompatibility with our plugin, our templates can be overridden
   by placing them in the theme in a specific way so no changes will be lost when
   updating the plugin, but you are asking me to maintain a change from your theme
   files.
 * You can always create a child theme, and store there the changes, but is not 
   related to our plugin since you have changed the files of the theme.
 * Have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘Bug adding product’ is closed to new replies.

 * ![](https://ps.w.org/yith-woocommerce-wishlist/assets/icon-128x128.gif?rev=3129302)
 * [YITH WooCommerce Wishlist](https://wordpress.org/plugins/yith-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Héctor.G](https://wordpress.org/support/users/hectorgc/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/bug-adding-product/#post-15062634)
 * Status: not resolved