Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2006
    Posts
    783
    Plugin Contributions
    0

    Default How to align product images to left?

    Ver 1.3.8a

    Currently my product 'secondary" images are under the ADD TO CART button. I looked throught image handler setting, Config/Images but did not notice a setting to change this. I would like to have the secondary images rifht inder the main image, left aligned under main image.

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How to align product images to left?

    You are going to have to edit tpl_product_info_display.php to achieve this.

  3. #3
    Join Date
    Jun 2006
    Posts
    783
    Plugin Contributions
    0

    Default Re: How to align product images to left?

    Thanks,
    NOT being a programmer would you know which setting in file to adjust thsi to left , upper under mainimage?

    www.cvtreasures.com

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How to align product images to left?

    First, don't let all that weird PHP stuff in the file intimidate you . Most Zencart PHP files, including that one, are well commented and each section is bracketed by bof [name of section] and eof [name of section]. b=beginning, e=end.

    You'll need to find the section containing the code you want to move, and using your good text editor (I like Notepad++), cut that section and paste it where you want it. Save the file to your custom folder, and if it isn't right delete it and try again.

    I'm intentionally not pointing out the exact sections you're looking for, since I think this is the kind of thing best learned by experience.

    After you get the images where you want them, the alignment, etc. will be done in the stylesheet.

  5. #5
    Join Date
    Jun 2006
    Posts
    783
    Plugin Contributions
    0

    Default Re: How to align product images to left?

    Quote Originally Posted by stevesh View Post
    First, don't let all that weird PHP stuff in the file intimidate you . Most Zencart PHP files, including that one, are well commented and each section is bracketed by bof [name of section] and eof [name of section]. b=beginning, e=end.

    You'll need to find the section containing the code you want to move, and using your good text editor (I like Notepad++), cut that section and paste it where you want it. Save the file to your custom folder, and if it isn't right delete it and try again.

    I'm intentionally not pointing out the exact sections you're looking for, since I think this is the kind of thing best learned by experience.

    After you get the images where you want them, the alignment, etc. will be done in the stylesheet.
    I said I was NOT a programmer, didn;t say I was totally illiterate.
    Yes, edit PHP files all the time, but I have a 60 hr week job so was looking for help identifiying exact section code to change. But, I've emailed my developer so will wait for his response when he gets back to his country.

  6. #6
    Join Date
    Sep 2006
    Posts
    542
    Plugin Contributions
    0

    Default Re: How to align product images to left?

    My, no need to bite the hand that feed you.

    You were given the correct file and the sections to move is clearly marked. All you need to do is cut and paste where you need it.

    <!--bof Additional Product Images -->

    The code that follows and place it anywhere you like!

  7. #7
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How to align product images to left?

    In tpl_product_info_display.php find all this code:

    Code:
    <!--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 -->
    And cut and paste it below this line:

    Code:
    <!--eof Main Product Image-->
    Then, as Stevesh said you will have to do some work on the css file to get the page to look the way you want. As we do not know how you want it to look it is not possible to give you more advice about this without more information but, as always, if you give the information we need, then the forum will provide the answers.

    I apologise for my original answer which obviously did not give you enough information. I am sure Stevesh might apologise for his answer which gave you too much information. We will brush up our psychic powers so that, in future, we are able to pitch our answers to your exact level of knowledge and not inconvenience you by trying to help.

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How to align product images to left?

    You're very welcome. Best of luck with your site.

  9. #9
    Join Date
    Jun 2006
    Posts
    783
    Plugin Contributions
    0

    Default Re: How to align product images to left?

    Quote Originally Posted by niccol View Post
    In tpl_product_info_display.php find all this code:

    Code:
    <!--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 -->
    And cut and paste it below this line:

    Code:
    <!--eof Main Product Image-->
    Then, as Stevesh said you will have to do some work on the css file to get the page to look the way you want. As we do not know how you want it to look it is not possible to give you more advice about this without more information but, as always, if you give the information we need, then the forum will provide the answers.

    I apologise for my original answer which obviously did not give you enough information. I am sure Stevesh might apologise for his answer which gave you too much information. We will brush up our psychic powers so that, in future, we are able to pitch our answers to your exact level of knowledge and not inconvenience you by trying to help.
    Thanks a million Niccol ! (and my apologies to all for being abrasive, two sick kids at once my nerves are shot).. . ..;}
    Last edited by kevinmc3; 20 Nov 2009 at 04:36 AM.

  10. #10
    Join Date
    Sep 2008
    Location
    San Diego
    Posts
    159
    Plugin Contributions
    0

    Default Re: How to align product images to left?

    Can I chip in and ask where and how on the stylesheet would I align the additional product images to right?
    Rufusclc

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to align Product Description to Left?
    By nesum18 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Dec 2012, 02:38 AM
  2. align product item name to the left: how?
    By davebeing in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Aug 2011, 08:16 PM
  3. Additional images to align left
    By Shelleym in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Jan 2009, 01:42 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