“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 </a>
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.
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
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.