Example #1
0
<?php

try {
    include dirname(__FILE__) . '/config/config.inc.php';
    include dirname(__FILE__) . '/header.php';
    include dirname(__FILE__) . '/product-sort.php';
    $nbProducts = Product::getPricesDropLC(intval($cookie->id_lang), NULL, NULL, true);
    include dirname(__FILE__) . '/pagination.php';
    $smarty->assign(array('products' => Product::getPricesDropLC(intval($cookie->id_lang), intval($p) - 1, intval($n), false, $orderBy, $orderWay), 'nbProducts' => $nbProducts));
    $smarty->display(_PS_THEME_DIR_ . 'prices-drop.tpl');
    include dirname(__FILE__) . '/footer.php';
} catch (Exception $e) {
    echo $e->getMessage();
    echo "<br><bR>";
    foreach ($e->getTrace() as $line) {
        echo "{$line['class']}.{$line['function']} @ {$line['file']}:{$line['line']}<br>";
    }
}