Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2006
    Posts
    5,481
    Plugin Contributions
    12

    Default Change product listing layout?

    While listing products, I want to always display Name first, then image, then price. I managed to set this easily in the admin panel(Configuration-> new listing/all listing/featured listing), and it worked well. However, I can't find a place to set this for the "special" and "also purchased" listing.

    Any help/suggestion is appreciated.
    Regards.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  2. #2
    Join Date
    May 2006
    Posts
    729
    Plugin Contributions
    0

    Default Re: Change product listing layout?

    Hi there,

    How did you make your product listing to be in a column and the images inside a box?

    Thank you

  3. #3
    Join Date
    Oct 2006
    Posts
    5,481
    Plugin Contributions
    12

    Default Re: Change product listing layout?

    Quote Originally Posted by Berserker View Post
    Hi there,

    How did you make your product listing to be in a column and the images inside a box?

    Thank you
    You can view my page source code and css files to see.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: Change product listing layout?

    there is no reordering applied to specials by default, but I'm working on it

    Ah HA! I knew that wall would give way if I hit it long enough
    (lets just say the Jeopardy stopped a loooong time ago)

    check out includes/modules/specials_index.php (you can use overrides, I would)

    Code:
        'text' => (($specials_index->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'products_id=' . (int)$specials_index->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $specials_index->fields['products_image'], $specials_index->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'products_id=' . $specials_index->fields['products_id']) . '">' . $specials_index->fields['products_name'] . '</a><br />' . $products_price);
    and change it to

    Code:
    'text' =>  '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'products_id=' . $specials_index->fields['products_id']) . '">' . $specials_index->fields['products_name'] . '</a><br />' .(($specials_index->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'products_id=' . (int)$specials_index->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $specials_index->fields['products_image'], $specials_index->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . $products_price);
    Um, I'll get back to you on the also purchased
    Last edited by TMC_Sherpa; 14 Apr 2007 at 09:35 PM. Reason: forgot the /includes on the path
    Lazy and willing to work very hard to stay that way

  5. #5
    Join Date
    Oct 2006
    Posts
    5,481
    Plugin Contributions
    12

    Default Re: Change product listing layout?

    Cool, I'm off to edit the file now. please get back to me once you figure out the "also purchase" as well.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  6. #6
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: Change product listing layout?

    well, I should have checked before posting, its more of less the same thing

    includes/modules/also_purchased_products.php

    Code:
     'text' => (($also_purchased_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $also_purchased_products->fields['products_image'], $also_purchased_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . $also_purchased_products->fields['products_name'] . '</a>');
    to

    Code:
     'text' => '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . $also_purchased_products->fields['products_name'] . (($also_purchased_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($also_purchased_products->fields['products_id']), 'products_id=' . $also_purchased_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $also_purchased_products->fields['products_image'], $also_purchased_products->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') .  '</a>');
    Lazy and willing to work very hard to stay that way

 

 

Similar Threads

  1. Change Category Product Listing Layout To Match All Product Listing
    By Alfonzo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Sep 2010, 11:49 AM
  2. Product listing layout change
    By AnthonyC in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Mar 2010, 09:18 PM
  3. Product Listing layout change
    By Trole in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Nov 2007, 06:14 PM
  4. Change product listing layout
    By longstockings in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Jul 2007, 03:03 PM
  5. Product listing layout change
    By raunharman in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Feb 2007, 08:33 AM

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