nomem Posted November 4, 2016 Share Posted November 4, 2016 Hi Brian, I just upgraded to CC6.11 and the lines in the following file are different for the prev::next coding. Where exactly does this code go now? All the other code was ok. I think I know, just want to be sure. Thanks in advance! /classes/catalogue.class.php, at the bottom of the getCategoryProducts() function: Was in 6.12: $productList = $this->getProductData($list, 1, $order, $per_page, $page, true); } return (isset($productList) && is_array($productList)) ? $productList : false; } Changes to be made: Now: $productList = $this->getProductData($list, 1, $order, $per_page, $page, true); } $GLOBALS['session']->set('last_visited_category',$category_id,'client',true); $GLOBALS['session']->set('last_visited_category_product_ids',$list,'client',true); foreach ($GLOBALS['hooks']->load('class.catalogue.category_product_list_return') as $hook) include $hook; return (isset($productList) && is_array($productList)) ? $productList : false; } Now code in 6.11: foreach ($GLOBALS['hooks']->load('class.catalogue.category_product_list') as $hook) include $hook; $productList = $this->getProductData($list, 1, $order, $per_page, $page, true); } foreach ($GLOBALS['hooks']->load('class.catalogue.category_product_list_return') as $hook) include $hook; return (isset($productList) && is_array($productList)) ? $productList : false; } Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 5, 2016 Share Posted November 5, 2016 There is no difference in that section of code (the bottom of getCategoryProducts() function) between CC6012 and CC611. Find: $productList = $this->getProductData($list, 1, $order, $per_page, $page, true); } and add the new statements after them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.