• Hello,

    Great plugin! The only issue is that it doesn’t play well with Timber. When you click to add to wishlist, it only adds the correct product as expected. But it show’s that every product has been added (all the hearts are filled in). This is due to duplicate data-id’s.

    I’ve found a super easy fix for this (without affecting anyone other sites) is to change line 95 in file includes/class-alg-wc-wish-list-toggle-btn.php

    $item_id = get_the_ID();

    to

    $item_id = $product->get_id();

    and obviously would therefore need to move global $product; up before that.

    I can see it’s used for variable products anyway on line 100.

    Hope that’s helpful ??

    Lorna

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Doesn’t support Timber (easy fix)’ is closed to new replies.