Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2007
    Posts
    4
    Plugin Contributions
    0

    Default manufacturer name in feature product centerbox

    How to remove price and add manufacturer name in feature (or new) products centerbox?

  2. #2

    Default Re: manufacturer name in feature product centerbox

    You can find this under admin->configuration->Featured Listing/New Listing
    http://www.customscripts.co.za - Custom development for open-source applications

    http://www.pcservice.co.za - Website Development, Domain Registration, Hosting

  3. #3
    Join Date
    Feb 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: manufacturer name in feature product centerbox

    I mean centerbox not listing page. I know where I have to make changes (/includes/modules/featured_products.php) but I don't know how.

    This code should be changed, am I right? But how??


    Code:
     
    while (!$featured_products->EOF) {
        $products_price = zen_get_products_display_price($featured_products->fields['products_id']);
        $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']), '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><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);
        $col ++;
        if ($col > (SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS - 1)) {
          $col = 0;
          $row ++;
        }
        $featured_products->MoveNextRandom();
      }

  4. #4
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: manufacturer name in feature product centerbox

    change that section of code you posted to this:
    Code:
      while (!$featured_products->EOF) {
    
        $products_manufacturer = zen_get_products_manufacturers_name($featured_products->fields['products_id']);
    
        $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '&#37;;"',
        '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']), '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><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_manufacturer);
    
        $col ++;
        if ($col > (SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS - 1)) {
          $col = 0;
          $row ++;
        }
        $featured_products->MoveNextRandom();
      }
    then save the edited file as includes/modules/your_template/featured_products.php
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  5. #5
    Join Date
    Feb 2007
    Posts
    4
    Plugin Contributions
    0

    Default Re: manufacturer name in feature product centerbox

    it works excellent,
    thanks a lot! you're great! ...ZEN CART too :)

    First time I heard about ZC month ago, now my gallery is almost done! super, zajebiscie :)

    polishartgallery.eu

    log: testy
    pas: testy
    (temporarily)

  6. #6
    Join Date
    Nov 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: manufacturer name in feature product centerbox

    Does anyone know how to change the manufacturers name in this so that the manufacturers name is a link to the manufacturers products? I can't seem to make it work.

    Code:
      while (!$featured_products->EOF) {
    
        $products_manufacturer = zen_get_products_manufacturers_name($featured_products->fields['products_id']);
    
        $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']), '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><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_manufacturer);
    
        $col ++;
        if ($col > (SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS - 1)) {
          $col = 0;
          $row ++;
        }
        $featured_products->MoveNextRandom();
      }
    I have got the name there, but need it to be a link.

    Thanks for any help,
    Ladybugmom

  7. #7
    Join Date
    Nov 2008
    Posts
    40
    Plugin Contributions
    0

    Default Re: manufacturer name in feature product centerbox

    Quote Originally Posted by ladybugmom View Post
    Does anyone know how to change the manufacturers name in this so that the manufacturers name is a link to the manufacturers products? I can't seem to make it work.

    Code:
      while (!$featured_products->EOF) {
    
        $products_manufacturer = zen_get_products_manufacturers_name($featured_products->fields['products_id']);
    
        $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']), '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><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_manufacturer);
    
        $col ++;
        if ($col > (SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS - 1)) {
          $col = 0;
          $row ++;
        }
        $featured_products->MoveNextRandom();
      }
    I have got the name there, but need it to be a link.

    Thanks for any help,
    Ladybugmom
    I was able to turn this into a link, but can't figure out why it won't go to the manufacturers page.

    Code:
    $products_manufacturer ='<a href="' . zen_href_link(FILENAME_DEFAULT,'manufacturers_id=' . $new_products->fields['manufacturers_id']). '">' .  zen_get_products_manufacturers_name($new_products->fields['products_id']) . '</a>'
    Any ideas?

    Thank you,
    Ladybugmom

  8. #8
    Join Date
    Apr 2011
    Posts
    5
    Plugin Contributions
    0

    Default Re: manufacturer name in feature product centerbox

    hi

    i know this is probably the wrong thread but would somebody be so kind as to help?

    My supplier gave me a csv but with no manufacturer name in a separate field and is being a pain in supplying csv's with them! What i would like to do is either show the manufacturers' names above every image and title.

    or if that's not possible, one or the other would also be great. Thank you in advance

  9. #9
    Join Date
    Sep 2011
    Posts
    23
    Plugin Contributions
    0

    Default Re: manufacturer name in feature product centerbox

    On what page(s)?

 

 

Similar Threads

  1. How do I add Manufacturer to Product Info Up top (by product name and price)
    By mikeislearning in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Sep 2011, 06:37 PM
  2. Manufacturer Name in Centerbox Contents
    By LissaE in forum General Questions
    Replies: 8
    Last Post: 26 Dec 2009, 11:13 AM
  3. Truncate Product Name for Monthly Centerbox
    By Berserker in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Jul 2009, 02:35 AM
  4. Make Manufacturer Info box a centerbox
    By jasonsfa98 in forum General Questions
    Replies: 0
    Last Post: 8 Aug 2008, 05:13 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