* @copyright 2022 ECSoft * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of ECSoft */ include_once dirname(__FILE__) . '/EcsGtmProModelAbstract.php'; class EcsGtmProGtmRemarketingConfig extends EcsGtmProModelAbstract { public $enable; public $product_id; public $product_prefix; public function productIdSelectOptions() { return array( array( 'id' => 'id', 'name' => $this->l('ID') ), array( 'id' => 'reference', 'name' => $this->l('Reference') ), array( 'id' => 'ean13', 'name' => $this->l('EAN13') ), array( 'id' => 'upc', 'name' => $this->l('UPC') ) ); } public function attributeDefaults() { return array( 'id' => 'id' ); } public function attributeTypes() { return array( 'product_id' => 'select', 'product_prefix' => 'text' ); } public function attributeLabels() { return array( 'enable' => $this->l('Enable Remarketing Parameters', 'EcsGtmProGtmRemarketingConfig'), 'product_id' => $this->l('Product ID in Google Merchant Center', 'EcsGtmProGtmRemarketingConfig'), 'product_prefix' => $this->l('Product ID prefix', 'EcsGtmProGtmRemarketingConfig'), ); } public function rules() { return array( array( array( 'enable', 'product_id', 'product_prefix' ), 'safe' ) ); } public function configKey() { return 'ecsgtm_remarketing'; } public function getActiveTab() { return 'EcsGtmProGtmConfig'; } }