Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default new_products.php - replacing $new_products->fields['products_name'] with manufacturer

    I'm trying to change the text under the thumbnails on my Empty Cart page when it displays the list of new products instead of just an empty page.

    This is not controlled by the same files as the main new products page and so it displays different text under the images.

    I’m trying to replace the products_id (or is it called products_name?) with whatever generates the ‘manufacturers id' or 'manufacturers name')

    So, I’d quite like to get from this:

    to this:


    I’m just not sure how to call for the manufacturers name instead of the products_name.

    Can anyone tell me how I need to alter the php file? This is the line that controls this text at the moment:
    PHP Code:
        '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']), 'cPath=' $productsInCategory[$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_WIDTHIMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<a href="' zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' $productsInCategory[$new_products->fields['products_id']] . '&products_id=' $new_products->fields['products_id']) . '">' $new_products->fields['products_name'] . '</a><br />' $new_products->fields['products_model'] .$products_model .'<br />' .$products_price.'<br /><p>' ); 
    Last edited by limelites; 15 Mar 2009 at 10:59 AM.

 

 

Similar Threads

  1. Display slideshow at main page and hide in other pages like new_products
    By ritesh.shrestha in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Sep 2011, 05:50 PM
  2. Upcoming products in new_products
    By Lopi in forum Customization from the Admin
    Replies: 6
    Last Post: 23 Mar 2010, 12:57 PM
  3. Replies: 4
    Last Post: 23 Feb 2010, 11:35 AM
  4. Product list replacing dropdown manufacturer filter with images
    By roboto in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 12 Sep 2009, 06:37 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