Post by sans » Sat Sep 03, 2011 7:22 pm

Hi Guys,
I am using OC 1.5.1.1. I want to move price (include tax and discount) and Add to Cart Button to the top position before Brand in product page (see my attachment).
screen shot.JPG

screen shot.JPG (29.69 KiB) Viewed 2556 times

I am try to move the code below to the top.

Code: Select all

  <?php if ($price) { ?>
      <div class="price"><?php echo $text_price; ?>
        <?php if (!$special) { ?>
        <?php echo $price; ?>
        <?php } else { ?>
        <span class="price-old"><?php echo $price; ?></span> <span class="price-new"><?php echo $special; ?></span>
        <?php } ?>
        <br />
        <?php if ($tax) { ?>
        <span class="price-tax"><?php echo $text_tax; ?> <?php echo $tax; ?></span><br />
        <?php } ?>
        <?php if ($points) { ?>
        <span class="reward"><small><?php echo $text_points; ?> <?php echo $points; ?></small></span> <br />
        <?php } ?>
        <?php if ($discounts) { ?>
        <br />
        <div class="discount">
          <?php foreach ($discounts as $discount) { ?>
          <?php echo sprintf($text_discount, $discount['quantity'], $discount['price']); ?><br />
          <?php } ?>
        </div>
        <?php } ?>
     </div>
       <?php } ?>
I am put that code after <div class="description"> and code

Code: Select all

<div class="cart">
        <div><?php echo $text_qty; ?>
          <input type="text" name="quantity" size="2" value="<?php echo $minimum; ?>" />
          <input type="hidden" name="product_id" size="2" value="<?php echo $product_id; ?>" />
          &nbsp;<a id="button-cart" class="button"><span><?php echo $button_cart; ?></span></a></div>
        <div><span>&nbsp;&nbsp;&nbsp;<?php echo $text_or; ?>&nbsp;&nbsp;&nbsp;</span></div>
        <div><a onclick="addToWishList('<?php echo $product_id; ?>');"><?php echo $button_wishlist; ?></a><br />
          <a onclick="addToCompare('<?php echo $product_id; ?>');"><?php echo $button_compare; ?></a></div>
        <?php if ($minimum > 1) { ?>
        <div class="minimum"><?php echo $text_minimum; ?></div>
        <?php } ?>
      </div>
I am put that code below code price above. But that is not 100% work fine especially for Add to Cart Button.
Can anyone help me to fix it that?

kaos jersey, jersey bola, baju bola, baju bola terbaru, baju bola murah


Active Member

Posts

Joined
Tue Dec 07, 2010 9:18 am

Post by inactiveaccount9912 » Tue Sep 06, 2011 2:44 am

Move this code
<div class="description">
<?php if ($manufacturer) { ?>
<span><?php echo $text_manufacturer; ?></span> <a href="<?php echo $manufacturers; ?>"><?php echo $manufacturer; ?></a><br />
<?php } ?>
<span><?php echo $text_model; ?></span> <?php echo $model; ?><br />
<span><?php echo $text_reward; ?></span> <?php echo $reward; ?><br />
<span><?php echo $text_stock; ?></span> <?php echo $stock; ?></div>
Right before this another piece of code
<?php if ($review_status) { ?>
<div class="review">
<div><img src="catalog/view/theme/default/image/stars-<?php echo $rating; ?>.png" alt="<?php echo $reviews; ?>" />&nbsp;&nbsp;<a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $reviews; ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a onclick="$('a[href=\'#tab-review\']').trigger('click');"><?php echo $text_write; ?></a></div>
<div class="share">

Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Post by sans » Thu Sep 08, 2011 12:51 pm

Thanks, work fine.

kaos jersey, jersey bola, baju bola, baju bola terbaru, baju bola murah


Active Member

Posts

Joined
Tue Dec 07, 2010 9:18 am

Post by conglm » Fri Oct 05, 2012 6:17 pm

in the OP 1.5.4.1 i want move :
Add to Wish List
Add to Compare
Add to Cart
Image

I move it in featured but i don't find url of file in catalog

Welcome HBCo - In Pro We True : www.hbc.vn


New member

Posts

Joined
Mon Jan 11, 2010 4:01 pm
Location - Vietnam
Who is online

Users browsing this forum: No registered users and 27 guests