Jump to content

Prev::Next coding in CC6.11


nomem

Recommended Posts

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;

                    }

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...