Example #1
0
*
*  @author PaymentSense <*****@*****.**>
*  @copyright  2013 PaymentSense
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*
This file is part of the Prestashop PaymentSense Re-Directed Payment Module
See paymentsense.php for Licensing and support info.
File Last Modified: 12/03/2013 - By Shaun Ponting - Opal Creations
*/
include dirname(__FILE__) . '/../../config/config.inc.php';
include dirname(__FILE__) . '/../../init.php';
include dirname(__FILE__) . '/paymentsense.php';
$paymentsense = new PaymentSense();
if ($paymentsense->active) {
    if ((int) Configuration::get('PS_REWRITING_SETTINGS') === 1) {
        $rewrited_url = __PS_BASE_URI__;
    }
    /*include(dirname(__FILE__).'/../../header.php');*/
    $controller = new FrontController();
    $controller->init();
    $controller->initContent();
    $controller->setMedia();
    $controller->displayHeader();
    if (!isset($link)) {
        $link = new Link();
    }
    $smarty->assign('cartURL', $link->getPageLink('order.php?step=1'));
    $smarty->assign('contactURL', $link->getPageLink('contact-form.php'));
    $smarty->display(dirname(__FILE__) . '/views/templates/front/return.tpl');
    $controller->displayFooter();
}
 public function displayFooter()
 {
     if (!$this->instantSearch and !$this->ajaxSearch) {
         parent::displayFooter();
     }
 }
 public function displayFooter()
 {
     if (Tools::getValue('ajax') != 'true') {
         parent::displayFooter();
     }
 }
 public function displayFooter($display = true)
 {
     if (!$this->instant_search && !$this->ajax_search) {
         parent::displayFooter();
     }
 }
Example #5
0
 public function displayFooter()
 {
     if ($this->display_footer) {
         parent::displayFooter();
     }
 }