Home › Forums › WoodMart support forum › PureClarity Wishlist icon issues after the last theme update
PureClarity Wishlist icon issues after the last theme update
- This topic has 17 replies, 2 voices, and was last updated 2 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
October 28, 2022 at 12:38 pm #417110
covetiParticipantWe are using PureClarity for recommended products on the website. On the PureClarity carousel, the wishlist icons used to work, but now they are not working.
Please check the below video to fully understand the issue:
https://www.loom.com/share/071be05c661f4981bd7f36c3f757c3d8
We contacted Pureclarity and they said the wishlist icon was designed to be part of the theme and we need to contact you to fix it as it happened after the theme update.
The code we use on PureClarity<div class="wd-wishlist-btn wd-action-btn wd-style-icon wd-wishlist-icon"> <a class="wd-tltp wd-tooltip-inited" href="https://coveti.com/wishlist/" data-key="<?php echo esc_attr( wp_create_nonce( 'woodmart-wishlist-add' ) ); ?>" data-product-id="{{this.Id}}" rel="nofollow" data-added-text="Browse Wishlist" onmousedown="{{this.clickEvt}}"> <span class="wd-tooltip-label">Wishlist</span> <span>Wishlist</span> </a> </div>
The issue we have is the
data-key="<?php echo esc_attr( wp_create_nonce( 'woodmart-wishlist-add' ) ); ?>"
The code doesn’t get the data key that is generated by your theme as per your article here: https://xtemos.com/forums/topic/wishlist-button-3/October 28, 2022 at 3:09 pm #417160
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and switch to the parent theme so we can check it? Also, send us a direct link where we can test this issue on your website.
Thank you in advance
October 28, 2022 at 9:29 pm #417245
covetiParticipantYou will find access to our staging site on the private content.
On our staging site, the PureClarity Wishlist icon works fine: https://coveti.com/1661345658274/
It is working because the theme on our staging site is the old version, but once you update it the wishlist won’t work.
You can deactivate all the plugins on our staging site and go back to the parent theme as you like.
Please note that our staging site has no images except for the PureClarity products. The product in question is the one that has images which all the products on the hime page: https://coveti.com/1661345658274/.October 31, 2022 at 10:08 am #417518
Artem TemosKeymasterHello,
Please, keep all the external plugins temporarily turned off on your staging website. Also, update the theme to the latest version first.
Kind Regards
November 1, 2022 at 12:39 pm #417835
covetiParticipantWe did deactivate all the plugins and updated the them, the issue is showing now after we updated the parent theme
November 1, 2022 at 12:47 pm #417839
Artem TemosKeymasterWe don’t see a problem adding to wishlists products on the shop page. Could you please record a video with a problem now?
Also, please, fix the product images issue because your website can’t be loaded properly and this may affect some scripts.Kind Regards
November 3, 2022 at 1:17 pm #418348
covetiParticipantHere is the link for the issue: https://www.loom.com/share/e81f8e8bb5b7404a9be3a9594bceff4a
Regarding the images the website is too big over than 90GB that is why we cannot duplicate the images to be loaded in a staging site
Please note that the wishlist was working before we update the theme.
November 3, 2022 at 3:18 pm #418396
Artem TemosKeymasterThe section on the screen is not a part of the theme. It has a custom wishlist button and needs a custom JS script to make it work. Maybe you had one before the update that is incompatible with the new version. In this case, you need to fix this because repairing any third-party scripts unrelated to our theme is out of our theme support scope.
Kind Regards
November 9, 2022 at 11:35 am #419754
covetiParticipantThat is the JS code we use, it used to work with the old version of the theme.
<script type='text/javascript'> (function(id){ let wishlistElements = document.getElementsByClassName('wd-tltp wd-tooltip-inited'); for(var i = 0; i < (wishlistElements.length < 50 ? wishlistElements.length : 50); ++i){ let el = wishlistElements[i]; let key = el.getAttribute('data-key'); if(key){ let recElList = document.getElementsByClassName('pc-recommender-{{uniqueId}}'); if(recElList && recElList.length > 0){ let recEl = recElList[0]; let recWishlist = recEl.querySelector('.wd-tltp.wd-tooltip-inited'); if(recWishlist && recWishlist.length > 0){ for(var j = 0; j < recWishlist.length; ++j){ recWishlist[j].setAttribute('data-key', key); } } } break; } } })('.pc-recommender-{{uniqueId}}');
Please help us make the code compatible with the new version of the theme
November 9, 2022 at 1:05 pm #419781
Artem TemosKeymasterHello,
This code is not a part of our theme. Fixing code made by 3rd-party developers is out of our theme support scope, unfortunately.
Kind Regards
November 14, 2022 at 1:35 pm #420919
covetiParticipantYou guys must be kidding. You made an update with lots of issues and refused to help.
You made our website a mess because of your update, and you are not helping.
-The price filter is not showing properly on the shop page
-The social media icons are shown vertically in the footer.
-The wishlist is not working anymore in Pure Clarity.November 14, 2022 at 1:40 pm #420921
Artem TemosKeymasterHello,
Sorry, but you didn’t mention these issues earlier. Please, give us more details about them and we will do our best to help you.
As for the wishlist problem, it is caused by your custom code that is no longer compatible with our theme. You or your developer need to review and fix it. Fixing additional customization is out of Envato Theme Support’s scope. You can read more in the article https://themeforest.net/page/item_support_policyKind Regards
November 15, 2022 at 11:31 am #421194
covetiParticipantArtem Temos you are not helping; please assign the case to someone else or to your manager and ask him to read what I said well. I did explain everything in my comments.
November 15, 2022 at 11:34 am #421196
Artem TemosKeymasterHello,
But you didn’t write anything about social icons and price filter on this topic. Are you talking about a different topic? Please, explain these two issues and I will help you.
Kind Regards
November 15, 2022 at 3:49 pm #421293
covetiParticipantI did said that:
-The price filter is not showing properly on the shop page
-The social media icons are shown vertically in the footer.What else do you need, it is clear as the sun.
November 15, 2022 at 4:09 pm #421300
Artem TemosKeymasterHello,
1. But it is showing on your website shop page at the moment https://gyazo.com/b8817b7957db5be2181a5201f2732c75
2. We don’t see social media from our theme on your website. Please, send us a screenshot.
Kind Regards
November 15, 2022 at 4:41 pm #421306
covetiParticipantThis is how it shows, olease check the attached file
Attachments:
You must be logged in to view attached files.November 16, 2022 at 10:04 am #421483
Artem TemosKeymasterYou are using the wrong widget for this. You added a Gutenberg block from WooCommerce but you need to use a classic widget instead like on the staging website that we sent you a screenshot from. It is not related to our theme update.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register