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

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #299327

    loralora
    Participant

    Hi, 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.
    #299345

    Hello,

    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 Studios

    #299398

    loralora
    Participant

    Thanks 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?

    #299579

    Hello,

    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 Studios

    #299922

    loralora
    Participant

    Hi, 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.”

    #299937

    loralora
    Participant

    here 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?

    #299950

    Artem Temos
    Keymaster

    Hi,

    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

Viewing 7 posts - 1 through 7 (of 7 total)