Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    Join Date
    Dec 2006
    Posts
    133
    Plugin Contributions
    0

    Default Re: really easy one tonight

    I never did figure out my center boxes lol. No big deall will just have to keep searching for a answer. For now I will just be left with a huge white space lol

  2. #22
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: really easy one tonight

    Julia,
    what exactly is it you want to do with the center box headings?
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  3. #23
    Join Date
    Dec 2006
    Posts
    133
    Plugin Contributions
    0

    Default Re: really easy one tonight

    well I have my center box on there now and it looks ok just wasn't what I was going for lol. if you look at my site http://www.alloccasionwraps.com I was trying still lol to get my center boxes to look like my side boxes. But I'm ok with how it is now. It would be more appealing all the box headers matched but not a huge deal. Getting my product pictures loaded, now that's a big deal lol.

  4. #24
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: really easy one tonight

    What method did you use to change the headers in your sideboxes? Did you change the defines for the sidebox header to point to the image instead. If thats what you did then search for TABLE_HEADING_NEW_PRODUCTS using the developers toolkit in your admin and change the define for that constant in all the resultant files to point to the image.
    I believe this is the way its done.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  5. #25
    Join Date
    Dec 2006
    Posts
    133
    Plugin Contributions
    0

    Default Re: really easy one tonight

    I used this tutorial https://www.zen-cart.com/tutorials/i...hp?article=135 will do what you recommended and see if it does the trick, thanks

    ok so I looked at this coding and really don't know where I would insert whatever.gif anyone that has time here is the coding I'm looking at, any tips would be wonderful
    <?php
    /**
    * new_products.php module
    *
    * @package modules
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: new_products.php 4629 2006-09-28 15:29:18Z ajeh $
    */
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }
    // display limits
    //$display_limit = zen_get_products_new_timelimit();
    $display_limit = zen_get_new_date_range();

    if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
    $new_products_query = "select p.products_id, p.products_image, p.products_tax_class_id, p.products_price, p.products_date_added
    from " . TABLE_PRODUCTS . " p
    where p.products_status = 1 " . $display_limit;
    } else {
    $new_products_query = "select distinct p.products_id, p.products_image, p.products_tax_class_id, p.products_date_added,
    p.products_price
    from " . TABLE_PRODUCTS . " p
    left join " . TABLE_SPECIALS . " s
    on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " .
    TABLE_CATEGORIES . " c
    where p.products_id = p2c.products_id
    and p2c.categories_id = c.categories_id
    and c.parent_id = '" . (int)$new_products_category_id . "'
    and p.products_status = 1 " . $display_limit;
    }
    $new_products = $db->ExecuteRandomMulti($new_products_query, MAX_DISPLAY_NEW_PRODUCTS);

    $row = 0;
    $col = 0;
    $list_box_contents = array();
    $title = '';

    $num_products_count = $new_products->RecordCount();

    // show only when 1 or more
    if ($num_products_count > 0) {
    if ($num_products_count < SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS || SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS == 0 ) {
    $col_width = floor(100/$num_products_count);
    } else {
    $col_width = floor(100/SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS);
    }

    while (!$new_products->EOF) {

    $products_price = zen_get_products_display_price($new_products->fields['products_id']);

    $new_products->fields['products_name'] = zen_get_products_name($new_products->fields['products_id']);
    $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"' . ' ' . 'style="width:' . $col_width . '&#37;;"',
    'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'products_id=' . $new_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a><br />' . $products_price);

    $col ++;
    if ($col > (SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS - 1)) {
    $col = 0;
    $row ++;
    }
    $new_products->MoveNextRandom();
    }

    if ($new_products->RecordCount() > 0) {
    if (isset($new_products_category_id) && $new_products_category_id != 0) {
    $category_title = zen_get_categories_name((int)$new_products_category_id);
    $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . ($category_title != '' ? ' - ' . $category_title : '' ) . '</h2>';
    } else {
    $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2>';
    }
    $zc_show_new_products = true;
    }
    }
    ?>
    Last edited by julia44; 24 Dec 2006 at 05:38 AM.

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Really Easy Question
    By dandaman992 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 21 May 2008, 01:14 AM
  2. 2 Problems! Really easy fix, need help
    By bajanboost in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 2 Aug 2007, 10:30 AM
  3. Really really hard to customize - any easy hints?
    By douglerner in forum Templates, Stylesheets, Page Layout
    Replies: 26
    Last Post: 6 Apr 2007, 03:03 PM
  4. Really easy question ??? ( I hope )
    By makeup4brides in forum General Questions
    Replies: 7
    Last Post: 4 Jul 2006, 11:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg