Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30
  1. #21
    Join Date
    Jun 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: How To Reposition Attributes?

    hey, Nick,

    may I ask one more thing? How can I add a hiperlink beside the atrtribute input box as shown on the following photo?
    On which file where should I add the hiperlink:
    <a href="http://www.phoup.com/... target="_blank">Click here to veiw BackGround samples</a>


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

    Default Re: How To Reposition Attributes?

    There seems to be an option to put the 'option comment' after the input but for the life of me I don't know where you set that option! It has to do with the variable $option_comment_position in the code but lord knows where you set that in Admin. It seems to be configurable for each individual option comment. Anybody?

    That would be easiest

    Then you just put the link into the option comment.

    But if you can't find where to set that up. The you could try this.

    In tpl_modules_attributes.php find the line:

    Code:
    <div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>
    And change it to:
    Code:
    <div class="back"><?php echo "\n" . $options_menu[$i]; ?><?php if($new4=='selectbackground'){ echo 'link here';}; ?></div>
    Then you can change the link here to whatever you want.

    (I think I have got the 'selectbackground' right but you might want to check that I have set this if statement right)

    PS You can probably take those green borders out if you are happy with how it looks :-}

  3. #23
    Join Date
    Jun 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: How To Reposition Attributes?

    Once again, thanks, Nick!

    The codes you provided helped me to add the hiper link as a comment as shown here below link!

    http://phoup.com/zencart1/index.php?...products_id=17

    At first your codes displayed the input fields twice. And when I took out the portion; <?php echo "\n" . $options_menu[$i]; ?> from your codes, seeing that it was a duplicate entry, the duplicate input boxes disappeared.

    Now somehow, the hiperlink that I added shows at the bottom of the input box, not at its side.

    So also those lettering text, font type and color fields....

    Any suggestion how to make them lined up on one line?

    And also I would like to have your suggestion how to make Special Instruction input box bigger with many rows?

    If you love my LORD Jesus, you might like the website I maintain: http://www.newlifeforum.us .

    Blessings!

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

    Default Re: How To Reposition Attributes?

    OK replace all the bits we have done with the new (tidier) version.

    Code:
    .attributesComments{clear:both;}
    
    #attributeBox-photolocation .optionName{width:14em;clear:both;}
    #attributeBox-photo1 .optionName{width:14em;}
    #attributeBox-photo1{border: 1px solid green;height:22px;}
    
    #attributeBox-photo2{clear:both}
    #attributeBox-photo2 .optionName{width:14em;}
    #attributeBox-photo2{border: 1px solid green;height:22px;}
    
    #attributeBox-photo3{clear:both}
    #attributeBox-photo3 .optionName{width:14em;}
    #attributeBox-photo3{border: 1px solid green;height:22px;}
    
    #attributeBox-backgroundphoto4{clear:both}
    #attributeBox-backgroundphoto4 .optionName{width:14em;}
    #attributeBox-backgroundphoto4{border: 1px solid green;height:22px;}
    
    #attributeBox-photo5{clear:both}
    #attributeBox-photo5 .optionName{width:14em;}
    #attributeBox-photo5{border: 1px solid green;height:22px;}
    
    #attributeBox-howmanypersons .optionName{width:14em;}
    #attributeBox-howmanypersons input{width:50px;}
    
    #attributeBox-selectbackground .optionName{width:14em;}
    #attributeBox-selectbackground{clear:both;}
    
    #attributeBox-photoenhancement .optionName{width:14em;clear:both;}
    #attributeBox-size .optionName{width:14em;clear:both;}
    
    #attributeBox-size{clear:both;}
    
    #attributeBox-letteringlocation .optionName{display:none; width:100%;}
    #attributeBox-letteringtext .optionName{display:none;}
    #attributeBox-fonttype .optionName{display:none;}
    #attributeBox-fontcolor .optionName{display:none;}
    
    #attributeBox-letteringlocation{display:inline;}
    #attributeBox-letteringtext{display:inline;}
    #attributeBox-fonttype{display:inline;}
    #attributeBox-fontcolor{display:inline;}
    
    #attributeBox-photo1 h4{margin:0;}
    #attributeBox-photo2 h4{margin:0;}
    #attributeBox-photo3 h4{margin:0;}
    #attributeBox-backgroundphoto4 h4{margin:0;}
    #attributeBox-photo5 h4{margin:0;}
    
    #attributeBox-selectbackground div{display:inline;float:left;}
    #attributeBox-selectbackground select{display:inline;float:left;}
    
    #attributeBox-specialinstruction .optionName{width:14em;}
    #attributeBox-specialinstruction input{width:40em;}
    
    #cartAdd{clear:both;}
    Can't do much about the multiple lines I am afraid. An input, as opposed to a textarea, is always one line.

    I think we are there apart from some top and bottom margins to clean up the look which I am sure that you will be able to work out the way you like

    Nick

  5. #25
    Join Date
    Jun 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: How To Reposition Attributes?

    Beautiful! beautiful!

    The page pretty much looks like the way my friend wanted... Thanks a million.

    Now, I would like to copy the same settings to all Shirt category at least, and when I tried "Add ALL Option Values to ALL products for Option Name", it looked like something prohibit my Attribute controller from carrying out my command UPDATE, issued at the http://phoup.com/zencart1/admin/opti...me_manager.php ...

    If you have any solution to my problem, would you kindly help me at the link below where I asked the same question.

    http://www.zen-cart.com/forum/showthread.php?t=133708

    Again thanks!

  6. #26
    Join Date
    Jun 2009
    Posts
    42
    Plugin Contributions
    0

    Default Re: How To Reposition Attributes?

    Please disregard my last request for I now know that the "Add ALL Option Values to ALL products for Option Name" feature has to do with only Option VALUES. I thought Option Names could be Updated as done with the Option VALUES.

    Someday I would like to see a feature implemented that exports all the Option Names and accompanying values belonging to a product to any category or even to entire products.

  7. #27
    Join Date
    Jul 2009
    Posts
    8
    Plugin Contributions
    0

    Default Re: How To Reposition Attributes?

    Hello all,
    I'm trying to setup an mp3 store. I need help on aligning the album track list. What I want is to have a table of Track #, Title, Length, Price and the Check box to buy the album or individual song. So far I have each attribute as a song in the album and one attribute as the entire Album itself. The default Zen listed these attribute as Option Name first, then the Checkbox, then Option Value (song name) and Price.
    I would appreciate all the help.

    Thanks!

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

    Default Re: How To Reposition Attributes?

    OK guys I think this thread has gone on long enough. The initial question has been solved I think. Which is useful for anyone searching the forum. Adding loads more onto the end might not be so useful.

    @youshine - really please that you have ended up with a result that you are happy with. Good luck with it all.

    @quanxie I would start a new thread if I were you It will serve your purposes better. I'll PM you with a few thoughts about what you are asking and please send me the link for the new thread for me to join in if I have anything to add.

  9. #29
    Join Date
    Aug 2009
    Posts
    1
    Plugin Contributions
    0

    Default Re: How To Reposition Attributes?

    Then, we used the css file to style these elements to wherever we wanted.

    Be aware that if you have different attributes on different product pages then you want to be careful because these IDs are numbered from the first on the page incrementally. With hindsight, it would have been better to add the ID including the attribute name. This is pretty easily done but just didn't occur to me at the time

    Acai Berry

  10. #30
    Join Date
    Apr 2009
    Location
    Portland, OR
    Posts
    106
    Plugin Contributions
    0

    Default Re: How To Reposition Attributes?

    note for record, dont mind me :)

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Reposition Multiple Images
    By ricangem in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 21 Jul 2011, 02:05 PM
  2. How to reposition Size attribute?
    By Asdesign in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Jun 2009, 04:05 AM
  3. How do I reposition the registration and login text on my homepage?
    By elainedutton in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 2 Jun 2008, 10:37 PM
  4. how do i move/reposition the 'add to cart' button?
    By what44 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2007, 08:02 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