This topic has 16 replies, 3 voices, and was last updated 9 months ago ago by Luca Rossi
How to make Wishlist work via ajax loading, now the urls are generated, Screaming Frog sees thousands of pages generated.
Hello, Goostaf,
Thank you for reaching out to us with your query regarding the Wishlist functionality on your website.
Please watch this video – https://youtu.be/ZyjZ-vCx0pE
Try to change the Dynamic wishlist page to a static one using our shortcode.
If you have any additional questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.
Best Regards,
8Theme’s Team
We put a static page, still when adding and deleting pages are generated on the screenshot you can see how many there are. On large sites it works through ajax as far as I know and there are no such problems
Hello, Goostaf,
Thank you for getting in touch with us.
Ajax can be disabled by adding the next code to your child-theme/functions.php
add_filter('xstore_wishlist_mini_content_ajax', '__return_false');
add_filter('xstore_compare_mini_content_ajax', '__return_false');
We hope this information is helpful.
Best Regards,
8Theme’s Team
Do I understand correctly that the Built-In Wishlist tool now works via Ajax? I thought that it is not and that’s why pages like /add_to_wishlist=34343 are generated, it was explained to me that because just e is used here Favorites via Ajax it happens, the site should not generate thousands of such pages. Here for example https://www.ebay.com/ there is no such thing, loading favorites works differently
Hello, Goostaf,
Do you prefer us to create some solution that will give a possibility to modify wishlist/compare links by removing those args like add-to-wishlist=ID on products ?
For example:
https://yourwebsite.com/wishlist-page/?add_to_wishlist=2229 => https://yourwebsite.com/wishlist-page/
Please, add the next code snippet to your child-theme/functions.php -> https://prnt.sc/6IWel-v4FL09
add_filter('xstore_compare_product_query_args', '__return_false');
add_filter('xstore_wishlist_product_query_args', '__return_false');
Best Regards,
8Theme’s Team
I apologize, still our specialist writes that there shouldn’t be a url, it does:
The ID and URL (as in your case) are not the same
The ID is a JS element, and the URL is a link that it is desirable to remove from favorites
Is there any way to correct this? It may affect search engines…
Hello, Goostaf,
1. We kindly request that you provide a detailed description of the desired outcome for the project. This will enable us to understand your expectations and tailor our services to meet your specific needs.
2. Additionally, please furnish us with temporary wp-admin and FTP access credentials. This will allow our team to proceed with the necessary evaluations and implementations in a secure and efficient manner.
We appreciate your cooperation and look forward to your prompt response.
Best Regards,
8Theme’s Team
Hello, I apologize for procrastinating with answers, the programmer sent me an example of the correct implementation of Favorites (in hidden content threw a link), I see that the site is on WordPress too, but what plugin does it, I do not know, but the site shows that no urls are not generated, the Favorite button goes as an id and not a url for each product, can you do this?
I don’t really understand it myself, but I see that when you hover over the heart you get u
Hello, Goostaf,
Upon reviewing your website, it appears that you have successfully achieved the desired outcome as evidenced by the following screenshots: https://prnt.sc/zTy_q8yCX3kX https://prnt.sc/ECzGtQBozR_q
Best Regards,
8Theme’s Team
I’ll try to formulate it differently. There should be no links when hovering, as in the screenshot, these urls are all hanging in the code, 200 repetitions https://meshar.ru/wishlist /” (screenshot), I threw off an example of how it should work, is it possible to do as an example, can you tell me what kind of plugin is there?
Dear Goostaf,
We hope this message finds you well.
We regret to inform you that our current system does not provide hooks to remove the wishlist page URL from the “Add to Wishlist” button. To achieve the desired functionality, a direct modification to the ET-Core-Plugin is necessary.
Please proceed with the following steps:
1. Navigate to the file located at: /wp-content/plugins/et-core-plugin/packages/xstore-wishlist/xstore-wishlist.php
2. Scroll to line 1326.
3. Locate the following snippet of code:
<a href="<?php echo esc_url($href); ?>" <?php echo implode(' ', $attributes_rendered); ?>>
4. Replace it with:
<a href="#" <?php echo implode(' ', $attributes_rendered); ?>>
We trust that this adjustment will address your requirements. Should you have any further questions or require additional assistance, please do not hesitate to reach out.
Warm regards,
The 8Theme Team
Now it has just been replaced with a non-existent link, unfortunately this is not the case. There should be no links at all. I do not know what kind of plugin is used here, but here the Favorites work as they should: https://nedvipro.ru / , it’s a pity that we can’t use your tool, we’ll look for a plugin then
Dear Goostaf,
We regret to inform you that substituting the ‘a’ tag with the ‘button’ tag is not feasible in this instance. Such a modification has the potential to disrupt the proper functioning of the wishlist JavaScript.
Best Regards,
The 8Theme Team
Do you know the name of the plugin that is used for these purposes in the example https://nedvipro.ru / ?
Dear Goostaf,
We would like to suggest that you consider the following wishlist plugin for your needs: https://wpfactory.com/item/wish-list-woocommerce/
However, please be advised that we are unable to guarantee its compatibility with our XStore theme. We strongly recommend conducting thorough testing prior to making any purchase.
Kind regards,
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up