WCPS – show products from its cateogry

Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to support@pickplugins.com
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

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.

2 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
Oct 24, 2018

Welcome to our forum.

Please see the code sample i just added for you.


Let me know the result.


- Oct 24, 2018 08:55 PM
Flag (0)

glad to know that,
if you love the support please submit us five-star reviews on the plugin page


- Oct 24, 2018 03:18 PM
Flag (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

Please use https://imgur.com/upload to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets