{"id":59,"date":"2017-01-20T10:54:22","date_gmt":"2017-01-20T10:54:22","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/?p=59"},"modified":"2024-06-06T11:44:57","modified_gmt":"2024-06-06T11:44:57","slug":"upload-rules-management-on-simple-products","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/","title":{"rendered":"Upload rules management on simple products"},"content":{"rendered":"\n<p>By default, all the general rules apply to all the products of the shop unless you have disabled it from the product settings or if you have configured at least one new rule on the product. Let&#8217;s see how to do this.<\/p>\n\n\n\n<p>Go to the product detail page and click on the <strong>Add new rule <\/strong>button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"499\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg\" alt=\"Set rules on the simple product\" class=\"wp-image-69\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg 900w, https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02-300x166.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02-768x426.jpg 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><\/figure>\n\n\n\n<p>As for any new rule, you must specify the following parameters:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>label<\/strong>: text to describe the upload field;<\/li>\n\n\n\n<li><strong>allowed file extensions<\/strong>: if the uploaded file has a different extension, it will be rejected. Leave empty to allow any file extension;<\/li>\n\n\n\n<li><strong>maximum size<\/strong>: the maximum size allowed for the file;<\/li>\n\n\n\n<li><strong>allow notes<\/strong>: when enabled, the user will be able to enter a note that will be visible to the administrator in the order details.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/product-rule.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"573\" height=\"427\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/product-rule.jpg\" alt=\"Upload rule by product\" class=\"wp-image-453\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/product-rule.jpg 573w, https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/product-rule-300x224.jpg 300w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/a><\/figure><\/div>\n\n\n<p>Assuming that we configured&nbsp;<strong>4 general<\/strong>&nbsp;<strong>upload<\/strong>&nbsp;<strong>rules&nbsp;<\/strong>(therefore, 4 files) <strong>and 2 on the YITH Bag product<\/strong>, we expect to get 4 files as required for all the products in the cart and 2 for the YITH Bag product.<\/p>\n\n\n\n<p>If you want to prevent the customer from uploading any kind of file for a specific product, then, make sure you check the <strong>Disable the upload<\/strong> option on the product page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/Disable-the-upload.jpg\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1136\" height=\"493\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/Disable-the-upload.jpg\" alt=\"Disable the upload\" class=\"wp-image-362\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/Disable-the-upload.jpg 1136w, https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/Disable-the-upload-300x130.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/Disable-the-upload-1024x444.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/Disable-the-upload-768x333.jpg 768w\" sizes=\"auto, (max-width: 1136px) 100vw, 1136px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>By default, all the general rules apply to all the products of the shop unless you have disabled it from the product settings or if you have configured at least one new rule on the product. Let&#8217;s see how to do this. Go to the product detail page and click on the Add new rule &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Upload rules management on simple products<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,5],"tags":[],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-how-to-create-a-new-upload-rule","category-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH Uploads: Upload rules management on simple products<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH Uploads: Upload rules management on simple products\" \/>\n<meta property=\"og:description\" content=\"By default, all the general rules apply to all the products of the shop unless you have disabled it from the product settings or if you have configured at least one new rule on the product. Let&#8217;s see how to do this. Go to the product detail page and click on the Add new rule &hellip; Continue reading Upload rules management on simple products\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Uploads\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-20T10:54:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-06T11:44:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg\" \/>\n<meta name=\"author\" content=\"Alessio Torrisi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alessio Torrisi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/\",\"name\":\"YITH Uploads: Upload rules management on simple products\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg\",\"datePublished\":\"2017-01-20T10:54:22+00:00\",\"dateModified\":\"2024-06-06T11:44:57+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg\",\"width\":900,\"height\":499,\"caption\":\"Set rules on the simple product\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload rules management on simple products\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/\",\"name\":\"YITH WooCommerce Uploads\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\",\"name\":\"Alessio Torrisi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"caption\":\"Alessio Torrisi\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/author\/alessio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH Uploads: Upload rules management on simple products","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/","og_locale":"en_US","og_type":"article","og_title":"YITH Uploads: Upload rules management on simple products","og_description":"By default, all the general rules apply to all the products of the shop unless you have disabled it from the product settings or if you have configured at least one new rule on the product. Let&#8217;s see how to do this. Go to the product detail page and click on the Add new rule &hellip; Continue reading Upload rules management on simple products","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/","og_site_name":"YITH WooCommerce Uploads","article_published_time":"2017-01-20T10:54:22+00:00","article_modified_time":"2024-06-06T11:44:57+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg","type":"","width":"","height":""}],"author":"Alessio Torrisi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alessio Torrisi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/","name":"YITH Uploads: Upload rules management on simple products","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg","datePublished":"2017-01-20T10:54:22+00:00","dateModified":"2024-06-06T11:44:57+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-content\/uploads\/sites\/7\/2017\/01\/02.jpg","width":900,"height":499,"caption":"Set rules on the simple product"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/settings\/upload-rules-management-on-simple-products\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/"},{"@type":"ListItem","position":2,"name":"Upload rules management on simple products"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/","name":"YITH WooCommerce Uploads","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5","name":"Alessio Torrisi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","caption":"Alessio Torrisi"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/author\/alessio\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":8,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"predecessor-version":[{"id":517,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/posts\/59\/revisions\/517"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-uploads\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}