Add-to-cart/Waitlist disappears when changing sort order
- leomoonParticipant5 years, 4 months ago #12239
On my site, https://test.antikvarijatknjiga.hr, I use Woocommerce Waitlist plugin which gives ability to place oneself on a waitlist for the product.
This works well when the archive page is generated after initial search, but, when changing sort order, the add-to-waitlist button disappears. Regular add-to-cart for products that are in-stock works fine.
For example, https://test.antikvarijatknjiga.hr/?s=krle&post_type=product
That archive page looks good, it has “Pridruzite se listi cekanja” button in case product is out of stock. But, if we switch to in-stock first, then this option disappears.
All this works fine with WPSOLR disabled.
leomoonParticipant5 years, 3 months ago #12344Indeed, I was able to fix this by adding javascript code that Waitlist normally used on document.ready to event wpsolr_on_ajax_success. For others that may have this problem, the shop/hide waitlist buttons functionality is located in wcwl_frontend.min.js
You must be logged in to reply to this topic.