sarga/config/products.php

19 lines
847 B
PHP
Raw Normal View History

<?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' => [],
// Make the original and source product 'related' via the 'product_relations' table
'linkProductsOnCopy' => false,
// 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,
];