Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35
  1. #11
    Join Date
    May 2008
    Posts
    23
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    "I Made It Through The Rain" and "I Can See Sunshine"



    http://opticlubusa.com/index.php?mai...&products_id=1

    Thank You!!!!!!!!!!!!!!!

  2. #12
    Join Date
    Apr 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    Sorry to hijack this thread, but how did you get your attributes page to have the grey dividers and the stuff side by side?
    Your orig post seems to be a question regarding the side by side, but where did you go to initially get it set up like that?

    Is that a different template?

    thanks!

    James

  3. #13
    Join Date
    May 2008
    Posts
    23
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    Yes initially I said that I need side by side, but after I explain myself some one said that I need a table, and I just change one file, but all my products need the same attribute

  4. #14
    Join Date
    Apr 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    can you share how you made the table? I am interested in adding the grey section heading that you use to group attributes together.

  5. #15
    Join Date
    Sep 2007
    Posts
    51
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    This is just what I am looking for.

    Could you also let me know how you sort the tables out. Or is it possible to post/email the table and I can modify it. (what software did you use.)

    Please keep it simple and in steps or I will get lost.

    Does this mean I can get rid of the thousands of attributes I have created?

    Also once the order has been submitted is it easy to interpret i.e. does it still have the option names attached or do you just have to work out by the order of things what has been input. I suppose the + and - signs help with this.

    Thank you in anticipation of your help.

    Will

  6. #16
    Join Date
    May 2008
    Posts
    23
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    A (manual) solution for my situation, 4 Categories with SubCat

    Contact Lenses ()

    Eyeglasses Frames (Men, Women, Children Unisex)

    Prescription Lenses ()

    Sunglasses ( Men, Women, Unisex )

    So, The Rx for Contact Lenses and Prescription Lenses are different so I need to upload a differente (tpl_module_attributes.php) base on Category situation,

    This is what came up to me, so far so good I think is working!!!


    1. I create all my Attributes in the Admin section
    ( I use the sort order in the names)

    2. I create my display table
    --- for contact Lenses: tpl_module_attributes_1.php
    --- for Eyeglases Frames: tpl_module_attributes_2.php

    Code: tpl_module_attributes_1.php

    PHP Code:
    <?php
    /**
     * Module Template
     *
     * Template used to render attribute display/input fields
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_attributes.php 3208 2006-03-19 16:48:57Z birdbrain $
     */
    ?>

    <div id="productAttributes">
      <div class="wrapperAttribsOptions">
        <table width="100%" cellpadding="0" cellspacing="0"  style="border: 1px solid #003399;">
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">
                <tr>
                  <td colspan="9" class="leftBoxHeading" id="categoriesHeading"><strong>Please enter your Rx Information Here</strong> </td>
                </tr>
                <tr>
                  <td><strong> </strong></td>
                  <td><strong>Sphere</strong></td>
                  <td><span class="main"><b>Cylinder</b></span></td>
                  <td><span class="main"><strong>Axis</strong></span></td>
                  <td><span class="main"><b>Prism</b></span></td>
                  <td><span class="main"><b>Add</b></span></td>
                  <td><strong>Diam</strong></td>
                  <td><b>BC</b></td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><div align="left"> O.D:</div></td>
                  <td><span class="main"><?php echo "\n" $options_menu[0]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[1]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[2]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[3]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[4]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[5]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[6]; ?></span></td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><div align="left"> O.S:</div></td>
                  <td><span class="main"><?php echo "\n" $options_menu[7]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[8]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[9]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[10]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[11]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[12]; ?></span></td>
                  <td><span class="main"><?php echo "\n" $options_menu[13]; ?></span></td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="9" class="leftBoxHeading" id="categoriesHeading"><strong>Please enter Patient and  Doctor's Information Here</strong> </td>
                </tr>
                <tr>
                  <td colspan="3"><?php echo $options_name[14]; ?></td>
                  <td colspan="6"><?php echo "\n" $options_menu[14]; ?></td>
                </tr>
                <tr>
                  <td colspan="3"><?php echo $options_name[15]; ?></td>
                  <td colspan="6"><?php echo "\n" $options_menu[15]; ?></td>
                </tr>
                <tr>
                  <td colspan="3"><?php echo $options_name[16]; ?></td>
                  <td colspan="6"><?php echo "\n" $options_menu[16]; ?></td>
                </tr>
                <tr>
                  <td colspan="3"><?php echo $options_name[17]; ?></td>
                  <td colspan="6"><?php echo "\n" $options_menu[17]; ?></td>
                </tr>
                <tr>
                  <td colspan="3"><?php echo $options_name[18]; ?></td>
                  <td colspan="6"><?php echo "\n" $options_menu[18]; ?></td>
                </tr>
              </table></td>
          </tr>
        </table>
      </div>
    </div>
    3. I change a Code in tpl_product_info_display.php

    Original Code
    PHP 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 -->
    Change for (Totally PHP Sinner ) but so far so good I think is working!
    Manual

    PHP Code:
    <!--bof Attributes Module -->
    <?php  if ($pr_attr->fields['total'] > 0) { ?>


    <?php /*** display the product atributes***/

      
    if($current_category_id=="1")
      require(
    $template->get_template_dir('/tpl_modules_attributes_1.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_attributes_1.php');
      
        if(
    $current_category_id=="2")
      require(
    $template->get_template_dir('/tpl_modules_attributes_2.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_attributes_2.php');
        
        if(
    $current_category_id=="5")
      require(
    $template->get_template_dir('/tpl_modules_attributes_2.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_attributes_2.php');
      
        if(
    $current_category_id=="6")
      require(
    $template->get_template_dir('/tpl_modules_attributes_2.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_attributes_2.php');
      
       if(
    $current_category_id=="7")
      require(
    $template->get_template_dir('/tpl_modules_attributes_2.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_attributes_2.php');
      
       if(
    $current_category_id=="8")
      require(
    $template->get_template_dir('/tpl_modules_attributes_2.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_modules_attributes_2.php');
      
       
        
    ?>


    <?php  ?>

    <!--eof Attributes Module -->

    As I said is "a manual solution for my situation"


    Contact Lenses http://opticlubusa.com/index.php?mai...&products_id=3

    Eyeglasses Frames http://opticlubusa.com/index.php?mai...&products_id=1

    Miri4413

  7. #17
    Join Date
    Sep 2007
    Posts
    51
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    Thanks for that,

    I will give it a try tomorrow. Here's hoping my basic knowledge of Zen Cart is upto it.

    Will

  8. #18
    Join Date
    Sep 2007
    Posts
    51
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    I have added the changes onto to a demo site and the tables do not appear. Is this because they also don't appear on your site your 2 links don't go anywhere.

    And
    http://opticlubusa.com/index.php?mai...&products_id=5

    Which looks like it is for spectacle lenses.


    Or do I need to know what option names are to correlate with the table and then put the same options in.

    Thanks for your help.

  9. #19
    Join Date
    May 2008
    Posts
    23
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    this are the links and they do work

    http://opticlubusa.com/index.php?mai...&products_id=5

    http://opticlubusa.com/index.php?mai...&products_id=4

    Can I see your page? maybe I can help you!

  10. #20
    Join Date
    Sep 2007
    Posts
    51
    Plugin Contributions
    0

    Default Re: Attributes Side by Side

    Thanks for offering to have a look.

    My site is http://www.designerspecsbypost.co.uk/

    and the designer sunglasses without attributes runs well, but the designer frames takes ages too change between the frames due to the numerous attributes.

    I have set another site up as a practice site to try out updates and do changes as I have changed things in the past and numerous times I have had the site crash. This is on http://www.cheapspecsbypost.co.uk/ I have changed the files on this site to the ones you posted, but they have had no effect so I am sure there are lots of things I need to change.

    Will

 

 
Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. All attributes are in a straight line, how to make it display side by side?
    By justwonder2 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Dec 2012, 10:39 PM
  2. Display-only attributes: show side by side?
    By cosmocanuck in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Mar 2011, 04:29 AM
  3. Display product attributes in two columns (side by side)
    By DivaVocals in forum Templates, Stylesheets, Page Layout
    Replies: 72
    Last Post: 8 Nov 2010, 01:55 AM
  4. Side by side read-only attributes... possible? how?
    By cosmocanuck in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 29 Jun 2010, 07:17 PM
  5. I need to Show attributes side by side
    By roy(irishtaxi) in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2008, 03:46 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