Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Customizing my attribute's box !

    Click image for larger version. 

Name:	Untitled-1.jpg 
Views:	130 
Size:	28.3 KB 
ID:	12265

    I need help to set up the lay out of my attribute's box for my products as it shows in the attached image, I know where and how to upload the attribute's image but I'm not quite good with css files ! Can anybody advice me how to do that ?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Customizing my attribute's box !

    If you edit the Option Name in the Catalog ... Option Name Manager ... and have the settings on:
    Rows: 1 Display Size: 32 Maximum length: 32

    Attribute Images per Row: 1 Attribute Style for Radio Buttons/Checkbox: 1
    does this accomplish what you are looking for?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Customizing my attribute's box !

    Quote Originally Posted by Ajeh View Post
    If you edit the Option Name in the Catalog ... Option Name Manager ... and have the settings on:


    does this accomplish what you are looking for?
    No Ajeh, It's default by me 32 X 32 ! It should be in the css file of the template_default folder , I'm sure about it but I don't know how to set it as want!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Customizing my attribute's box !

    Weird ... I set 1 per Row with Style 1 and my pictures look like yours ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    database error Re: Customizing my attribute's box !

    Click image for larger version. 

Name:	UntitlJKed-1.jpg 
Views:	50 
Size:	18.3 KB 
ID:	12266

    This is what I came with so far although I still prefer the layout to be like first image on my first thread, wider raws and the green buttons at left side of the attribute's name, the other thing the green button of the Quantity Discounts Available is for some reason on the right side of the attribute box, how to get it back to left side of phrase Quantity Discounts Available ?

    In general : I want to have a <br> after Stuffing and Components
    Last edited by alhakeem2001; 30 Mar 2013 at 10:52 PM.

  6. #6
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Customizing my attribute's box !

    and also I would like to have the Quantity Discounts Available in red color ! where to do that ? in the default_template's css or my template's css file ?

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Customizing my attribute's box !

    In general : I want to have a <br> after Stuffing and Components
    I am not positive if this is correct as I am not good with css stuff ...

    I added:
    Code:
    .back {
        float: left;
    clear:both;
        }
    in the stylesheet.css ... see if that does it for you ...

    NOTE: these changes are always made in your templates and overrides files never in the default files ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Customizing my attribute's box !

    Click image for larger version. 

Name:	Untitled-1.jpg 
Views:	45 
Size:	22.2 KB 
ID:	12267
    Quote Originally Posted by Ajeh View Post
    I am not positive if this is correct as I am not good with css stuff ...

    I added:
    Code:
    .back {
        float: left;
    clear:both;
        }
    in the stylesheet.css ... see if that does it for you ...

    NOTE: these changes are always made in your templates and overrides files never in the default files ...
    We are almost close to what I want ! except a few adjustments as it shows in the attachment ! I still believe that the Quantity Discounts Availableshould be in red or in other color ! Thanks Ajeh for your help

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Customizing my attribute's box !

    The better way to do this is to add these to your stylesheet:
    Code:
    .back2 {
    clear:both;
        }
    
    a.wrapperAttribsQtyPrices {
      color: #FF0000;
    }
    Then, using your templates and overrides, copy the file:
    tpl_modules_attributes.php

    to your templates and overrides directory:
    /includes/templates/your_template_dir/templates/tpl_modules_attributes.php

    Then change the code to include the code in RED:
    Code:
    <h4 class="optionName back2"><?php echo $options_name[$i]; ?></h4>
    <div class="back2"><?php echo "\n" . $options_menu[$i]; ?></div>
    Code:
        <div class="wrapperAttribsQtyPrices"><?php echo zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . '&nbsp;' . '<a class="wrapperAttribsQtyPrices" href="javascript:popupWindowPrice(\'' . zen_href_link(FILENAME_POPUP_ATTRIBUTES_QTY_PRICES, 'products_id=' . $_GET['products_id'] . '&products_tax_class_id=' . $products_tax_class_id) . '\')">' . TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK . '</a>'; ?></div>
    This way, you do not change the settings for other things with these changes ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Nov 2007
    Posts
    433
    Plugin Contributions
    1

    Default Re: Customizing my attribute's box !

    Quote Originally Posted by Ajeh View Post
    The better way to do this is to add these to your stylesheet:
    Code:
    .back2 {
    clear:both;
        }
    
    a.wrapperAttribsQtyPrices {
      color: #FF0000;
    }
    Then, using your templates and overrides, copy the file:
    tpl_modules_attributes.php

    to your templates and overrides directory:
    /includes/templates/your_template_dir/templates/tpl_modules_attributes.php

    Then change the code to include the code in RED:
    Code:
    <h4 class="optionName back2"><?php echo $options_name[$i]; ?></h4>
    <div class="back2"><?php echo "\n" . $options_menu[$i]; ?></div>
    Code:
        <div class="wrapperAttribsQtyPrices"><?php echo zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . '##' . '<a class="wrapperAttribsQtyPrices" href="javascript:popupWindowPrice(\'' . zen_href_link(FILENAME_POPUP_ATTRIBUTES_QTY_PRICES, 'products_id=' . $_GET['products_id'] . '&products_tax_class_id=' . $products_tax_class_id) . '\')">' . TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK . '</a>'; ?></div>
    This way, you do not change the settings for other things with these changes ...
    I'm sorry Ajeh, I didn't understand what you mean ! the first line of code it doesn't exist on my tpl_modules_attributes.php file :
    <h4 class="optionName back2"><?php echo $options_name[$i]; ?></h4>
    <div class="back2"><?php echo "\n" . $options_menu[$i]; ?></div>

    The other line of the code exist up to

    <div class="wrapperAttribsQtyPrices"><?php echo zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) ........... the rest is deferent !!

    One more thing, That my sound stupid! Do you want me to copy the tpl_modules_attributes.php file from the default_template and overwrite the one on my template ? are they not equal ?

    I'm sorry to bother you again, I just need to clarify those things ! Thnaks
    Last edited by alhakeem2001; 31 Mar 2013 at 05:05 PM.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 Customizing attribute format in pulldown menu
    By jerrygarciuh in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 21 Aug 2014, 12:27 PM
  2. v139h customizing attribute dropdown
    By cammac in forum General Questions
    Replies: 1
    Last Post: 6 Nov 2013, 01:08 AM
  3. Attribute Label vs. Attribute Drop-Box: Horizontal Alignment
    By peeplead in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Jul 2011, 07:14 PM
  4. Customizing search box
    By flipperjoint in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 17 Feb 2008, 02:36 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