So I just imported a store from 2.x to 3.0.4 and am working on getting everything wrapped up on it. While testing, I tried the quick view and got the “Oops” error. I then pulled up my error log and saw:
[22-Nov-2012 18:15:18] PHP Fatal error: Call to undefined function fn_prepare_product_quick_view() in /home/user/public_html/store/controllers/customer/products.php on line 207
I then pulled up that part of the code and saw:
if (defined('AJAX_REQUEST')) {
fn_prepare_product_quick_view($_REQUEST);
$view->display('views/products/quick_view.tpl');
exit;
}
I'm thinking this has something to do with the ($_REQUEST) part, but I'm not sure.
I then pulled up this part of code from 3.0.3 and saw:
if (defined('AJAX_REQUEST')) {
if (!empty($_REQUEST['prev_url'])) {
$view->assign('redirect_url', $_REQUEST['prev_url']);
}
$view->display('views/products/quick_view.tpl');
exit;
}
Which is obviously different.
When I replaced my 3.0.4 code with my 3.0.3 code, I was then able to bring up the quick view with no errors.
Anyone have any ideas why this is?
Thanks,
Brandon