{"id":1328,"date":"2020-05-29T18:20:14","date_gmt":"2020-05-29T16:20:14","guid":{"rendered":"https:\/\/agence-becomweb.fr\/modules-prestashop\/automatically-change-default-combination\/"},"modified":"2023-11-01T17:05:53","modified_gmt":"2023-11-01T16:05:53","slug":"automatically-change-default-combination","status":"publish","type":"product","link":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/","title":{"rendered":"Automatically change default combination"},"content":{"rendered":"<h2>More sales, less out-of-stock message<\/h2>\n<p>On Prestashop, when the default combination of a product is out of stock while the other combinations are in stock, the customer will encounter the following situations:<\/p>\n<ul>\n<li>the store will display messages warning him that the product is no longer in stock<\/li>\n<li>he\/she will not be able to add the product to his cart from the list of items<\/li>\n<\/ul>\n<p>These messages can be misunderstood and you risk missing out on a sale!<\/p>\n<p>To solve this situation, we created this module which automatically modify the combination in case of out of stock.<\/p>\n<p>With this module your products will appear again in stock and be orderable by your customers.<\/p>\n<h2>How the default combination reassignement change works when previous is out-of-stock<\/h2>\n<p>First of all, you start by defining the criterion for reassigning the new default variation:<\/p>\n<ul>\n<li>the first available in the list<\/li>\n<li>the first available from the end of the list<\/li>\n<li>the one with the lowest stock<\/li>\n<li>the one with the largest stock<\/li>\n<\/ul>\n<p>Then, all versions of the module include an automatic process. Each time the default combination falls out of stock, the module chooses the new default variation according to the criterion you have chosen.<\/p>\n<p><strong>The update is done as soon as the combination has no more stock; which means after validation of an order or right after the modification of the quantity in the back office<\/strong>.<\/p>\n<p>Since version 2 of the module, if you wish you can also set up a <strong>cron task<\/strong>, to <strong>automatically<\/strong> launch a mass reassignment of your entire catalog.<\/p>\n<p>For this you have 2 options:<\/p>\n<ol>\n<li>A Symfony command (recommended)<\/li>\n<li>A front controller<\/li>\n<\/ol>\n<p>For the front controller, the module allows you (in addition to the token system) to strengthen security by activating options to limit access to the controller via PHP-CLI and\/or from a unique IP address (that of your server For example).<\/p>\n<h2>Compatibility and features<\/h2>\n<p>Here is the list of features included in the different versions of the module, as well as their compatibility.<\/p>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>V1<\/th>\n<th>V2<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Compatibility<\/td>\n<td>From PS 1.6.0 to PS 1.7.5<\/td>\n<td>From de PS 1.7.5<\/td>\n<\/tr>\n<tr>\n<td>Automatic reassignment<\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i><\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i><\/td>\n<\/tr>\n<tr>\n<td>Reassignment from back-office<\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i><\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i> (Enhanced)<\/td>\n<\/tr>\n<tr>\n<td>4 modes of selection<\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i><\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i><\/td>\n<\/tr>\n<tr>\n<td>Event log<\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i><\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i><\/td>\n<\/tr>\n<tr>\n<td>Front &#8220;cron&#8221; controller<\/td>\n<td><\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i><\/td>\n<\/tr>\n<tr>\n<td>Symfony command<\/td>\n<td><\/td>\n<td><i class=\"fa fa-check icon-green icon-big\" aria-hidden=\"true\"><\/i><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr>\n<p>Important: Setting up a cron job is intended for advanced users. The operation requires set up on the server, and therefore requires technical skills and knowledge. You will then need to contact your hosting provider or system-administrator. Keep in mind that we will not provide support for this, since it is not covered by the technical support scope of the module.<\/p>\n","protected":false},"excerpt":{"rendered":"<div>\nProduct default combination is automatocally changed when the current one goes out of stock\n<\/div>\n","protected":false},"featured_media":1263,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false},"product_brand":[],"product_cat":[176],"product_tag":[200,201,220,218,160,219,159,221],"class_list":{"0":"post-1328","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-prestashop-modules","7":"product_tag-1-6-en","8":"product_tag-1-7-en","9":"product_tag-combination","10":"product_tag-modification-en","11":"product_tag-module-en","12":"product_tag-out-of-stock","13":"product_tag-prestashop-en","14":"product_tag-sold-out","16":"first","17":"instock","18":"shipping-taxable","19":"purchasable","20":"product-type-variable"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Module Prestashop - Automatically change default combination<\/title>\n<meta name=\"description\" content=\"Do not miss out on a sale if the default combination of a product is out of stock. This module which selects a new one for you\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Module Prestashop - Automatically change default combination\" \/>\n<meta property=\"og:description\" content=\"Do not miss out on a sale if the default combination of a product is out of stock. This module which selects a new one for you\" \/>\n<meta property=\"og:url\" content=\"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/\" \/>\n<meta property=\"og:site_name\" content=\"BeComWeb Web-Agency\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/agencebecomweb\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-01T16:05:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/agence-becomweb.fr\/wp-content\/uploads\/2021\/08\/autoswitchdefaultcombination_en.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Agence_BeComWeb\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/prestashop-modules\\\/automatically-change-default-combination\\\/\",\"url\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/prestashop-modules\\\/automatically-change-default-combination\\\/\",\"name\":\"Module Prestashop - Automatically change default combination\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/prestashop-modules\\\/automatically-change-default-combination\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/prestashop-modules\\\/automatically-change-default-combination\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/agence-becomweb.fr\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/autoswitchdefaultcombination_en.jpg\",\"datePublished\":\"2020-05-29T16:20:14+00:00\",\"dateModified\":\"2023-11-01T16:05:53+00:00\",\"description\":\"Do not miss out on a sale if the default combination of a product is out of stock. This module which selects a new one for you\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/prestashop-modules\\\/automatically-change-default-combination\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/prestashop-modules\\\/automatically-change-default-combination\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/prestashop-modules\\\/automatically-change-default-combination\\\/#primaryimage\",\"url\":\"https:\\\/\\\/agence-becomweb.fr\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/autoswitchdefaultcombination_en.jpg\",\"contentUrl\":\"https:\\\/\\\/agence-becomweb.fr\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/autoswitchdefaultcombination_en.jpg\",\"width\":1024,\"height\":600,\"caption\":\"This Prestashop module automatically changes the product default combination when it runs out-of-stock\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/prestashop-modules\\\/automatically-change-default-combination\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prestashop modules\",\"item\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/prestashop-modules\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Automatically change default combination\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/\",\"name\":\"BeComWeb Web-Agency\",\"description\":\"Low-priced quality Prestashop modules for your online store\",\"publisher\":{\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/#organization\",\"name\":\"Agence BeComWeb\",\"url\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/agence-becomweb.fr\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/logo_carr\u00e9_large.gif\",\"contentUrl\":\"https:\\\/\\\/agence-becomweb.fr\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/logo_carr\u00e9_large.gif\",\"width\":800,\"height\":800,\"caption\":\"Agence BeComWeb\"},\"image\":{\"@id\":\"https:\\\/\\\/agence-becomweb.fr\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/agencebecomweb\\\/\",\"https:\\\/\\\/x.com\\\/Agence_BeComWeb\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCBJQb76bz6DcHLknRVl4Kjg\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Module Prestashop - Automatically change default combination","description":"Do not miss out on a sale if the default combination of a product is out of stock. This module which selects a new one for you","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:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/","og_locale":"en_US","og_type":"article","og_title":"Module Prestashop - Automatically change default combination","og_description":"Do not miss out on a sale if the default combination of a product is out of stock. This module which selects a new one for you","og_url":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/","og_site_name":"BeComWeb Web-Agency","article_publisher":"https:\/\/www.facebook.com\/agencebecomweb\/","article_modified_time":"2023-11-01T16:05:53+00:00","og_image":[{"width":1024,"height":600,"url":"https:\/\/agence-becomweb.fr\/wp-content\/uploads\/2021\/08\/autoswitchdefaultcombination_en.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@Agence_BeComWeb","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/","url":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/","name":"Module Prestashop - Automatically change default combination","isPartOf":{"@id":"https:\/\/agence-becomweb.fr\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/#primaryimage"},"image":{"@id":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/#primaryimage"},"thumbnailUrl":"https:\/\/agence-becomweb.fr\/wp-content\/uploads\/2021\/08\/autoswitchdefaultcombination_en.jpg","datePublished":"2020-05-29T16:20:14+00:00","dateModified":"2023-11-01T16:05:53+00:00","description":"Do not miss out on a sale if the default combination of a product is out of stock. This module which selects a new one for you","breadcrumb":{"@id":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/#primaryimage","url":"https:\/\/agence-becomweb.fr\/wp-content\/uploads\/2021\/08\/autoswitchdefaultcombination_en.jpg","contentUrl":"https:\/\/agence-becomweb.fr\/wp-content\/uploads\/2021\/08\/autoswitchdefaultcombination_en.jpg","width":1024,"height":600,"caption":"This Prestashop module automatically changes the product default combination when it runs out-of-stock"},{"@type":"BreadcrumbList","@id":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/automatically-change-default-combination\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/agence-becomweb.fr\/en\/"},{"@type":"ListItem","position":2,"name":"Prestashop modules","item":"https:\/\/agence-becomweb.fr\/en\/prestashop-modules\/"},{"@type":"ListItem","position":3,"name":"Automatically change default combination"}]},{"@type":"WebSite","@id":"https:\/\/agence-becomweb.fr\/en\/#website","url":"https:\/\/agence-becomweb.fr\/en\/","name":"BeComWeb Web-Agency","description":"Low-priced quality Prestashop modules for your online store","publisher":{"@id":"https:\/\/agence-becomweb.fr\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/agence-becomweb.fr\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/agence-becomweb.fr\/en\/#organization","name":"Agence BeComWeb","url":"https:\/\/agence-becomweb.fr\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/agence-becomweb.fr\/en\/#\/schema\/logo\/image\/","url":"https:\/\/agence-becomweb.fr\/wp-content\/uploads\/2019\/05\/logo_carr\u00e9_large.gif","contentUrl":"https:\/\/agence-becomweb.fr\/wp-content\/uploads\/2019\/05\/logo_carr\u00e9_large.gif","width":800,"height":800,"caption":"Agence BeComWeb"},"image":{"@id":"https:\/\/agence-becomweb.fr\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/agencebecomweb\/","https:\/\/x.com\/Agence_BeComWeb","https:\/\/www.youtube.com\/channel\/UCBJQb76bz6DcHLknRVl4Kjg"]}]}},"_links":{"self":[{"href":"https:\/\/agence-becomweb.fr\/en\/wp-json\/wp\/v2\/product\/1328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agence-becomweb.fr\/en\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/agence-becomweb.fr\/en\/wp-json\/wp\/v2\/types\/product"}],"replies":[{"embeddable":true,"href":"https:\/\/agence-becomweb.fr\/en\/wp-json\/wp\/v2\/comments?post=1328"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/agence-becomweb.fr\/en\/wp-json\/wp\/v2\/media\/1263"}],"wp:attachment":[{"href":"https:\/\/agence-becomweb.fr\/en\/wp-json\/wp\/v2\/media?parent=1328"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/agence-becomweb.fr\/en\/wp-json\/wp\/v2\/product_brand?post=1328"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/agence-becomweb.fr\/en\/wp-json\/wp\/v2\/product_cat?post=1328"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/agence-becomweb.fr\/en\/wp-json\/wp\/v2\/product_tag?post=1328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}