{"id":1230,"date":"2024-09-14T09:38:55","date_gmt":"2024-09-14T09:38:55","guid":{"rendered":"https:\/\/cachitoswp.com\/?p=1230"},"modified":"2025-06-01T18:13:55","modified_gmt":"2025-06-01T18:13:55","slug":"create-woocommerce-products-or-tickets-automatically-for-every-photo-uploaded","status":"publish","type":"post","link":"https:\/\/cachitoswp.com\/en\/create-woocommerce-products-or-tickets-automatically-for-every-photo-uploaded\/","title":{"rendered":"Create WooCommerce products or posts automatically for each uploaded photo"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Photo: <a href=\"https:\/\/www.freepik.es\/foto-gratis\/mujer-tiro-medio-que-extiende-escritorio_43545667.htm#fromView=search&amp;page=1&amp;position=0&amp;uuid=08f6ea9f-2cf7-44cb-8037-cb6b4d3e17b4\">Image by freepik<\/a><\/p>\n\n\n\n<p class=\"has-primary-color has-text-color has-link-color has-large-font-size wp-elements-b97b691c95d1b10e3ceb146372715987 wp-block-paragraph\">One of the most tedious and laborious things in managing an online store is uploading products. There are many ways to automate product creation in the backend, such as preparing an excel or csv and then running a script, or using plugins like WP All Import (which is really good and I recommend).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But I have always missed one &quot;feature&quot;: being able to create products from photos. You see, I am very particular, and I take photos of my products myself, if I don&#039;t have images provided by a distributor. And that&#039;s the first thing I do.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, my first step before I start creating products is always to take my photos, arrange them, select them, optimize them and upload them to the WordPress media library.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Do you remember the famous WordPress phrase \u201cThere&#039;s a plugin for that\u201d? Well, it&#039;s true in 99% of cases\u2026 <strong>but, in this case, precisely, NO.<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Once I&#039;ve uploaded all my photos, I start creating products manually. Every time I save the first draft, I add the title, slug, and category, and then I try to assign the corresponding photo to it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This first stopper may seem like a lie or an exaggeration, but it seems really annoying to me\u2026 Because sometimes I have a hard time finding it! But I need to assign the photo first, because it helps me a lot to visually identify the product in the product list (in the WooCommerce product list, the title of each product is accompanied by a thumbnail).<\/p>\n\n\n\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-block-group-is-layout-constrained\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/wham-vintage.com\/wham-vintage-barcelona-contactar\/\" target=\"_blank\" rel=\" noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2023\/11\/banner.webp\" alt=\"\" class=\"wp-image-1303\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">When I had a store years ago within the TodoColecci\u00f3n marketplace (an eBay-type sales website that is very popular in Spain), in its backend they included a very good utility called &quot;Photo Booth&quot;, which allowed me to upload batches of photos first, and from the images create the products in a very productive and automated way.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Well, hey, do you remember the famous WordPress phrase \u201cThere&#039;s a plugin for that\u201d? Well, it&#039;s true 99% of the time\u2026 but as far as I could find, in this case, NO.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So I say\u2026 What if I do it myself? What if I&#039;m lazy and explain the features to my AI development plugin, and it does it for me, and then I fix it a bit?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Well, said and done. I have created a WordPress plugin, which once activated, and its functionality enabled from its settings, automatically creates a product for each file uploaded to the media. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And not only that: I have made it so that they can automatically assign a default category (thus avoiding the cumbersome \u201cUncategorized\u201d), and as a provisional title for the post or product, it uses the file name.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is the best part, because if one day you upload t-shirts, and another day, for example, you upload toys, then in each upload batch you leave them in the category they belong in, and you save another step.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Optionally, it may also be useful to add default tags, price, weight and dimensions, or any other taxonomy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And it leaves it as a draft. What do you think? I have found it extremely useful, sometimes it has made me products from photos that were not really products, or that were for the additional photo gallery. You just delete them and that&#039;s it. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#039;m creating products at a much faster rate than when I was doing it the other way. Do you like that?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here you have it:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1200\" height=\"800\" src=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2024\/09\/splash-autocreate-products-media-uploads-1200x800.webp\" alt=\"Auto create products from media uploads wordpress plugin download\" class=\"wp-image-1236\" srcset=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2024\/09\/splash-autocreate-products-media-uploads-1200x800.webp 1200w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2024\/09\/splash-autocreate-products-media-uploads-600x400.webp 600w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2024\/09\/splash-autocreate-products-media-uploads-768x512.webp 768w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2024\/09\/splash-autocreate-products-media-uploads-1536x1025.webp 1536w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2024\/09\/splash-autocreate-products-media-uploads-18x12.webp 18w, https:\/\/cachitoswp.com\/wp-content\/uploads\/2024\/09\/splash-autocreate-products-media-uploads.webp 2000w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/recioRaszak\/wp_create_products_from_media\">GITHUB repository: https:\/\/github.com\/recioRaszak\/wp_create_products_from_media<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2024\/09\/wp_create_products_from_media.zip\">Download wp_create_products_from_media plugin<\/a><\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/cachitoswp.com\/wp-content\/uploads\/2024\/09\/wp_create_products_from_media.zip\">Download Plugin ZIP<\/a><\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>","protected":false},"excerpt":{"rendered":"<p>I have always missed a &quot;feature&quot; in WooCommerce: Being able to create products, first, from uploaded photos, but automatically when uploading a photo, the product is generated as a draft, and then you start filling in the rest of the details... I mean, starting with the image is essential for me.<\/p>","protected":false},"author":1,"featured_media":1233,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[46,1,7],"tags":[31],"class_list":["post-1230","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-casos-reales","category-diseno-desarrollo-web-wordpress","category-plugins","tag-plugins-muy-utiles"],"mb":[],"mfb_rest_fields":["title"],"_links":{"self":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts\/1230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/comments?post=1230"}],"version-history":[{"count":9,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts\/1230\/revisions"}],"predecessor-version":[{"id":1307,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/posts\/1230\/revisions\/1307"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/media\/1233"}],"wp:attachment":[{"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/media?parent=1230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/categories?post=1230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cachitoswp.com\/en\/wp-json\/wp\/v2\/tags?post=1230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}