• Resolved craigmckee

    (@craigmckee)


    Hello everyone,

    I have created this page and it displays an embedded video, a selected product then all the products from the cycle-accessories category.

    Can I easily remove all products without an image or sort them so that they are at the bottom?

    All the product details were imported from a file given to me by the suppliers so it would be quite a task to go and manually add them.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Can I easily remove all products without an image or sort them so that they are at the bottom?

    It sounds like you are currently displaying products from the cycle-accessories category. To hide specific products from the category, you can unassign them from cycle-accessories in the single product setting page: https://docs.woocommerce.com/wp-content/uploads/2013/05/productcategory.png

    Additionally, you can batch-edit assigned categories via Product importer exporter. To read more about it, please visit our documentation page: https://docs.woocommerce.com/document/product-csv-importer-exporter/

    Thread Starter craigmckee

    (@craigmckee)

    Morning,

    Thank you for the reply. There are too many to do this manually and the file is automatically imported via FTP so I can’t edit or change the csv that we import. I’m ideally looking for a way to achieve this after product import…

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    Can I easily remove all products without an image or sort them so that they are at the bottom?

    I think this will need custom coding and you need to work with a web developer for this. The steps would be:

    * Loop through all products.
    * Check each for an image i.e. $product->get_image();
    * If image is set, do nothing. If image is empty change catalog_visibility.

    Kind regards,

    Thread Starter craigmckee

    (@craigmckee)

    Ah, thank you.

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @craigmckee,

    Hoping that the above info will be helpful in finding a full solution via custom coding, I’ll go ahead and mark this thread as resolved.

    Please feel free to create a new thread if you have other questions.

    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide products without images’ is closed to new replies.