renegade LiteCart Fan From Canada Member since Apr 2025 renegade Apr 15 2025 09:14 PM Hello, I hope I am asking this in the right thread. I am wanting to reduce the number of "Latest Products" to only show 6 items, instead of the currently uneven number of 7 which currently makes a second row. Where would I make this change, please? Thank you, Rene
jackmaessen LiteCart Fan From Netherlands Member since Dec 2022 jackmaessen Apr 15 2025 10:44 PM https://github.com/litecart/litecart/blob/dev/public_html/includes/templates/default.catalog/views/box_latest_products.inc.php#L9 <?php $i = 0; foreach ($products as $product) { $i++; if($i < 7) { echo functions::draw_listing_product($product); } } ?>
jackmaessen LiteCart Fan From Netherlands Member since Dec 2022 jackmaessen Apr 15 2025 11:20 PM <section id="box-latest-products" class="card"> <div class="card-header"> <h2 class="card-title"><?php echo language::translate('title_latest_products', 'Latest Products'); ?></h2> </div> <div class="card-body"> <div class="listing products columns"> <?php $i = 0; foreach ($products as $product) { $i++; if($i < 7) { echo functions::draw_listing_product($product); } } ?> </div> </div> </section>
renegade LiteCart Fan From Canada Member since Apr 2025 renegade Apr 15 2025 11:28 PM Whew!! Thank you again. I got it working now.
vilaiporn LiteCart Fan From Thailand Member since Aug 2017 vilaiporn Apr 16 2025 01:18 AM ? Admin/Setting?listing/Latest Products Box: Number of Items and you set the number you want
jackmaessen LiteCart Fan From Netherlands Member since Dec 2022 jackmaessen Apr 16 2025 08:27 AM Oh....it's so easy. I was not aware of that
renegade LiteCart Fan From Canada Member since Apr 2025 renegade Apr 16 2025 05:29 PM I did not know where to look for it. Thank you to BOTH of you!!