Support » Plugin: YITH WooCommerce Wishlist » “data-product-id” and “data-original-product-id” different

  • Why would I be getting two different IDs in this situation? For example:

    <a href="?remove_from_wishlist=4708" rel="nofollow" data-item-id="33" data-product-id="4708" data-original-product-id="4707" class="delete_item button alt" data-title="Remove from list">
       <i class="yith-wcwl-icon fa fa-heart" aria-hidden="true"></i>
       Remove from list

    The actual product ID is 4707 not 4708, where is the plugin generating that ID 4708 ID from? If I manually edit a product edit URL in the admin to use that ID it says I do not have permission to edit posts of this type. This issue also only happens on what seems to be about 50% of the products I test.

    I need to pull in the correct ID in a custom wishlist template but the $item variable has the wrong ID attached in these cases, so it fails.

    Thoroughly confused as to why this is an unable to replicate on demand.


Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter al8t3


    Nvm I’ve got it – it’s happening on variable products and the ID is that of the variation, which explains the issue.

    Plugin Support Héctor.G


    Hello there,

    Yes, this is because variable products have variations that have a unique ID, but maintain the one of “the father” (the variable product).

    Have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“data-product-id” and “data-original-product-id” different’ is closed to new replies.