Hi all,
I'm not a code person and don't know a thing about php coding. I have an issue with my site. The new products page and all products page load but it says, more products will be added soon and check back later. Same thing with my new products page.
I have about 1100 products on the site, and recently added about 40 in the past 3 weeks so both these pages should show something.
Google is telling me those are all error pages with soft 404's.
My error log shows this - Invalid argument supplied for foreach() in /home/cocomilk/public_html/shoppingcart/myadminfoldername/template_select.php on line 190
I recently added a new template everything else is working great From forums I've read here this code could be the problem and I tried the classic template and it's the same problem there.
Below is the code from that area of the file. I was hoping someone could help me out if this is indeed my problem.
<?php
if($template_img_array == true){
foreach($template_select_val['screenshot'] as $screen_shot){
echo zen_image(DIR_WS_CATALOG_TEMPLATE . $key . '/images/' .$screen_shot, $key, 699).'<br/>';
}
}
else{
echo zen_image($template_select_img, $key, 699);
}
?>
Thanks in advance for any advice or suggestions, I appreciate it,
Linda
Bookmarks