Hi,
I am using your plugin WCPS on the auction site. Every new auction have products from new category.
I put the shortcode of one slider to functions.php to place it before every product. So far it was OK and every time I just have to change the category (in pro version).
But know it will be two or more auctions at the same time. I would like to make things easier and set the plugin to check a current product category and "choose" the category as the slider's one.
Then I would not have to change the category every time in the slider options and even if I will have a few auctions at one time the slider always would show only products of the current product's category.
Is this possible to use wcps_filter_query_args to query always the category of current product?
E.g.: https://aukcje.artkomiks.pl/aukcja/anastazja-strona-25/
And my functions.php code is:
add_action( 'woocommerce_before_single_product', 'slider_should_show_only_the_product_category', 8 );
function slider_should_show_only_the_product_category(){
echo do_shortcode("[wcps id='234']");
}
Thank you in advance for help.
Best for you.
Dominik
Welcome to our forum.
Please see the code sample i just added for you.
https://pickplugins.com/documentation/woocommerce-products-slider/filter-hooks/wcps_slider_query_args/
Let me know the result.
Regards
glad to know that,
if you love the support please submit us five-star reviews on the plugin page
https://wordpress.org/plugins/woocommerce-products-slider/#reviews
Regards