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

    Default Additional Images on Product Listing Page

    I have searched the forums extensively and have tried numerous options and am at a total loss. Please let me know if this listing should be placed elsewhere - I thought this was the best place for this question.

    I am building a clothing store for a client. Many of the items have an additional image such as an image of a back of a shirt for instance. I am trying to figure out how to show the additional image to the right of the product main image on the product listing page. I have tried modifying code on tpl_modules_product_listing.php, tpl_modules_main_product_image.php, additional_images.php, tpl_modules_additional_images.php, and product_listing.php and I am having no luck on locating the code where I can make this happen.

    Can anyone tell me how to accomplish this? It seems like it should be a simple copy of code if I can only just find where to paste it.

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Additional Images on Product Listing Page

    you can look at tpl_product_info_display.php .. there you can move the code block that calls tpl_modules_additional_images.php to any location you want.

  3. #3
    Join Date
    Jul 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Additional Images on Product Listing Page

    Quote Originally Posted by tony_sar View Post
    you can look at tpl_product_info_display.php .. there you can move the code block that calls tpl_modules_additional_images.php to any location you want.
    Tony, I have tried placing the following code from tpl_product_info_display.php ...

    PHP Code:
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?> 
    ...in several places within the tpl_modules_product_listing.php page to no avail. Where would I put this code to get the available additional image to display to the right of the main image on the product listing page?

  4. #4
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Additional Images on Product Listing Page

    you might want to move it , under Product Price ?? . however, once there , you need to use CSS to position additional images if they are not already aligned correctly . this is easier then using CSS to position where you want those images from default location.

    once you moved the code , supply us with link to your site , so we might be able to help out with CSS .

  5. #5
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Additional Images on Product Listing Page

    Quote Originally Posted by sundoggin View Post
    Tony, I have tried placing the following code from tpl_product_info_display.php ...

    PHP Code:
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?> 
    ...in several places within the tpl_modules_product_listing.php page to no avail. Where would I put this code to get the available additional image to display to the right of the main image on the product listing page?
    you have to modify tpl_product_info_display.php and NOT tpl_product_listing.php ..

  6. #6
    Join Date
    Jul 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Additional Images on Product Listing Page

    Quote Originally Posted by tony_sar View Post
    you have to modify tpl_product_info_display.php and NOT tpl_product_listing.php ..
    I have modified tpl_product_info_display.php. This only affects the main product page layout. I need the additional image to show up next to the main image on the category/product listing page (index.php?main_page=index&cPath=#_#)

  7. #7
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: Additional Images on Product Listing Page

    ok , i misunderstood. if you can get additional images showing in product listing , then you need to use CSS to position them correctly .

  8. #8
    Join Date
    Jul 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Additional Images on Product Listing Page

    I have not been able to get the additional images to appear on the product listing page. I have tried copying the
    PHP Code:
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?> 
    code and pasting it in the tpl_modules_product_listing.php page but have been unsuccessful.

    Any thoughts or ideas?

  9. #9
    Join Date
    Jan 2004
    Posts
    66,350
    Blog Entries
    7
    Plugin Contributions
    271

    Default Re: Additional Images on Product Listing Page

    You'll have to do some fancy coding, including studying the code for the additional_images module, and then incorporating that into the various scripts that drive the product_listing module, preparing all the variables needed by the templates used by the product listing module, and then altering the product listing module to display the data ... and what to do if no image is available, too.
    It's a very involved task.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Jul 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: Additional Images on Product Listing Page

    drbyte, I do so appreciate your insight! With your response, I have determined that this mod is far more involved than I had anticipated and thusly is way out of my league. I am a designer first, programmer second and have beginner-intermediate PHP development skills. I would be ecstatic if anyone else would decide to take this on, but for the time being I am going to either a) nix the idea or b) find an alternate solution. Let me know if you have any parting thoughts, or other resources to ping. Thanks.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h Additional Images on Product Listing Page
    By rbarbour in forum Templates, Stylesheets, Page Layout
    Replies: 21
    Last Post: 11 Dec 2012, 11:41 PM
  2. Additional Images to be displayed in Product listing page
    By deepti in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Sep 2009, 03:50 PM
  3. Adding Additional Images to Product Listing Page
    By sundoggin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Jul 2009, 10:34 AM
  4. Add Additional images on product listing page
    By sundoggin in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Jul 2009, 07:43 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