Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38
  1. #1
    Join Date
    Nov 2008
    Posts
    29
    Plugin Contributions
    0

    Default Additional Images Layout

    I am trying to change my page to look as follows:

    Attribute images underneath the product description and have the drop down attributes (size, color, type, etc.) on the the bottom left of the screen.

    For an example of my current layout you can use this link: Choate Under Armour Fleece

    I want to move the additional sweatshirts underneath the description, keeping the Please Choose: and the 2 drop downs underneath the main product image and moving the add to cart to the same line as the dropdowns.

    I am using the latest version of ZenCart (1.3.8)

    Here is an example of what it should look like when finished: End Result Example
    Last edited by mheishman; 19 Mar 2009 at 11:56 PM.

  2. #2

    Default Re: Additional Images Layout

    Have you made any edits to the product_info_display.php file yet?

    what needs to happen is the call to the two additional images need to appear in the code right after the product description. Then you need a new container div to hold both the attributes (floated left) and the add to cart (floated right)

  3. #3

    Default Re: Additional Images Layout

    because those images have been uploaded to the attributes section of the images folder, they are bound up with the attributes code in the product_info_display, which means that separating (so to speak) them would be difficult.

  4. #4

    Default Re: Additional Images Layout

    Instead of having them as attribute images, you could have them be "additional images". Then you have the ability to place them where you like.

    For that particular image, you would upload the two additional images to the images folder itself (since the main image is not in a category in the image folder)

    to get the medium images
    by taking the main image name:
    DSC_0426_LRG
    and adding an underscore after it plus whatever else you wan to put, so:

    DSC_0426_LRG_DSC0425.jpg - would be medium (additional image) version of that picture
    DSC_0426_LRG_DSC0424.jpg
    . . . . . . . . . . . . ^-that needs to be the last underscore because anything before the last underscore indicates the main image name.

    and for the large versions of those two images, upload them to the same directory (the images folder itself in your case) with the medium size image name plus the ending _LRG:

    DSC_0426_LRG_DSC0425_LRG.jpg - would be large (additional image) version of that picture
    DSC_0426_LRG_DSC0424_LRG.jpg

  5. #5

    Default Re: Additional Images Layout

    You may want to categorize your images. For organization purposes, if you create a new folder called 'hoodies' within the image directory, you can then choose to upload the images to that folder when your creating your product in the admin panel.

    However, if you start doing this for different category images, your medium and large files need to go into new folders with the same category name e.g. 'hoodies' under the medium and large folders. And they still need their correct endings i.e. _MED and _LRG.

    The only reason I suggest this is if over time you build up a large collection of images and they all are in one folder with names like DCS_4345.jpg, you may start loosing track of them.

    Also you could give them (the images) descriptive names such as 'blueSweatshirt.jpg' and the medium version would be: 'blueSweatshirt_MED.jpg'

    Just little tips, not trying to overburden, these things helped me out in the past is all.

  6. #6
    Join Date
    Nov 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: Additional Images Layout

    This is the problem....

    If I make them additional images, how do I add the attribute (i.e. - color) of the item? This is why I added them under the attribute section and not just additional images. The only thing the additional images say are "larger image" underneath. Even if they have to click on it and I can add the attribute under the lightbox that would be fine.

    I understand the whole formatting of the additional images and the "right" way to do it, but the customer said it was easier for them to send me the actual DSC_number.jpg file then renaming them all, so I just went with it.

  7. #7

    Default Re: Additional Images Layout

    that is o.k. I was looking for an easy way out is all. It is nice how it functions with the attributes and the name underneath.

    So working with your current set up, it will require a little digging...

  8. #8

    Default Re: Additional Images Layout

    in the file tpl_product_info_display.php starting about line 130 is the call to the attributes module:

    Code:
    <!--bof Attributes Module -->
    <?php
      if ($pr_attr->fields['total'] > 0) {
    ?>
    <?php
    /**
     * display the product atributes
     */
      require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
    <?php
      }
    ?>
    <!--eof Attributes Module -->
    ---> this file: tpl_modules_attributes.php
    this module has the code ($variables) that call up the image and image name for the attributes. This module also calls up the attributes options selection (actually calls that up before the image and image name.
    Last edited by rainthebat; 24 Mar 2009 at 10:26 PM.

  9. #9
    Join Date
    Nov 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: Additional Images Layout

    So can I make a new file to separate the two and make separate calls in the tpl_product info_display??

  10. #10

    Default Re: Additional Images Layout

    this stuff puts the images in:

    Code:
    <?php
    if ($options_attributes_image[$i] != '') {
    ?>
    <?php echo $options_attributes_image[$i]; ?>
    Now this could not turn out right, so don't try it on a live store. If you have a test store running on your computer, you might try moving a portion of that code to the tpl_product_info_display.php, probably underneath the: <!--eof Product description -->

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. Additional Images Layout
    By caesartrading in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 7 Jun 2011, 02:25 AM
  2. Layout of Additional of Additional Product Images - Possible Bug?
    By RatMonkey in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Mar 2011, 02:21 PM
  3. additional images layout
    By Checooper in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 7 Oct 2010, 03:19 AM
  4. Additional Images Layout
    By edeades in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 Jun 2009, 03:16 AM
  5. Customising Additional Images Layout
    By digitalhalo in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 Jun 2007, 12:37 PM

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