/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: STORE CONFIG SWICHER ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } $this->iso_config_ids = deserialize($this->iso_config_ids); if (!is_array($this->iso_config_ids) || !count($this->iso_config_ids)) { // Can't use empty() because its an object property (using __get) return ''; } if (\Input::get('config') != '') { if (in_array(\Input::get('config'), $this->iso_config_ids)) { Isotope::getCart()->config_id = \Input::get('config'); Isotope::getCart()->save(); } \Controller::redirect(preg_replace('@[?|&]config=' . \Input::get('config') . '@', '', \Environment::get('request'))); } return parent::generate(); }
/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: PRODUCT LIST ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } // Hide product list in reader mode if the respective setting is enabled if ($this->iso_hide_list && \Haste\Input\Input::getAutoItem('product', false, true) != '') { return ''; } $this->iso_filterModules = deserialize($this->iso_filterModules, true); $this->iso_productcache = deserialize($this->iso_productcache, true); // Disable the cache in frontend preview or debug mode if (BE_USER_LOGGED_IN === true || $GLOBALS['TL_CONFIG']['debugMode'] || $this->iso_category_scope == 'product') { $this->blnCacheProducts = false; } // Apply limit from filter module $this->perPage = Isotope::getRequestCache()->getFirstLimitForModules($this->iso_filterModules, $this->perPage)->asInt(); return parent::generate(); }
/** * Display a wildcard in the back end * * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: PRODUCT FILTERS ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } $this->generateAjax(); // Initialize module data. if (!$this->initializeFilters()) { return ''; } // Hide product list in reader mode if the respective setting is enabled if ($this->iso_hide_list && \Haste\Input\Input::getAutoItem('product', false, true) != '') { return ''; } $strBuffer = parent::generate(); // Cache request in the database and redirect to the unique requestcache ID if ($this->blnUpdateCache) { $objCache = Isotope::getRequestCache()->saveNewConfiguration(); // Include \Environment::base or the URL would not work on the index page \Controller::redirect(\Environment::get('base') . Url::addQueryString('isorc=' . $objCache->id, $this->jumpTo > 0 ? $this->jumpTo : null)); } return $strBuffer; }
/** * Include messages if enabled * @return string */ public function generate() { $strBuffer = parent::generate(); // Prepend any messages to the module output if ($this->iso_includeMessages) { $strBuffer = \Isotope\Frontend::getIsotopeMessages() . $strBuffer; } return $strBuffer; }
/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: FEDEX RATES AND SERVICE ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = $this->Environment->script . '?do=modules&act=edit&id=' . $this->id; return $objTemplate->parse(); } return parent::generate(); }
public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: CANCELLATION ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } return parent::generate(); }
public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ' . utf8_strtoupper($GLOBALS['TL_LANG']['FMD']['iso_stockreport'][0]) . ' ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } return parent::generate(); }
/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: ORDER HISTORY ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } $this->iso_config_ids = deserialize($this->iso_config_ids); if (FE_USER_LOGGED_IN !== true || !is_array($this->iso_config_ids) || !count($this->iso_config_ids)) { return ''; } return parent::generate(); }
/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: SHIPPING CALCULATOR ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } $this->arrShippingMethods = deserialize($this->iso_shipping_modules, true); if (empty($this->arrShippingMethods)) { return ''; } return parent::generate(); }
/** * Display a wildcard in the back end * @return string */ public function generate($blnBackend = false) { if (TL_MODE == 'BE' && !$blnBackend) { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: ORDER DETAILS ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } if ($blnBackend) { $this->backend = true; $this->jumpTo = 0; } return parent::generate(); }
/** * Display a wildcard in the back end * * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE CHECKOUT ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } $this->strCurrentStep = \Haste\Input\Input::getAutoItem('step'); if ($this->strCurrentStep == '') { $this->redirectToNextStep(); } return parent::generate(); }
public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: CART LINK ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } $this->objTarget = \PageModel::findByPk($this->jumpTo); if ($this->objTarget === null) { return ''; } return parent::generate(); }
/** * Display a wildcard in the back end and the never prepend messages in the front end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: MESSAGES ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } // Never prepend messages $this->iso_includeMessages = false; $strBuffer = parent::generate(); if (count($this->Template->messages['value']) > 0) { return $strBuffer; } return ''; }
/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: CUMULATIVE FILTER ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&act=edit&id=' . $this->id; return $objTemplate->parse(); } // Remove setting to prevent override of the module template $this->iso_filterTpl = ''; $this->navigationTpl = $this->navigationTpl ? $this->navigationTpl : 'nav_default'; $this->iso_filterFields = deserialize($this->iso_filterFields); if (!is_array($this->iso_filterFields) || count($this->iso_filterFields) == 0) { // Can't use empty() because its an object property (using __get) return ''; } return parent::generate(); }
/** * Return a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: ADDRESS BOOK ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } if (FE_USER_LOGGED_IN !== true) { return ''; } $this->arrFields = array_unique(array_merge(Isotope::getConfig()->getBillingFields(), Isotope::getConfig()->getShippingFields())); // Return if there are not editable fields if (empty($this->arrFields)) { return ''; } return parent::generate(); }
/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: CART ADDRESS ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } $this->iso_address = deserialize($this->iso_address, true); $this->iso_addressFields = deserialize($this->iso_addressFields, true); if (empty($this->iso_address) || empty($this->iso_addressFields)) { return ''; } // Set the custom member template if ($this->memberTpl != '') { $this->strTemplate = $this->memberTpl; } return parent::generate(); }
/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: PRODUCT FILTERS - DIRECT ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } $this->generateAjax(); // Hide filters in reader mode if the respective setting is enabled if ($this->iso_hide_list && \Input::get('product') != '') { return ''; } // Override the template if ($this->iso_filterTpl) { $this->strTemplate = $this->iso_filterTpl; } $strBuffer = parent::generate(); return $strBuffer; }
/** * Display a wildcard in the back end * @return string */ public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### ISOTOPE ECOMMERCE: PRODUCT READER ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } // Return if no product has been specified if (\Haste\Input\Input::getAutoItem('product', false, true) == '') { if ($this->iso_display404Page) { global $objPage; $objHandler = new $GLOBALS['TL_PTY']['error_404'](); $objHandler->generate($objPage->id); exit; } else { return ''; } } return parent::generate(); }