This commit is contained in:
2025-03-26 00:08:41 +01:00
parent 1c671f5340
commit 830643dcc6
4 changed files with 39 additions and 1947 deletions

View File

@@ -64,7 +64,7 @@
},
"custom-script.php": {
"type": "-",
"size": 1917,
"size": 1916,
"lmtime": 0,
"modified": true
},
@@ -98,7 +98,7 @@
},
"google-merchant_id-1.xml": {
"type": "-",
"size": 17951117,
"size": 17900206,
"lmtime": 0,
"modified": true
},

View File

@@ -25,7 +25,7 @@
*/
/* Debug only */
( $_SERVER['REMOTE_ADDR'] == '91.189.216.43' ) ? define('_PS_MODE_DEV_', false ) : define('_PS_MODE_DEV_', false);
( $_SERVER['REMOTE_ADDR'] == '178.42.108.40' ) ? define('_PS_MODE_DEV_', false ) : define('_PS_MODE_DEV_', false);
/* Compatibility warning */
define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);
if (_PS_MODE_DEV_ === true) {

View File

@@ -0,0 +1,36 @@
<?php
class Combination extends CombinationCore
{
/**
* Combination description
*
* @var string
*/
'table' => 'product_attribute',
'primary' => 'id_product_attribute',
'fields' => array(
'id_product' => array('type' => self::TYPE_INT, 'shop' => 'both', 'validate' => 'isUnsignedId', 'required' => true),
'location' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 64),
'ean13' => array('type' => self::TYPE_STRING, 'validate' => 'isEan13', 'size' => 13),
'upc' => array('type' => self::TYPE_STRING, 'validate' => 'isUpc', 'size' => 12),
'quantity' => array('type' => self::TYPE_INT, 'validate' => 'isInt', 'size' => 10),
'reference' => array('type' => self::TYPE_STRING, 'size' => 32),
'supplier_reference' => array('type' => self::TYPE_STRING, 'size' => 32),
'description' => array('type' => self::TYPE_HTML, 'size' => 1000000),
'wholesale_price' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isPrice', 'size' => 27),
'price' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isNegativePrice', 'size' => 20),
'ecotax' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isPrice', 'size' => 20),
'weight' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isFloat'),
'unit_price_impact' => array('type' => self::TYPE_FLOAT, 'shop' => true, 'validate' => 'isNegativePrice', 'size' => 20),
'minimal_quantity' => array('type' => self::TYPE_INT, 'shop' => true, 'validate' => 'isUnsignedId', 'required' => true),
'default_on' => array('type' => self::TYPE_BOOL, 'allow_null' => true, 'shop' => true, 'validate' => 'isBool'),
'available_date' => array('type' => self::TYPE_DATE, 'shop' => true, 'validate' => 'isDateFormat'),
),
);
/**
* Constructor
*
* @param int $id_combination
*/
}