Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    help question Featured Products(on index): Need to change product image & title order

    Hi,
    as the title describe, I need to shift the title of the product over the image in FEATURED PRODUCTS area in index page. In default zen setup products are listed like:
    IMAGE
    TITLE
    PRICE

    I want to change it to:
    TITLE
    IMAGE
    PRICE

    Any help will be appreciated.

  2. #2
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Featured Products(on index): Need to change product image & title order

    any body?

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Featured Products(on index): Need to change product image & title order

    Using your templates and overrides, customize the module for the featured_products.php and change the order of the content in this section of code:
    Code:
        $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><br />') . '<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);
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Featured Products(on index): Need to change product image & title order

    Thanks Ajeh for your response.
    I am editing the correct file and piece of code your mentioned. But when I try to move the image code and save it the index shows nothing. Can you tell me precise code fromat.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Featured Products(on index): Need to change product image & title order

    Try changing it to:
    Code:
        $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
        'text' => '<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 />' . ( ($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><br />') . $products_price);
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Featured Products(on index): Need to change product image & title order

    Thank you so so much. I was stuck in this code for last 2 days. Thanks a lot for your help.

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Featured Products(on index): Need to change product image & title order

    You are most welcome, thanks for the update that this worked for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Featured Products(on index): Need to change product image & title order

    One more question plz............... how can i add 'In Stock' to this piece of code? When the product is out of stock than it may show "Sold out".

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Featured Products(on index): Need to change product image & title order

    This will give you the image:
    Code:
    zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT);
    you need to add to the SELECT the products_quantity and add a test for <= 0 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Dec 2009
    Posts
    19
    Plugin Contributions
    0

    Default Re: Featured Products(on index): Need to change product image & title order

    Please if you can explain where to put it...I havnt thorough knowledge of php & sql.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. I got (- Featured Products) in my every page and product title
    By jennydutch in forum General Questions
    Replies: 5
    Last Post: 31 Jul 2014, 05:19 PM
  2. Featured products main pg change order
    By kburner in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 4 Nov 2010, 10:12 PM
  3. coding the new products title, featured products title, category titles
    By AirsoftOutfitter in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Aug 2010, 12:08 AM
  4. Turn off 'New Products' & 'Featured Products' in product listing.
    By miles in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 27 Jul 2009, 07:28 AM
  5. Change Featured Products header to an image
    By bobdog in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 2 Nov 2008, 09:32 AM

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