public function displayContent()
 {
     parent::displayContent();
     if ($this->supplier) {
         self::$smarty->display(_PS_THEME_DIR_ . 'supplier.tpl');
     } else {
         self::$smarty->display(_PS_THEME_DIR_ . 'supplier-list.tpl');
     }
 }
 public function displayContent()
 {
     if (Tools::isAjaxRequest()) {
         echo json_encode(array('blockcallback_error' => self::$smarty->get_template_vars('blockcallback_error'), 'blockcallback_msg' => self::$smarty->get_template_vars('blockcallback_msg')));
     } else {
         parent::displayContent();
         self::$smarty->display(_PS_THEME_DIR_ . 'category.tpl');
     }
 }
 public function displayContent()
 {
     parent::displayContent();
     if ($this->success) {
         self::$smarty->display(_TAS_THEME_DIR_ . 'success.tpl');
     } else {
         self::$smarty->display(_TAS_THEME_DIR_ . 'forgotpassword.tpl');
     }
 }
 public function displayContent()
 {
     parent::displayContent();
     global $isBetaUser;
     if ($isBetaUser) {
         self::$smarty->display(_PS_THEME_DIR_ . 'beta/addresses.tpl');
     } else {
         self::$smarty->display(_PS_THEME_DIR_ . 'addresses.tpl');
     }
 }
 public function displayContent()
 {
     global $isBetaUser;
     parent::displayContent();
     if ($isBetaUser) {
         self::$smarty->display(_PS_THEME_DIR_ . 'beta/history.tpl');
     } else {
         self::$smarty->display(_PS_THEME_DIR_ . 'history.tpl');
     }
 }
 public function displayContent()
 {
     parent::displayContent();
     $customer = new Customer((int) self::$cart->id_customer);
     $address_invoice = new Address((int) self::$cart->id_address_invoice);
     $country = new Country((int) $address_invoice->id_country);
     $currency = new Currency((int) self::$cart->id_currency);
     $countries = $this->klarna->getCountries();
     $type = Tools::getValue('type');
     if ($this->klarna->verifCountryAndCurrency($country, $currency) && ($type == 'invoice' || $type == 'account' || $type == 'special')) {
         $pno = array('SE' => 'yymmdd-nnnn', 'FI' => 'ddmmyy-nnnn', 'DK' => 'ddmmyynnnn', 'NO' => 'ddmmyynnnn', 'DE' => 'ddmmyy', 'NE' => 'ddmmyynnnn');
         self::$smarty->assign('country', $country);
         self::$smarty->assign('pnoValue', $pno[$country->iso_code]);
         self::$smarty->assign('iso_code', strtolower($country->iso_code));
         $i = 1;
         while ($i <= 31) {
             if ($i < 10) {
                 $days[] = '0' . $i;
             } else {
                 $days[] = $i;
             }
             $i++;
         }
         $i = 1;
         while ($i <= 12) {
             if ($i < 10) {
                 $months[] = '0' . $i;
             } else {
                 $months[] = $i;
             }
             $i++;
         }
         $i = 2000;
         while ($i >= 1910) {
             $years[] = $i--;
         }
         $houseInfo = $this->getHouseInfo($address_invoice->address1);
         self::$smarty->assign(array('days' => $days, 'customer_day' => (int) substr($customer->birthday, 8, 2), 'months' => $months, 'customer_month' => (int) substr($customer->birthday, 5, 2), 'years' => $years, 'customer_year' => (int) substr($customer->birthday, 0, 4), 'street_number' => $houseInfo[1], 'house_ext' => $houseInfo[2]));
         if ($type == 'invoice') {
             $total = self::$cart->getOrderTotal() + (double) Product::getPriceStatic((int) Configuration::get('KLARNA_INV_FEE_ID_' . $countries[$country->iso_code]['name']));
         } else {
             $total = self::$cart->getOrderTotal();
         }
         self::$smarty->assign(array('total_fee' => $total, 'fee' => $type == 'invoice' ? (double) Product::getPriceStatic((int) Configuration::get('KLARNA_INV_FEE_ID_' . $countries[$country->iso_code]['name'])) : 0));
         if ($type == 'account') {
             self::$smarty->assign('accountPrice', $this->getMonthlyCoast(self::$cart, $countries, $country));
         }
         if ($customer->id_gender != 1 && $customer->id_gender != 2 && $customer->id_gender != 3 && ($country->iso_code == 'DE' || $country->iso_code == 'NL')) {
             self::$smarty->assign('gender', Gender::getGenders()->getResults());
         }
         self::$smarty->assign('linkTermsCond', $type == 'invoice' ? 'https://online.klarna.com/villkor' . ($country->iso_code != 'SE' ? '_' . strtolower($country->iso_code) : '') . '.yaws?eid=' . (int) Configuration::get('KLARNA_STORE_ID_' . $countries[$country->iso_code]['name']) . '&charge=' . round((double) Product::getPriceStatic((int) Configuration::get('KLARNA_INV_FEE_ID_' . $countries[$country->iso_code]['name'])), 2) : 'https://online.klarna.com/account_' . strtolower($country->iso_code) . '.yaws?eid=' . (int) Configuration::get('KLARNA_STORE_ID_' . $countries[$country->iso_code]['name']));
         self::$smarty->assign('payment_type', Tools::safeOutput($type));
         self::$smarty->display(_PS_MODULE_DIR_ . 'klarnaprestashop/tpl/form.tpl');
     }
 }
 public function displayContent()
 {
     parent::displayContent();
     if ($this->success) {
         self::$smarty->display(_TAS_THEME_DIR_ . 'resetsuccess.tpl');
     } elseif ($this->expired) {
         self::$smarty->display(_TAS_THEME_DIR_ . 'passwordexpired.tpl');
     } else {
         self::$smarty->display(_TAS_THEME_DIR_ . 'resetpassword.tpl');
     }
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'helpanorphan.tpl');
 }
 public function displayContent()
 {
     $_POST = array_merge($_POST, $_GET);
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'contact-form.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     if ($_POST["booking"] == 'finish') {
         self::$smarty->display(_TAS_THEME_DIR_ . 'booking_finish.tpl');
     } else {
         if ($_POST["booking"] == 'payment') {
             self::$smarty->display(_TAS_THEME_DIR_ . 'paymentsuccess.tpl');
         } else {
             if ($_POST["booking"] == 'calculate') {
                 self::$smarty->display(_TAS_THEME_DIR_ . 'booking_order.tpl');
             } else {
                 // view
                 if ($_REQUEST['voucher']) {
                     self::$smarty->display(_TAS_THEME_DIR_ . 'booking_confirm_voucher.tpl');
                 } else {
                     if ($_REQUEST['vouch_info']) {
                         self::$smarty->display(_TAS_THEME_DIR_ . 'hotelvoucher.tpl');
                     } else {
                         self::$smarty->display(_TAS_THEME_DIR_ . 'booking_confirm.tpl');
                     }
                 }
             }
         }
     }
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'guest-tracking.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'order-follow.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     $this->_processAddressFormat();
     self::$smarty->display(_PS_THEME_DIR_ . 'address.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     $this->display();
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_TAS_THEME_DIR_ . 'booking_order.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_TAS_THEME_DIR_ . 'roomplanedit.tpl');
 }
 /**
  * Display front office tpl
  */
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(dirname(__FILE__) . '/../search.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->assign(array('HOOK_RIGHTPRODUCTCOLUMN' => Module::hookExec('rightColumn', array('cart' => self::$cart))));
     self::$smarty->display(_PS_THEME_DIR_ . 'product.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_TAS_THEME_DIR_ . 'hotelpage.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'products-comparison.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'prices-drop.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_TAS_THEME_DIR_ . 'adminlist.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     parent::process();
     self::$smarty->assign(array('HOOK_CATEGORY_LEFT' => Module::hookExec('categoryleft'), 'HOOK_HOME_CATEGORY' => Module::hookExec('homecategory')));
     self::$smarty->display(_PS_THEME_DIR_ . 'category.tpl');
 }
Beispiel #24
0
 public function displayContent()
 {
     parent::displayContent();
     echo Context::getContext()->smarty->fetch($this->template);
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'my-account.tpl');
 }
 public function displayContent()
 {
     $this->processAddressFormat();
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'authentication.tpl');
 }
 public function displayContent()
 {
     if ((int) Tools::getValue('pp') == 1) {
         $time1 = time();
         echo 'displayContent: ' . $time1;
     }
     global $isBetaUser;
     parent::displayContent();
     if ($this->is_saree) {
         self::$smarty->display(_PS_THEME_DIR_ . 'product.tpl');
     } else {
         if ($this->is_skd) {
             self::$smarty->display(_PS_THEME_DIR_ . 'product-skd.tpl');
         } else {
             if ($this->is_skd_rts) {
                 self::$smarty->display(_PS_THEME_DIR_ . 'product-skd-rts.tpl');
             } else {
                 if ($this->is_lehenga) {
                     self::$smarty->display(_PS_THEME_DIR_ . 'product-lehenga.tpl');
                 } else {
                     if ($this->is_cholis) {
                         self::$smarty->display(_PS_THEME_DIR_ . 'product-choli.tpl');
                     } else {
                         if ($this->is_giftcard) {
                             self::$smarty->display(_PS_THEME_DIR_ . 'product-giftcard.tpl');
                         } else {
                             if ($this->is_jewelry) {
                                 self::$smarty->display(_PS_THEME_DIR_ . 'product-jewelry.tpl');
                             } else {
                                 if ($this->is_kids) {
                                     self::$smarty->display(_PS_THEME_DIR_ . 'product-kids.tpl');
                                 } else {
                                     if ($this->is_men) {
                                         self::$smarty->display(_PS_THEME_DIR_ . 'product-men.tpl');
                                     } else {
                                         if ($this->is_handbag) {
                                             self::$smarty->display(_PS_THEME_DIR_ . 'product-handbag.tpl');
                                         } else {
                                             self::$smarty->display(_PS_THEME_DIR_ . 'product-skd.tpl');
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     if ((int) Tools::getValue('pp') == 1) {
         $time1 = time();
         echo 'displaydone: ' . $time1;
     }
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'index.tpl');
     self::$smarty->display(_PS_THEME_DIR_ . 'category.tpl');
 }
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_THEME_DIR_ . 'stores.tpl');
 }
Beispiel #30
0
 public function displayContent()
 {
     parent::displayContent();
     self::$smarty->display(_PS_MODULE_DIR_ . 'merchantware/tpl/redirect.tpl');
 }