• Resolved havoc93

    (@havoc93)


    Hello,

    I have promotion products and products which have no price. I use order by price so I want the cheapest products first, but the problem is that the products without price are showing first and people can’t see the products which are in promotion. If it matters, the products with no price are in same category. Also I don’t want to hide these products, just to move them in the end. Can someone help to solve this problem? Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Stef

    (@serafinnyc)

    Can you provide a URL and also a screenshot of any of the products without a price from the backend please? Go to that product and click on the General Tab so we can see the Price area. What you have in there.

    Thread Starter havoc93

    (@havoc93)

    These products are made like normal products, no price is included in the backend (the field is empty). URL of the products also don’t include the name of the category (it’s like: https://site.com/products/product1 etc.)

    Stef

    (@serafinnyc)

    That URL isn’t loading for me and you didn’t provide a screenshot of a product setting. If you don’t have a price inputted in the price field it won’t show then.

    Thread Starter havoc93

    (@havoc93)

    The URL was example, I prefer to not provide the real URL. The settings of these products are standard. Yes, these products should be without price, but the question was that in the category I want these products without price to be in the end(they are first now, because the sort order is ascending).

    Stef

    (@serafinnyc)

    Got it. So then you need to assign those products a MENU ID number in the Advance tab. Make it so that the number is higher. For instance we have a red shirt make that 4001, you want the blue shirt after the red make that 4002 and so on.

    Different items assign a different number.

    Or you could use a taxonomy organizer plugin that I’m sure someone can suggest. I try and keep my plugins to a minimum to not bog down our sites so I can’t suggest one right now off the top of my head.

    Thread Starter havoc93

    (@havoc93)

    The products are a lot + this change should be made to couple websites. It will take a lot of time to assign ID to all the products. I prefer to not use plugins either. I hope that this can be made with code. Maybe by taking the URL of the subcategory or something.

    I will try to explain what I want exactly again. So we have two different subcategories – one with prices(C1) and the other without(C2). But in the main category where the subcategories are sorted by price (ascending) the first products are from C2 and then C1. So what I’m trying to achieve is to reorder the products so C1 products to be first.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @havoc93 If you did not want to manually arrange the products in the order, then you would need to have a developer assist you with a custom filter for queries. Since you are sorting from cheapest to most expensive, the products without prices show first. The custom query would need to filter those and add them to the back of the list. It could be quite a project, so we suggest the developer resources here: https://woocommerce.com/customizations/

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

The topic ‘Products Order in Categories’ is closed to new replies.