“Added to wishlist” message missing default name
-
I believe this to be a bug. When clicked any “add to wishlist” button a message appears saying:
“Product X” has been added to your “” list!
The default name of the wishlists isn’t being included and should be within the “”. This is the bug.
This is on a fresh install of WP v6.7.1 and Yith Wishlist v4.0.1 using Storefront theme.
If on the shop page you add multiple products to a wishlist then each will query the /wp-json/yith/wishlist/v1/items endpoint. Eventually, after a bit of time (20 – 40 seconds), if you add another product a new endpoint is queried: /wp-json/yith/wishlist/v1/lists/. After this the default wishlist name correctly populates the message above.
I have a feeling the javascript doesn’t know what the default wishlist name is until it has queried the users’ list. For guest users the list isn’t returned in the first request; or any request until 20-40 seconds has passed. I see the default_wishlist_name variable is included in the inline javascript variable yithWcwlAddToWishlist but seemingly isn’t being used.
Thank you in advance
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.