Home › Forums › WoodMart support forum › AJAX compatibility issues in shop loops using WOOF filters.
AJAX compatibility issues in shop loops using WOOF filters.
- This topic has 11 replies, 2 voices, and was last updated 3 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
August 9, 2021 at 9:37 am #311567
luviowebParticipantHello
We choose Woodmart for a project (a long time ago but never had time to really start working on the project). We choosed WOOF filter plugin because it’s the one that have the feature we wanted and also YITH wishlist premium also for the same reason. I saw several post about YITH wishlist integration and as of the latest it seems to be possible to replace the wishlist internal feature with this plugin, is that right ? Do you may be have a summary of how to do it ?Regarding WOOF filter it’s another story… it seems that many people here reported issue without reporting solutions.
For now we contacted the support of the plugin but he told us the issue should be in the theme.
The problem is that when we apply a filter to a shop page using the AJAX mode of the plugin (it seems to work well when we disable the AJAX mode but the user experience is not good) first the result display 2 times the products (one time using the template of the theme and the second time using the default WC template) and then again the products without filtering are not cleared at the end of the page.
I give you in private content the message we have with the plugins’ support.
Would be really nice if you could figure out out we could find a workaround as we really would like to use both, your theme and that plugin.
Thanks a lot in advance.August 9, 2021 at 9:48 am #311574
Artem TemosKeymasterHello,
Thank you so much for purchasing our theme and contacting our support center.
Yes, you can disable our theme wishlist completely and install the YITH wishlist plugin. But note that this plugin has the button on the single product page only. It doesn’t provide the button on the shop page and you can’t show the compare icon in the header. It is possible to add the compare page link to the menu only.
As for the filters, please, send us your admin and FTP access so we can check what is wrong. Also, turn off all third-party plugins temporarily.
Kind Regards
XTemos StudioAugust 10, 2021 at 11:44 am #311822
luviowebParticipantPlease find in private content the information.
Thanks again for your help.August 10, 2021 at 1:41 pm #311860
Artem TemosKeymasterThis FTP seems to be wrong and we can’t edit any files https://take.ms/upU1q
August 10, 2021 at 2:23 pm #311866
luviowebParticipantHello
Strange, I asked the hostmaster to fix this, in the meanwhile I set the files and folder in 774 and it seems to work as the files are writeable but with an error (if you ignore the error it writes the file anyway). Sorry for this problem, we are also actually testing the hosting using open litespeed and there are some fix to do …August 11, 2021 at 6:20 am #311954
Artem TemosKeymasterIt looks like your website now is totally broken because of the wrong permissions for static files. Please, resolve this problem first with your hosting provider https://take.ms/rOy4W
August 11, 2021 at 6:38 am #311963
luviowebParticipantHello
Ok I set 777 for the whole theme folder now.August 11, 2021 at 7:40 am #311980
Artem TemosKeymasterTry to do the following to fix the problem:
1. Edit the file
woodmart/woocommerce/archive-product.php
and remove the following code https://monosnap.com/file/pqKQDOAKwES62q2hRQV2yJ2vDJdnSO2. Edit the file
woodmart/inc/integrations/woocommerce/functions.php
and the following code https://take.ms/j8DHq<?php /** * Hook: woocommerce_before_shop_loop. * * @hooked wc_print_notices - 10 * @hooked woocommerce_result_count - 20 * @hooked woocommerce_catalog_ordering - 30 */ do_action( 'woocommerce_before_shop_loop' ); ?>
August 11, 2021 at 10:32 am #312018
luviowebParticipantHello
Thank you, it seems to work fine now.
How could I do to fix this in a way that updates of the theme will not remove the fix ?
Will it be included in the next update or do I have to put the concerned functions into child-themes ? and if yes how to do it in the cleanest way ?Thanks again.
August 11, 2021 at 11:15 am #312030
Artem TemosKeymasterHello,
You can copy the whole file
woodmart/woocommerce/archive-product.php
to the child theme as well as the function fromwoodmart/inc/integrations/woocommerce/functions.php
calledwoodmart_woocommerce_main_loop
. You need to copy it to the functions.php file in the child theme.Kind Regards
September 18, 2021 at 12:34 pm #319486
luviowebParticipantHello
I m back on the project and there is still a problem with your solution. The thing is that as soon as a filter was applied (that means also when it’s cleared) the products display loop seems to use the default woocommerce template instead of the custom one of the theme, the (hover buttons, and the description are not more displayed).Attachments:
You must be logged in to view attached files.September 20, 2021 at 6:18 am #319670
Artem TemosKeymasterHi,
This hover effect requires a small JS code to be executed right after the AJAX is complete. Ask your plugin developers where you can add such custom JS code. Here is a snippet for this
woodmartThemeModule.productHover();
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register