The Theme installed without a hitch, but when I try to search or click on a category, I get this error:
Parse error: syntax error, unexpected T_ENDFOREACH in C:\wamp\www\magento\app\design\frontend\default\modern\template\checkout\cart\sidebar.phtml on line 61
Do I need to change something else? I’m at a loss…
Parse error: syntax error, unexpected T_ENDFOREACH in C:\wamp\www\projects\magento\app\design\frontend\default\modern\template\checkout\cart\sidebar.phtml on line 61
Here’s the code in that line:
<?php foreach($_items as $_item): ?> <li class="item"> <div class="product-images"> <a href="<?php echo $_item->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($_item->getThumbnailObject(), 'thumbnail')->resize(50, 50)->setWatermarkSize('30x10'); ?>" alt="<?php echo $_item->getProductName() ?>" width="50" height="50" /></a> </div> <div class="product-details"> <a href="<?php echo $this->getRemoveItemUrl($_item) ?>" onclick="return confirm('<?php echo $this->__('Are you sure you would like to remove this item from the shopping cart?') ?>');" class="widget-btn"><img src="<?php echo $this->getSkinUrl('images/list_remove_btn.gif') ?>" alt="<?php echo $this->__('Remove Product') ?>"/></a> <a href="<?php echo $_item->getProductUrl() ?>"><?php echo $_item->getProductName() ?></a> <?php echo $_item->getProductDescription() ?> <?php if(!$_item->getProductDescription()):?><br/><?endif;?><strong><?php echo 1*$_item->getQty() ?></strong> x <?php echo Mage::helper('core')->currency($_item->getPrice()) ?> </div> </li> <?php endforeach; ?>