Results 1 to 8 of 8
  1. #1

    Default adding multiple product images to product page

    I am looking to add a bunch of product images to my product pages, pretty much exaclty like..

    http://www.buy.com/prod/netgear-wndr...211504369.html

    Does anyone have any advice on how to accomplish this?

    Thanks,
    Mike

  2. #2
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: adding multiple product images to product page

    Read this tutorial https://www.zen-cart.com/tutorials/index.php?article=58 and check the additional threads listed at the bottom of this page.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  3. #3
    Join Date
    Dec 2004
    Location
    Victoria, Australia
    Posts
    161
    Plugin Contributions
    0

    Default Re: adding multiple product images to product page

    Thanks for that afo. I was working with that article and have gotten the 3 extra images to display.

    What I need to do now is move the images from the bottom of the screen to the top with the main image. Any suggestions?

    Site: http://dev.forestbotanicals.com.au/i...roducts_id=128
    Last edited by CabernetCat; 15 Feb 2010 at 08:17 AM. Reason: add link

  4. #4
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: adding multiple product images to product page

    Quote Originally Posted by CabernetCat View Post
    What I need to do now is move the images from the bottom of the screen to the top with the main image. Any suggestions?
    [/url]
    I have the same issue.

    Would you be so kind to share resolution?

    Thanks.

  5. #5
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: adding multiple product images to product page

    Quote Originally Posted by CabernetCat View Post
    Thanks for that afo. I was working with that article and have gotten the 3 extra images to display.

    What I need to do now is move the images from the bottom of the screen to the top with the main image. Any suggestions?

    Site: http://dev.forestbotanicals.com.au/i...roducts_id=128
    To change the layout of the images you would edit includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php

  6. #6
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: adding multiple product images to product page

    Thank you for suggestion.

    However I am not trained in the codes.
    I will create more damage than solution.

    If you have a moment and post samples of which lines have to move where in the file it would be a great help.

    I was tring to find this suggestion, but nothing points exactly to needed manipulation.

  7. #7
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: adding multiple product images to product page

    Quote Originally Posted by idtags View Post
    Thank you for suggestion.

    However I am not trained in the codes.
    I will create more damage than solution.

    If you have a moment and post samples of which lines have to move where in the file it would be a great help.

    I was tring to find this suggestion, but nothing points exactly to needed manipulation.
    First thing to do is to FTP a COPY of tpl_product_info_display.php to your HARD DRIVE.

    Make sure it is the tpl_product_info_display.php that lives in:

    includes/templates/YOUR_TEMPLATE/templates/ folder.

    If there is NO file of that name in the path/folder I show above, then you go get the file from:

    includes/templates/template_default/templates .

    Now... you have a COPY of the file on your hard drive.

    The CORE file on the server... the one that is in template_default/templates/ ... remains UN-TOUCHED! You do not edit CORE template files... only COPIES of them.

    Now... the file you just brought to your hard drive is the one you open for editing.

    You should open it for editing using a PLAIN TEXT EDITOR, such as CRIMSON EDITOR.

    If you do not have CRIMSON EDITOR on your machine, go download it from the internet and install it on your machine. It is FREE SOFTWARE, and you will use it when you edit files in future.

    When you have Crimson Editor use it to open tpl_product_info_display.php .

    Look carefully at this file for a few minutes. You will see that the ELEMENTS that make upo the page are contained in sections that start with:

    <!--- BOF xxxxxxx -->
    Some code will appear here, and at the END of that block of code you will see:
    <!--- EOF xxxxxxx -->


    You need to find this element:

    <!--bof Additional Product Images -->
    <?php
    /**
    * display the products additional images
    */
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
    <!--eof Additional Product Images -->


    Then, you need to highlight that with your mouse pointer an <CTRL+X> "cut" it from the code.

    Then, you scroll UP and find the place where you would like your additional images to appear. FOR EXAMPLE, if you want the additional images to appear ABOVE the "Product Description", you will then PASTE the blogk of code above the section:

    <!--bof Product description -->
    <?php if ($products_description != '') { ?>
    <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
    <?php } ?>
    <!--eof Product description -->


    ...


    So you will get (for example)

    <!--bof free ship icon -->
    <?php if(zen_get_product_is_always_free_shipping($products_id_current) && $flag_show_product_info_free_shipping) { ?>
    <div id="freeShippingIcon"><?php echo TEXT_PRODUCT_FREE_SHIPPING_ICON; ?></div>
    <?php } ?>
    <!--eof free ship icon -->


    <!--bof Additional Product Images -->
    <?php
    /**
    * display the products additional images
    */
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
    <!--eof Additional Product Images -->


    <!--bof Product description -->
    <?php if ($products_description != '') { ?>
    <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
    <?php } ?>
    <!--eof Product description -->


    You SAVE the file (on your hard drive).

    THEN... you need to put this edited file in your custom template folder:

    includes/templates/YOUR_TEMPLATE/templates/ folder.

    (If there is ALREADY a file of that name in the folder, then you RE-NAME it to: tpl_product_info_display.BAK

    (This effectively safeguards the original file - turning it into a BACKUP copy.)

    Then you can FTP your file from the hard drive, up to your server.

    Check the results in a web browser by navigating to a product that has additional images.

    If things are to your liking, all well and good. If you have made some error, then REMOVE your file from the server (delet it), and RESTORE the backup from .BAK to .php

    Try editing again, looking out for any mistakes.
    20 years a Zencart User

  8. #8
    Join Date
    Aug 2005
    Posts
    334
    Plugin Contributions
    0

    Default Re: adding multiple product images to product page

    schoolboy, Thank you very much for your time and detail explanation.
    This can be understood even by me.

    I will report my "progress"

    Thanks again.

 

 

Similar Threads

  1. v139h Multiple product images covering Add to Cart button on product page
    By lolwaut in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 7 Jan 2014, 06:39 AM
  2. Adding Multiple Images to Product
    By novaeproducts in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Dec 2009, 05:10 PM
  3. Need help on adding multiple images on a product
    By kingster147 in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 2 Dec 2009, 03:48 AM
  4. Change number of items per page, and adding multiple images per product
    By aidanacker in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 8 May 2008, 01:17 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