• Video: https://www.screencast.com/t/CfyaO6M70

    I have tried different themes, and tried disabling plugins but am having the same issue. It seems the first item does NOT have a form around it. This means, like displayed in the video, you can click “Add to Cart” and it does nothing. All other items, other than the first can be added to cart.

    Inspect Element of First Button

    Inspect Element of Second Button

    I have tried both Avada and WPAstra but neither work with it.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there

    Thank you for your report, but I’m afraid the problem is definitely with the themes that you tested

    Wishlist uses loop Add to Cart button in its templates
    Default version of this button can be found in wp-content/plugins/woocommerce/templates/loop/add-to-cart.php template; as you can see from this template, button is just an anchor tag, and doesn’t contain any form tag

    My best guess is that the themes that you tested overrides default loop/add-to-cart.php template, maybe to add quantity field
    Doing so, they also add a form tag inside the template, that will break wishlist-view template

    Indeed we wrap the entire wishlist inside a form tag, and you cannot have nested form tags; your browser tries to compose this HTML error, and you won’t see any error on the final page, but the unexpected behaviour is the result of this problem
    I suggest you to test plugin with a Twenty theme, in order to see how it should behave

    Anyway, I also have a suggestion to solve the problem with the themes you tested
    Override wishlist-view-header.php and wishlist-view-footer.php templates (copy them from wp-content/plugins/yith-woocommerce-wishlist/templates/ and place it under wp-content/themes/<your theme or child directory>/woocommerce) and then edit these brand new files, removing reference to form tags
    This should be enough to make everything work properly

Viewing 1 replies (of 1 total)
  • The topic ‘YITH Wish List Not Working’ is closed to new replies.