Web Design Forum: Open Cart problem with Special Prices - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Open Cart problem with Special Prices Rate Topic: -----

#1 User is offline   joe2011uk 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 293
  • Joined: 01-December 10
  • Reputation: 11
  • Gender:Male
  • Location:Glasgow
  • Experience:Intermediate
  • Area of Expertise:I'm Learning

Posted 24 May 2011 - 11:33 AM

Hi folks,

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; ?>" >&nbsp;</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
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users