Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

    Default Index Page <New Products for> Product Arrangement

    Where do I find the .php file the change the layout on the index page only for New Products for April to view Product Name, Img, Price???
    Right now it shows Img, Product Name, Price

    http://www.haredo.com

    Mark,

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,197
    Plugin Contributions
    0

    Default Re: Index Page <New Products for> Product Arrangement

    Quote Originally Posted by haredo View Post
    Where do I find the .php file the change the layout on the index page only for New Products for April to view Product Name, Img, Price???
    Right now it shows Img, Product Name, Price
    Found the solution:

    includes/modules/new_products.php
    Look for:
    '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);

    Replace with:
    'text' => '<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 />' .(($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=' . (int)$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 />') . $products_price);

    Place in your override directory of course.
    includes/modules/yourtemplate/new_products.php

    Thanks TMC_Sherpa for a prevous thread on a similiar situation...

    Mark,

 

 

Similar Threads

  1. v151 Arrangement of Featured Products, Monthly Specials, and New Products on Main Page
    By kelly60 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Nov 2014, 10:27 PM
  2. [problem]index page, new product for this month
    By kitkitng in forum General Questions
    Replies: 2
    Last Post: 8 Jul 2011, 06:18 PM
  3. funny arrangement in New Products
    By jenpen in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 May 2010, 07:22 AM
  4. How to show catagory new products index in products info page?
    By eric2008 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Jun 2008, 03:22 PM
  5. New Products on index page.....
    By Linux in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 May 2007, 02:39 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