Jump to content


Photo
- - - - -

featured module's cart position


6 replies to this topic

#1 mananwin

mananwin

    Member

  • Members
  • PipPip
  • 26 posts

Posted 03 February 2015 - 05:24 PM

hello.

 

i am using opencart 2.0.1.1. i have removed wishlist and compare button from featured module and latest module also from catagory page. Now Cart button is positioned at the left side (as wishlist and compare button are removed). I want to place it to the center.. Can you please tell me that how to do that work...

i will be thankful to you.

 

here is my featured module code (after removing wish and compare button)

path: catalog/view/theme/default/template/module/featured.tpl

 

<h3><?php echo $heading_title; ?></h3>
<div class="row">
  <?php foreach ($products as $product) { ?>
  <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
    <div class="product-thumb transition">
      <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" title="<?php echo $product['name']; ?>" class="img-responsive" /></a></div>
      <div class="caption">
        <h4><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></h4>
        <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 align="center">
        <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>
      </div>
    </div>
  </div>
  <?php } ?>
</div>

 

 

 

 

i have attached the picture of it.

 

Note: Same is the case in Category page.  Please tell me solution for both the cases...

 

i will be thankful to youl

Attached Thumbnails

  • Capture.JPG

Edited by mananwin, 03 February 2015 - 05:25 PM.

  • 0

#2 mananwin

mananwin

    Member

  • Members
  • PipPip
  • 26 posts

Posted 04 February 2015 - 05:02 PM

please answer someone of my query.


  • 0

#3 mananwin

mananwin

    Member

  • Members
  • PipPip
  • 26 posts

Posted 05 February 2015 - 01:25 PM

figured out going through a hactic search.


  • 0

#4 Guest (guest)

Guest (guest)
  • Guests

Posted 28 February 2015 - 02:59 AM

could you please tell me the solution for this?

 


  • 0

#5 Guest (guest)

Guest (guest)
  • Guests

Posted 28 February 2015 - 06:02 AM

go to catelogue/view/theme/default/stylesheet/stylesheet.css

 

edit it and find (.product-thumb .button-group button) class, it will be on 615 to 630 line, mine on 622 line. change width from 60% to 100%.

 

 


  • 0

#6 mananwin

mananwin

    Member

  • Members
  • PipPip
  • 26 posts

Posted 28 February 2015 - 06:04 AM

please reply if it solve your query...


  • 0

#7 Guest (guest)

Guest (guest)
  • Guests

Posted 01 March 2015 - 01:38 AM

Thank you very much, that did the trick. Also, on mobile do you know why the add to cart text isn't displayed on category page ?


  • 0



Reply to this topic



  



 

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Community Skin by Fredson Nunes Junior