• Resolved Fujyn

    (@arwah12)


    Hi,
    maybe this is a stupid question, but I’m confused doing it
    so I want to ask, regarding product categories,
    I have added the “normal” category, and I have added this category to all products on the site,
    well, the thing is, if I change the “normal” category to “medium”
    whether all products on the site, the category automatically changes to “medium”
    or all products are no longer in the category
    thank you

    additional
    for example 10 products related to the “A” category
    and 20 products related to the “A and B” category
    if I delete the “A” category and I name the “B” category to “A”
    whether 30 products fall into the “A” category that I just changed
    Thank you very much

    • This topic was modified 4 years, 5 months ago by Fujyn.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi arwah12,

    the product’s category is recognized by its ID, so after you change the name of a category is is still linked to products but only with a different name.
    So in your example, the products would “end up” in the ‘medium’ category.

    There is always a default uncategorized category for products, so if you delete the product’s category A for 10 items they will fall into the ‘uncategorized’ category (or with a name you changed the uncategorized category to).

    So in your case, if you have uncategorized, A, B and delete A category 10 products will end up in this uncategorized category. The 20 having still one category left (B) will be there, and then if you change the B name to A, you will have 20 products in A and 10 that previously lost their only category to end up inside uncategorized one.

    Thread Starter Fujyn

    (@arwah12)

    Hi @tomasz_bednarek
    thank you very much, it is functioning properly.

    but I have another problem regarding woocommerce short codes.
    I added a short code to the page I added, to display products sorted by the lowest price for products with discounts / sales, except for products in the “bundle, special offer, free” category but the product display doesn’t work properly,

    [sale_products category="bundles,special-deals,free" columns="3" orderby="price" order="ASC" operator="NOT IN" paginate=true per_page=18]

    I made the lowest product price of $ 2 for pages 1 and 2 function well, but on pages 3 through 6 and so on, the product display is not working anymore, there are products that appear at a price of $ 10, $ 5, $ 2, etc.
    Is there something wrong with this short code

    Thank you

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @arwah12 Were you able to solve this issue, or would you be able to send a link to the page(s) where you are seeing the issue? Many times the issue can either be variable products that allow for lower/higher pricing, or the product lookup tables need to be rebuilt.

    The product lookup tables can be rebuilt under WooCommerce > Status > Tools, and the tool is conveniently named Product lookup tables.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    Hi @arwah12. We haven’t heard back from you in a while, so I’m going to mark this as resolved. Please start a new thread if you have further questions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘change product category’ is closed to new replies.