Jump to content

Layered Navigation block module causing $0 price in Category View


Recommended Posts

Prestashop version 1.5.4.1

Layered navigation block Version: 1.8.9

 

Issue: Layered navigation module is causing prices to show up as $0 when viewing in categories.

 

I initially thought I had this $0 price issue fixed in > this thread < but I then realized I had to disable the Layered Navigation module in order to fix the $0 Price showing in Category view. So the "Fix", if you don't mind not having Layered Navigation, is disabling that module, but I'd like to find out what is causing this so I can enable that module again.

 

I can't seem to figure out what it is about the Layered Navigation module that is causing this.

 

Anyone have any ideas?

Link to comment
Share on other sites

  • 4 months later...
  • 4 months later...
  • 1 year later...

Hi,

 

You can modify in blocklayered.php in function ajaxCall() and before $smarty->assign( ) global $currency;

 and in $smarty->assign() will be like this

$smarty->assign(
            array(
                'homeSize' => Image::getSize('home'),
                'nb_products' => $nb_products,
                'category' => (object)array('id' => Tools::getValue('id_category_layered', 1)),
                'pages_nb' => (int)($pages_nb),
                'p' => (int)$p,
                'n' => (int)$n,
                'range' => (int)$range,
                'start' => (int)$start,
                'stop' => (int)$stop,
                'n_array' => ((int)Configuration::get('PS_PRODUCTS_PER_PAGE') != 10) ? array((int)Configuration::get('PS_PRODUCTS_PER_PAGE'), 10, 20, 50) : array(10, 20, 50),
                'comparator_max_item' => (int)(Configuration::get('PS_COMPARATOR_MAX_ITEM')),
                'products' => $products,
                'products_per_page' => (int)Configuration::get('PS_PRODUCTS_PER_PAGE'),
                'static_token' => Tools::getToken(false),
                'page_name' => 'category',
                'nArray' => $nArray,
                'currencySign' => $currency->sign, /
                'currencyRate' => $currency->conversion_rate,
                'currencyFormat' => $currency->format,
                'currencyBlank' => $currency->blank,
            )
        );

 

Need to add the last 4 lines.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...