Made my own theme for open cart its still in development so its not perfect, but having some problems adding to cart with products with special prices. If a product has a special price on the view cart page it says the price is 0 and it not just view cart page its anywhere that displays total price of cart.
I havent edited any controllers just view files in the theme folder.
Now im not sure what code to post here as I think the problem could lie in all these > category, product and search.tpl. I have posted category.tpl as the rest are quite similar to it.
Category.tpl
<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="dkContent" class="left">
<div id="dkCategoryPageHead">
<h1><?php echo $heading_title; ?></h1>
<?php if ($description) { ?>
<div class="dkCategoryDesc"><?php echo $description; ?></div>
<?php } ?>
</div>
<div class="clear"></div>
<div id="dkProductListCat">
<?php if ($products) { ?>
<div class="sort">
<label for="sort"><?php echo $text_sort; ?></label>
<select name="sort" onchange="location = this.value">
<?php foreach ($sorts as $sorts) { ?>
<?php if (($sort . '-' . $order) == $sorts['value']) { ?>
<option value="<?php echo $sorts['href']; ?>" selected="selected"><?php echo $sorts['text']; ?></option>
<?php } else { ?>
<option value="<?php echo $sorts['href']; ?>"><?php echo $sorts['text']; ?></option>
<?php } ?>
<?php } ?>
</select>
</div>
<div id="dkProductList">
<ul>
<?php foreach($products as $product) { ?>
<li>
<div class="dkProductInfo">
<div class="productImage left">
<a href="<?php echo $product['href']; ?>"><img style="border-width:0px;" src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a>
</div>
<div class="moreInfo right">
<h2><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h2>
</div>
</div>
<div class="dkPrice">
<?php if ($display_price) { ?>
<?php if (!$product['special']) { ?>
<p><span class="dkPrice"><?php echo $product['price']; ?></span></p>
<?php } else { ?>
<div class="dkSpecial">
<p class="price_now"><?php echo $product['special']; ?></p>
<p class="price_was">Was: <span><?php echo $product['price']; ?></span></p>
</div>
<?php } ?>
<?php } ?>
<a class="dkSmallAddCart" href="<?php echo $product['add']; ?>" title="<?php echo $button_add_to_cart; ?>" > </a>
</div>
<div class="clear"></div>
</li>
<?php } ?>
</ul>
<div id="dkPagination">
<?php echo $pagination; ?>
</div>
<?php } ?>
</div>
</div>
<?php echo $footer;?> Really stressed out with this, all help appreciated, Thanks
Joe
Help















