Forums / Templates, Stylesheets, Page Layout / Less products in whats new

Less products in whats new

Locked

Views: 1,626

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
16 Mar 2009, 1:45 PM
#1
shotormorgh avatar

shotormorgh

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Less products in whats new

Hi,

I've been trying to find a way to change the number of products showed within the whats new box from 9 to 6... but I can't seem to find this anywhere.

I've looked in the admin area > configuration > layout .. and the listings but I can't find a way to do this.

edit:

Prefably I'd also like to remove the style="width:33%" so I can do this through CSS...

16 Mar 2009, 1:49 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Less products in whats new

admin > config > maximum values > New Products Module > set to your max

Zen-Venom Get Bitten

16 Mar 2009, 1:58 PM
#3
shotormorgh avatar

shotormorgh

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Re: Less products in whats new

kobra:

admin > config > maximum values > New Products Module > set to your max

Wow.. that was easy...

don't suppose theres an easy way to change the order of What's new - featured - specials?

right now it's

Whats new
featured
specials

i want:

featured
specials
whats new

Also is there a way to remove

style="width:33%;"

from:

    <div class="centerBoxContentsNew centeredContent back" style="width:33%;">
16 Mar 2009, 2:15 PM
#5
shotormorgh avatar

shotormorgh

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Re: Less products in whats new

kobra:

Not as easy...look towards the end of this post
http://www.zen-cart.com/forum/showthread.php?t=118972

The thing is, it seems like it's already in the right order ... :huh:

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
<?php
/**
 * display the Featured Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>

<?php
  $show_display_category = $db->Execute(SQL_SHOW_PRODUCT_INFO_MAIN);
  while (!$show_display_category->EOF) {
?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS') { ?>
<?php
/**
 * display the Featured Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_featured_products.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_featured_products.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS') { ?>
<?php
/**
 * display the Special Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_specials_default.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_specials_default.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS') { ?>
<?php
/**
 * display the New Products Center Box
 */
?>
<?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
<?php } ?>

<?php if ($show_display_category->fields['configuration_key'] == 'SHOW_PRODUCT_INFO_MAIN_UPCOMING') { ?>
<?php
/**
 * display the Upcoming Products Center Box
 */
?>
<?php include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_UPCOMING_PRODUCTS)); ?><?php } ?>
16 Mar 2009, 2:28 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Less products in whats new

:oops: I sent you to a thread where they wanted this before the main page text content.....

admin > config > index listing > Set the order

Show New Products on Main Page
Show Featured Products on Main Page
Show Special Products on Main Page

Zen-Venom Get Bitten

16 Mar 2009, 2:53 PM
#7
shotormorgh avatar

shotormorgh

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Re: Less products in whats new

kobra:

:oops: I sent you to a thread where they wanted this before the main page text content.....

admin > config > index listing > Set the order

Show New Products on Main Page
Show Featured Products on Main Page
Show Special Products on Main Page

Thanks man .. that worked...

One last question to get me on my way..

The what's new, featured and specials...

Which template file do they correspond to?

edit:

What I'm trying to do is add a class to the link within the Product name

html now:

<div class="centerBoxWrapper" id="featuredProducts">
<h2 class="centerBoxHeading">Aanbiedingen</h2>
    <div class="centerBoxContentsFeatured centeredContent back" style="width:33%;"><a href="http://www.forceone.nl/index.php?main_page=product_info&cPath=2&products_id=8"><img src="images/no_picture.gif" alt="gdgs" title=" gdgs " width="100" height="80" /></a><br /><a href="http://www.forceone.nl/index.php?main_page=product_info&cPath=2&products_id=8">gdgs</a><br />€76.00</div>

to:

<a class="m-link" href="http://www.forceone.nl/index.php?main_page=product_info&cPath=2&products_id=8">gdgs</a>
17 Mar 2009, 4:11 AM
#8
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Less products in whats new

I believe it's:

includes/modules/featured_products.php
includes/modules/specials_index.php
includes/modules/new_products.php

Copy them to your override folder [includes/modules/CUSTOM] and edit as needed

HunnyBee Design
"A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe