Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Location
    Grand Rapids, MI
    Posts
    1
    Plugin Contributions
    0

    Default Trying to get category name to display in Featured Product

    I'm trying to find a way to get the category name to display in the featured product display on the homepage. I'm a bit new to Zen Cart, but I've solved a number of problems using the forum. Can't seem to find anything on this, though. Specifically, I'd like to get the category name to display just below the title of the product. I'm pretty sure it's something that needs to be added to this bit of code in Modules > featured_products.php:

    $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
    'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a>') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);
    I know my way around HTML and CSS, and can "fiddle" with PHP, but definitely can't write anything. Any help would be GREATLY appreciated. I'm running Zen Cart 1.3.8a on a Linux machine (PHP Version 5.2.6).

    P.S. Site is here: http://www.churchfuel.com. Here is an image of what I'm trying to accomplish: Thanks!

  2. #2
    Join Date
    Sep 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Trying to get category name to display in Featurd Product

    Im also looking for a way to do this..

  3. #3
    Join Date
    Sep 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Trying to get category name to display in Featurd Product

    Hey, Could you post how you got it like that? : )

  4. #4
    Join Date
    Sep 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: Trying to get category name to display in Featurd Product

    *Bump*****

 

 

Similar Threads

  1. v151 Get category name of linked product
    By perfumbg in forum General Questions
    Replies: 2
    Last Post: 26 Jun 2013, 09:18 PM
  2. How to display Category name or Product name as a tagline?
    By ttmb33 in forum General Questions
    Replies: 0
    Last Post: 19 Jan 2010, 05:47 PM
  3. Code to display Featured Category Name Image Details
    By rahul56008 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Jan 2010, 10:48 PM
  4. Category name is displayed on product. How do I get rid of it?
    By Robert T in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 2 Jul 2006, 07:53 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR