• Resolved tristadeleon

    (@tristadeleon)


    Is there a way to do this by specific product category? Right now all my discontinued are in a ‘discontinued’ category and would be great to be able to do this in code, so that anytime I assign a product to this ‘discontinued’ category, it applies this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tristadeleon

    (@tristadeleon)

    Would also love in the future if you could allow for an image along with the text to notify them it has been discontinued.

    Plugin Author twoelevenjay

    (@twoelevenjay)

    @tristadeleon,

    Thank you for using my plugin, and I apologize for the delayed response.

    The best way to achieve this would be to make use of the built in export / import feature that was added to WooCommerce in 3.1. I have outlined the steps below, and here is a quick video on how to do it: https://youtu.be/2X5bnIR4b4o

    1. In the WP admin, navigate to: Products > All Products > Export.
    2. For “Which columns should be exported?”, select “ID”, and “Categories”.
    3. Click “Generate CSV”.
    4. Open the downloaded CSV.
    5. Add a third column and for the column header add meta:_is_discontinued.
    6. Freeze the header row and sort the rows by the category column.
    7. Locate the groups of products that have your “Discontinued” category in the category column.
    8. Add “yes” to the cells and save the document as a CSV.
    9. In the WP admin, navigate to: Products > All Products > Import.
    10. Choose your newly created CSV file.
    11. Check the box for “Update existing products”.
    12. Click “Continue”.
    13. Confirm the three columns are mapped correctly: ID > ID, Categories > Categories, meta:_is_discontinued > Import as meta.
    14. Click “Run the importer”.
    Thread Starter tristadeleon

    (@tristadeleon)

    This worked perfectly!! Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘I have about 800 discontinued products’ is closed to new replies.