Make product grid wishlist button ajax

Home Forums eStore Free Make product grid wishlist button ajax

Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  smohannagaraj 2 days, 22 hours ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1823007

    smohannagaraj
    Participant

    As when clicking to add cart a new button is added, i want also for add to wishlist.
    On click on heart icon, it should turn to view icon with wishlist link.

    It works great in single products page.
    But I am talking about the front page : Product grid widget items.
    There is a heart button. I want to make it to ajax like the one in single products page.

    Also in all your demo pages, There was a problem with the footer in single product page. Check it and fix it.
    Thankyou

    #1823124

    Rajesh
    Moderator

    Hi @smohannagaraj,

    The feature you mentioned will require a lot of code customization and can’t be covered from this forum? Also, as the wishlist is showing from the plugin, could you ask in their support forum for a better solution?
    We really appreciate you pointing out the issue in the demo. We will check it and fix it.

    Thanks.

    #1823133

    smohannagaraj
    Participant

    inc/widgets/class-estore-woocommerce-product-grid.php
    line 238,274:

    Replace with:
    woocommerce/add-to-wishlist-button.php
    ” rel=”nofollow” data-product-id=”<?php echo $product_id ?>” data-product-type=”<?php echo $product_type?>” class=”<?php echo $link_classes ?>” >
    ” class=”ajax-loading” alt=”loading” width=”16″ height=”16″ style=”visibility:hidden” />

    There are some modifications needed for variables.

    I know I can do this. But when I update, all this things will go away. Also By updating this everyone get this new feature.

    #1823134

    smohannagaraj
    Participant

    Or simply use the shortcode :
    https://docs.yithemes.com/yith-woocommerce-wishlist/free-settings/shortcodes/

    #1823178

    smohannagaraj
    Participant

    Happy to see demo site working correctly.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.