Post by willy928 » Thu Jan 26, 2017 12:37 am

I would like to delete a few things on the "Latest Aside" module for Open Cart. In its current static form the module displays from top to bottom on the desired page:
Thumbnail
Name
Price
Shopping Cart Button
Compare/others
I would only like the thumbnail and name to appear. Any help would be cheerfully accepted.

Newbie

Posts

Joined
Wed Jan 25, 2017 1:04 am

Post by uksitebuilder » Thu Jan 26, 2017 1:21 am

You simply need to edit catalog/view/theme/yourtheme/template/extension/module/latest.tpl

Delete the parts you don't want.

e.g.

Code: Select all

        <p><?php echo $product['description']; ?></p>
        <?php if ($product['rating']) { ?>
        <div class="rating">
          <?php for ($i = 1; $i <= 5; $i++) { ?>
          <?php if ($product['rating'] < $i) { ?>
          <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
          <?php } else { ?>
          <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
          <?php } ?>
          <?php } ?>
        </div>
        <?php } ?>
        <?php if ($product['price']) { ?>
        <p class="price">
          <?php if (!$product['special']) { ?>
          <?php echo $product['price']; ?>
          <?php } else { ?>
          <span class="price-new"><?php echo $product['special']; ?></span> <span class="price-old"><?php echo $product['price']; ?></span>
          <?php } ?>
          <?php if ($product['tax']) { ?>
          <span class="price-tax"><?php echo $text_tax; ?> <?php echo $product['tax']; ?></span>
          <?php } ?>
        </p>
        <?php } ?>
      </div>
      <div class="button-group">
        <button type="button" onclick="cart.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $button_cart; ?></span></button>
        <button type="button" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>" onclick="wishlist.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-heart"></i></button>
        <button type="button" data-toggle="tooltip" title="<?php echo $button_compare; ?>" onclick="compare.add('<?php echo $product['product_id']; ?>');"><i class="fa fa-exchange"></i></button>

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by willy928 » Mon Jan 30, 2017 11:42 pm

That was easy and thank you!

Newbie

Posts

Joined
Wed Jan 25, 2017 1:04 am
Who is online

Users browsing this forum: No registered users and 7 guests