amsived
Forum Replies Created
-

Hello again !
The problem is indeed resolved but it was for a different reason.
The fix I’ve suggested in my 2nd answer would actually cause more errors so I didn’t implement it (thank god you didn’t either).
The origin of all these errors was actually in this screenshot, the 3rd rule you can see there : the value field is empty for both field and this was of course being called for each product printed in the csv, everyday.
There you go, my mistake ! Maybe some validation rules could prevent that from occurring though 😉- This reply was modified 2 years, 9 months ago by amsived.
Forum: Plugins
In reply to: [WooCommerce] Set product to featured automaticallyI’m also looking for a way to automatically set featured products (every day or every week, choose 10 products from the most recent and in stock).
Someone asked the question a few years ago in these forums : https://ww.wp.xz.cn/support/topic/automatic-featured-product/ linking to this Stack Overflow thread : https://stackoverflow.com/questions/35312355/automated-featured-product-woocommerce
With that, we’re really close to finding the solution I think. I just don’t understand how to “grab” that transient they’re talking about.
Indeed ! Marvellous, it must have been a cache issue.
Thanks for everything 🙂- This reply was modified 3 years, 7 months ago by amsived. Reason: resolved
Hello again,
Option SEO Meta, Title is not on, as you can see there :
https://ibb.co/fkDNBQGI’ll open a ticket as soon as I find the IDs haha
Thanks
- This reply was modified 3 years, 7 months ago by amsived.
Hello Dmytro,
Thanks for your answer. I installed Loco Translate, in this case it seems the BeRocket_AJAX_domain is at the top :
screenshot BeRocket Ajax DomainI’ve successfully translated the 2 problematic strings :
https://ibb.co/GPy9J5CBut still displaying “In stock” and “Out of stock” on the frontend (linked page). I guess I messed up somewhere 🙁
Hello Alessio,
With #wrapper selector, the navbar works smoothly but unfortunately the products don’t change, choosing a filter doesn’t update the list of products.
Hello there, any news ?
Hi again, no it’s still not working.
I will check again your page with these changes.
My message was to confirm that the expected settings were on so that Pablo could check again.
Thanks in advance,
My bad ! The shortcode selector is now set to #main again !
Thank you for your help so far.
Hi Pablo,
We’ve set the code snippet you sent us to #primary like originally.
We’ve also replace the filter widget in the sidebar by the following shortcode :
[yith_wcan_filters slug=”default-preset” selector=”#main”]Unfortunately it doesn’t refresh the list of products, even if the filters do update (empty filters stop showing up but the products don’t move).
if( ! function_exists( 'yith_wcan_content_selector' ) ){ function yith_wcan_content_selector( $selector ){ $selector = '.products'; return $selector; } add_filter( 'yith_wcan_content_selector', 'yith_wcan_content_selector' ); }I don’t know if it’s possible but by using the selector .products instead of #primary, it works well (no problem with overlay or infinite scrolling). I’ve taken .products from YiTH Infinite Scrolling plugin configuration where .products is the content selector.
Though the main problem is that with .products selector the button “reset filters” never appears, even with active filters on.We added a JS snippet for debug :
jQuery(document).ajaxStart(function() {
console.log(‘Ajax call started’);
});
jQuery(document).ajaxComplete(function() {
console.log(‘Ajax call completed’);
});It seems that sometimes the ajax call start but doesn’t get completed.
We are using Yith Infinite Scrolling in addition to Yith Ajax Product Filter.There also is a error logged in the console with yith-wcan-shortcodes.min.js line 82 :
})), this.filtered = a && !!Object.keys(a).length, this.filtered ? t.$body.addClass("filtered") : t.$body.removeClass("filtered"), i(window).trigger("scroll"), i(document).trigger("yith-wcan-ajax-filtered", [e, a]).trigger("yith_wcwl_reload_fragments")`Uncaught TypeError: Cannot read properties of undefined (reading ‘removeClass’)
at e.value (yith-wcan-shortcodes.min.js?ver=4.11.0:82:123)
at Object.<anonymous> (yith-wcan-shortcodes.min.js?ver=4.11.0:69:203)
at c (jquery.min.js?ver=3.6.0:2:28327)
at Object.fireWith [as resolveWith] (jquery.min.js?ver=3.6.0:2:29072)
at l (jquery.min.js?ver=3.6.0:2:79901)
at XMLHttpRequest.<anonymous> (jquery.min.js?ver=3.6.0:2:82355)`- This reply was modified 3 years, 11 months ago by amsived.
Hello Facundo,
Thank you for this code, it’s much better.
Though sometimes after activating a filter it gets stuck :
– Sidebar gets hidden but black overlay stays,
– clicking somewhere removes the black overlay but makes the sidebar appear
– and then, it’s impossible to close it (even when clicking on the X close button).This happens because after selecting a filter, only 1 “active” class on 2 gets toggled :
<div class=”thebase-show-sidebar-btn thebase-action-btn thebase-style-text active“>
=> puts the black overlay on<aside id=”secondary” role=”complementary” class=”primary-sidebar widget-area sidebar-slug-sidebar-secondary sidebar-link-style-plain
active“>
=> supposed the show the sidebar but doesn’t get toggledI hope we can find a solution to this.
Thank you so much ! The code snippet is working perfectly.
Hope you’re doing good too 🙂
Ciao !