Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2014
    Posts
    4
    Plugin Contributions
    0

    Default Show attribute checkboxes 1 per line

    How do I show the attribute checkboxes on per line? I researched and played around with this for an hour with no luck. This is what it looks like now:

    https://www.ushobby.com/dji-phantom-....html?cPath=88

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Show attribute checkboxes 1 per line

    setup your product_attributes CSS class to show those in list format:
    <ul>
    <li> content here </li>
    <li> content here </li>
    <li> content here </li>
    </ul>
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  3. #3
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,930
    Plugin Contributions
    45

    Default Re: Show attribute checkboxes 1 per line

    Quote Originally Posted by mkx900 View Post
    How do I show the attribute checkboxes on per line? I researched and played around with this for an hour with no luck. This is what it looks like now:

    https://www.ushobby.com/dji-phantom-....html?cPath=88
    The attributes show one per line in the default template. I would take a look at the includes/templates/override/templates/tpl_modules_attributes file to see what changes have been made. You might even try backing up the file and then deleting it to see if the default works again.

    Thanks,

    Anne

  4. #4
    Join Date
    Jan 2014
    Posts
    4
    Plugin Contributions
    0

    Default Re: Show attribute checkboxes 1 per line

    Here is my mj-template.css file lines, do I edit this? If so where?:

    }
    .product_attributes{
    width:78%;
    float:left;
    }
    .product_attributes > input, #addressBookDefault .product_info_left .change_add{
    margin-right: 3px;
    }
    .product_attributes > label {
    margin-right: 10px;
    }

  5. #5
    Join Date
    Jan 2014
    Posts
    4
    Plugin Contributions
    0

    Default Re: Show attribute checkboxes 1 per line

    Can anyone help? This is very important, looks messy

  6. #6
    Join Date
    Feb 2007
    Posts
    224
    Plugin Contributions
    0

    Default Re: Show attribute checkboxes 1 per line

    Check around' line 650 of your file /public_html/includes/modules/attributes.php for this code
    Code:
                        switch ($products_options_names->fields['products_options_images_style']) {
    
                          case '0':
    
                           $tmp_checkbox .= zen_draw_checkbox_field('id[' .  $products_options_names->fields['products_options_id'] .  ']['.$products_options_value_id.']', $products_options_value_id,  $selected_attribute, 'id="' . 'attrib-' .  $products_options_names->fields['products_options_id'] . '-' .  $products_options_value_id . '"') . '<label class="attribsCheckbox"  for="' . 'attrib-' .  $products_options_names->fields['products_options_id'] . '-' .  $products_options_value_id . '">' . $products_options_details .  '</label><br />' . "\n";
    
                          break;
    
                          case '1':
    
                           $tmp_checkbox .= zen_draw_checkbox_field('id[' .  $products_options_names->fields['products_options_id'] .  ']['.$products_options_value_id.']', $products_options_value_id,  $selected_attribute, 'id="' . 'attrib-' .  $products_options_names->fields['products_options_id'] . '-' .  $products_options_value_id . '"') . '<label class="attribsCheckbox"  for="' . 'attrib-' .  $products_options_names->fields['products_options_id'] . '-' .  $products_options_value_id . '">' .  ($products_options->fields['attributes_image'] != '' ?  zen_image(DIR_WS_IMAGES .  $products_options->fields['attributes_image'], '', '', '' ) . '  ' :  '') . $products_options_details . '</label><br />' . "\n";
    
                          break;
    
                          case '2':
    
                           $tmp_checkbox .= zen_draw_checkbox_field('id[' .  $products_options_names->fields['products_options_id'] .  ']['.$products_options_value_id.']', $products_options_value_id,  $selected_attribute, 'id="' . 'attrib-' .  $products_options_names->fields['products_options_id'] . '-' .  $products_options_value_id . '"') . '<label class="attribsCheckbox"  for="' . 'attrib-' .  $products_options_names->fields['products_options_id'] . '-' .  $products_options_value_id . '">' . $products_options_details .  ($products_options->fields['attributes_image'] != '' ? '<br />'  . zen_image(DIR_WS_IMAGES .  $products_options->fields['attributes_image'], '', '', '' ) : '') .  '</label><br />' . "\n";
    
                          break;
    Make sure it has <br /> after <lable> in all 3 places.

 

 

Similar Threads

  1. v150 Attribute images not in-line with attribute selection
    By JacobBushnell in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Aug 2012, 11:51 PM
  2. attribute checkboxes side by side?
    By dunchutch in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Apr 2010, 05:07 AM
  3. Incorrect VAT total on invoice (line per line is correct)
    By sephiroth in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 29 Jan 2010, 10:39 AM
  4. Show only two products per line in New Products
    By anksrox in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Apr 2009, 12:30 PM
  5. Subcategory images only show 1 per line?
    By digitalhalo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Jul 2007, 09:19 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