Home › Forums › WoodMart support forum › how can I display all products labeled "NEW" on a separate page
how can I display all products labeled "NEW" on a separate page
- This topic has 6 replies, 3 voices, and was last updated 3 years, 10 months ago by
Artem Temos.
-
AuthorPosts
-
June 12, 2021 at 12:04 am #299327
loraloraParticipantHi, how can I display all products labeled “NEW” on a separate page? (In both values: Mark product as “New” till date and Permanent “New” label)?
Maybe there is some kind of shortcode or function or other method that I just don’t know?
The point is that I need to display all the products that are new to the line. I mean, if I have a new supplier and he uploads 50 of his products to my site, using the shortcode [recent_products per_page = "4" columns = "4"] I get all 50 added as new on the page. But in fact, out of these 50 units, only 3 are really new product lines – which is a novelty until a certain time.
Please tell me how can I output these two values?
Attachments:
You must be logged in to view attached files.June 12, 2021 at 7:38 am #299345
Aizaz Imtiaz AwanKeymasterHello,
You can try creating a new page and by using the Products Grid/Carousel Element try to display the New label products.
Screenshot for Clarification: https://gyazo.com/8bf0cb5416d8a3ecfb4786036e30a5ed
Regards.
Xtemos StudiosJune 12, 2021 at 3:15 pm #299398
loraloraParticipantThanks for the support,
yes it looks like a solution and i think it was super boo. But unfortunately, when displaying products in this way, my filter does not work for me (I use the pro version plugin https://wordpress.org/support/plugin/woocommerce-ajax-filters/)
what should I do?
June 14, 2021 at 7:12 am #299579
Aizaz Imtiaz AwanKeymasterHello,
You are Most Welcome.
Sorry but the filters don’t work on the custom created pages. It works on the Shop pages.
And there is no option available in Theme Settings to change this default behaviour.
Regards.
Xtemos StudiosJune 15, 2021 at 11:11 am #299922
loraloraParticipantHi, the developer of the filter informed me that I need to use a hook, could you tell me what can help me, which hook?
“For the filters to work, the product list must use the WooCommerce shortcode hooks, if it does not use them, then this can only be changed with your own code, which will add the use of WooCommerce shortcode hooks to the theme’s product list.”
June 15, 2021 at 11:56 am #299937
loraloraParticipanthere is a clarifying answer, from the filtering plugin development team:
“The plugin uses the woocommerce_shortcode_products_query hook from the WooCommerce shortcode, which filters query_vars to query the wp_query of the products on the page.”
Could you please help me with this?
June 15, 2021 at 12:23 pm #299950
Artem TemosKeymasterHi,
If this plugin works with WooCommerce product shortcodes only then you need to use them instead of our theme’s element. As a result, our theme built-in “New products” functionality will not work. Sorry, but we can’t fix this in our theme scope.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register