Title: Issue with the plugin
Last modified: March 29, 2019

---

# Issue with the plugin

 *  Resolved [nickgin](https://wordpress.org/support/users/nickgin/)
 * (@nickgin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/issue-with-the-plugin-7/)
 * Hello Sir,
 * Congratulations for your plugin!
    I am using Enfold theme and I need your help.
   I have the following issues: When click to add to cart button, the mini cart 
   displays “Product” added to cart and not the description of the product.
 * See the screenshot: [https://prnt.sc/n4pjon](https://prnt.sc/n4pjon)
 * and also the following function is ignored:
 * /* Display “product already in cart” instead of “add to cart” button */
    add_filter(‘
   woocommerce_product_single_add_to_cart_text’, ‘woo_custom_cart_button_text’ );
   function woo_custom_cart_button_text() { global $woocommerce; foreach($woocommerce-
   >cart->get_cart() as $cart_item_key => $values ) { $_product = $values[‘data’];
 *  if( get_the_ID() == $_product->id ) {
    return __(‘Ήδη στο καλάθι. Θές άλλο;’,‘
   woocommerce’); } } return __(‘Add to cart’, ‘woocommerce’); }
 * add_filter( ‘add_to_cart_text’, ‘woo_archive_custom_cart_button_text’ );
    function
   woo_archive_custom_cart_button_text() { global $woocommerce; foreach($woocommerce-
   >cart->get_cart() as $cart_item_key => $values ) { $_product = $values[‘data’];
   if( get_the_ID() == $_product->id ) { return __(‘Already in cart’, ‘woocommerce’);}}
   return __(‘Add to cart’, ‘woocommerce’); }
 * and the following jquery is ignored:
 *  //display the cart for a short moment on page load if a product was added but
   no notice was delivered (eg template builder page)
    if (jQuery(‘.av-display-cart-
   on-load’).length && jQuery(‘.woocommerce-message’).length === 0) { var dropdown
   = jQuery(‘.cart_dropdown’); setTimeout( function(){dropdown.trigger(‘mouseenter’);},
   500); setTimeout( function(){dropdown.trigger(‘mouseleave’); }, 30000); } }
 * I am looking forward to your precious support.
 * Best regards,
    Nick

Viewing 1 replies (of 1 total)

 *  Plugin Author [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * (@quadlayers)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/issue-with-the-plugin-7/#post-11375899)
 * hello nick
 * Do this hooks work when the plugin is deactivated?
 * can you show a example video, with and without the ajax add to cart activated?

Viewing 1 replies (of 1 total)

The topic ‘Issue with the plugin’ is closed to new replies.

 * ![](https://ps.w.org/woo-ajax-add-to-cart/assets/icon-256x256.jpg?rev=2911672)
 * [Ajax add to cart for WooCommerce](https://wordpress.org/plugins/woo-ajax-add-to-cart/)
 * [Support Threads](https://wordpress.org/support/plugin/woo-ajax-add-to-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-ajax-add-to-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-ajax-add-to-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-ajax-add-to-cart/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [quadlayers](https://wordpress.org/support/users/quadlayers/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/issue-with-the-plugin-7/#post-11375899)
 * Status: resolved