function __construct(&$subject, $config) { // if(self::$_this) return self::$_this; parent::__construct($subject, $config); $varsToPush = array('custom_size' => array(0.0, 'int'), 'custom_price_by_letter' => array(0.0, 'bool')); $this->setConfigParameterable('custom_params', $varsToPush); }
function __construct(&$subject, $config) { parent::__construct($subject, $config); $this->_tablepkey = 'id'; $this->tableFields = array_keys($this->getTableSQLFields()); $this->varsToPush = array('custom_specification_name1' => array('', 'char'), 'custom_specification_default1' => array('', 'string'), 'custom_specification_name2' => array('', 'char'), 'custom_specification_default2' => array('', 'string')); $this->setConfigParameterable('custom_params', $this->varsToPush); }
function __construct(&$subject, $config) { // if(self::$_this) return self::$_this; parent::__construct($subject, $config); $varsToPush = array('selectname1' => array('', 'char'), 'selectname2' => array('', 'char'), 'selectname3' => array('', 'char'), 'selectname4' => array('', 'char'), 'selectoptions1' => array('', 'char'), 'selectoptions2' => array('', 'char'), 'selectoptions3' => array('', 'char'), 'selectoptions4' => array('', 'char')); $this->setConfigParameterable('custom_params', $varsToPush); // self::$_this = $this; }
function __construct(& $subject, $config) { parent::__construct($subject, $config); $varsToPush = array( 'custom_drop'=> array('', 'string'), 'custom_drop_name'=> array('', 'string'), ); $this->setConfigParameterable('custom_params',$varsToPush); }
public function __construct(&$subject, $config) { parent::__construct($subject, $config); $varsToPush = array('downloadable_media_id' => array(0, 'int'), 'downloadable_order_states' => array(array('C', 'S'), 'char'), 'downloadable_expires_quantity' => array(0, 'int'), 'downloadable_expires_period' => array('years', 'string')); $this->is_VM3 = (double) substr(VmConfig::getInstalledVersion(), 0, 3) > 2.6; $this->setConfigParameterable($this->is_VM3 ? 'customfield_params' : 'custom_params', $varsToPush); if ($this->params->get('show_in_cart_attrs', 1)) { JFactory::getDocument()->addScriptDeclaration("\r\n\t\t\t\twindow.addEvent('domready', function(){\r\n\t\t\t\t\tjQuery('.vmshipment_downloadable_delivery_div').parent().parent().clone().css('margin-top', '10px').appendTo('.spacer-buy-area');\r\n\t\t\t\t});\r\n\t\t\t"); } $this->is_VM3 = (double) substr(VmConfig::getInstalledVersion(), 0, 3) > 2.6; }