WCPS – show products from its cateogry

0
WCPS - show products from its cateogry 1
Anonymous
Oct 24, 2018 10:25 AM 1 Answers General
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe
Flag(0)

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

2 Subscribers
WCPS - show products from its cateogry 2
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
WCPS - show products from its cateogry 3
PickPlugins
Oct 24, 2018
Flag(0)

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

WCPS - show products from its cateogry 4
PickPlugins
- Oct 24, 2018 08:55 PM
Flag (0)
0

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

WCPS - show products from its cateogry 5
domin
- Oct 24, 2018 03:18 PM
Flag (0)
0

This works perfect! Thank you very much. <br>I could only add that in the slider Query Product settings should not be any terms chcecked. <br>Thanks again and best for you!<br>Dominik

Sign in to Reply
Replying as Submit