
This is a link: http://develop.wooma.it/opencart/
It's ok, installation, configuration and templating! But... there are two PHP erros, on header and footer.
Languages and categories modules returns a several errors.
The categories on header is the menu of ecommerce.
The code for my categorie's menu is:
Code: Select all
<?php if ($categories) { ?>
<?php foreach ($categories as $category) { ?>
<div style="display: inline-block; float: left; text-align: center; width: 25%; margin-bottom: 15px;"><a href="<?php echo $category['href']; ?>"><img src="<?php echo $category['thumb']; ?>" title="<?php echo $category['name']; ?>" alt="<?php echo $category['name']; ?>" style="margin-bottom: 3px;" /></a><br />
<a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></div>
<?php } ?>
<?php } ?>
The error is:
Code: Select all
Notice: Undefined variable: categories in /home/w74720/domains/develop.wooma.it/public_html/opencart/catalog/view/theme/default/template/common/header.tpl on line 11
Code: Select all
<?php foreach ($languages as $language) { ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
<div style="display: inline;"><input type="image" src="catalog/view/theme/default/image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" style="position: relative; top: 4px;" />
<input type="hidden" name="language" value="<?php echo $language['code']; ?>" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" /></div>
</form>
<?php } ?>
Where is my problem?
Thank you!