Prestashop

Prestashop: PrestaShopExeption

Posted on

When inputting the incorrect Product ID. Would like to have this redirected to 404, as of now getting a 500 error that damages SEO To disable this you can disable DEBUG Mode on /config/defines.inc.php   define('_PS_MODE_DEV_', false);   And you will get a 500 Error. I would like to get a 404 Error Instead.  

Prestashop

Prestashop: Add css to affect only one page.

Posted on

    {if $page_name=="index"} {literal} <style> #page { background-color: #FFFFFF; border-top-style: solid; border-top-width: 0; } </style> {/literal} {/if} https://www.prestashop.com/forums/topic/171541-css-for-home-only/ Or for example, for product page I use: {if isset($product->id)} <link rel="canonical" href="{$link->getProductLink($product)}" /> <link rel="stylesheet" href="/themes/default-bootstrap/css/global_criticalpath.css" type="text/css" media="all" /> {* <link rel="stylesheet" href="/themes/default-bootstrap/css/global_criticalpath_rev1.css" type="text/css" media="all" />*} {/if}

Prestashop

Prestashop: Faceted Filter

Posted on

In Prestashop 1.7.4.2 the Price Slider does not work, so you're left with "range lists" which are not helpful.  To kind of control the limits on these "Range Lists" I tweaked the following file:  ps_facetedsearch.php LINE 1026: '.(int) Tools::ps_round($max_price[$currency['id_currency']] * (100 + $max_tax_rate) / 100, 0).')';   Changed to this:   '.(int) Tools::ps_round($max_price[$currency['id_currency']] * (2), […]