2020-08-03 11:32:26 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
// use the 'code' of the 'attributes' table here to be able to control which attributes
|
2020-08-07 19:48:13 +00:00
|
|
|
// should be skipped when doing a copy (admin->catalog->products->copy product).
|
|
|
|
|
// you can also add every relation that should not be copied here to skip them.
|
|
|
|
|
// defaults to none (which means everything is copied).
|
2021-05-19 09:28:53 +00:00
|
|
|
'skipAttributesOnCopy' => [],
|
2020-08-10 07:31:56 +00:00
|
|
|
|
|
|
|
|
// Make the original and source product 'related' via the 'product_relations' table
|
2020-08-10 15:24:36 +00:00
|
|
|
'linkProductsOnCopy' => false,
|
2020-09-01 05:43:51 +00:00
|
|
|
|
|
|
|
|
// Ability to set a global callable that defines if a product is saleable.
|
|
|
|
|
// Return neither true nor false but null by default to not interrupt the default chain that
|
|
|
|
|
// defines if a product is saleable. It depends on the isSaleable() method of the product
|
|
|
|
|
// type if this callable is obeyed.
|
2020-10-09 14:28:55 +00:00
|
|
|
'isSaleable' => null,
|
2020-09-01 05:43:51 +00:00
|
|
|
];
|