Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Jun 2008
    Posts
    170
    Plugin Contributions
    0

    Default How do I lose the 'Please Choose:' text from this page?

    http://reggae.esolutions.net/~granol...products_id=10

    There's some text ZC created that says 'Please Choose:' and I want to lose it but I can't seem to get rid of it. I tried using the Developers Tool Kit and all I got was this result:

    Error: No matching Configuration Keys were found ... Please Choose:

    I also thought I could try setting the id attribsOptionsText to display:none but that gets rid of the input text field area too and I don't want that either.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How do I lose the 'Please Choose:' text from this page?

    I got 29 files returned in the Tool Kit. I think you forgot to select which files to search in the dropdown.

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How do I lose the 'Please Choose:' text from this page?

    h3#attribsOptionsText {display: none;}

    works on my local test site to hide the Please Choose only. Can you give a link to your site where this does not work? A purchased template could be altering the tags.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How do I lose the 'Please Choose:' text from this page?

    Testing her site in FF, it also wipes out the other text she added.

  5. #5
    Join Date
    Jun 2008
    Posts
    170
    Plugin Contributions
    0

    Default Re: How do I lose the 'Please Choose:' text from this page?

    The link is in the first post in this thread and this is the standard template that I tweaked. And I tried gjh42's idea and it didn't work. Got rid of both the Please Choose and the text field.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How do I lose the 'Please Choose:' text from this page?

    Oops, overlooked the link at the top...
    You have something odd going on in your attributes coding. The h3 is not supposed to encompass the whole attribute, only the heading at the top of the attributes section. You have now gotten rid of the Please Choose text, but the h3 is opening and never closing, so the whole section is falling under it. View Source:
    HTML Code:
    <!--bof Attributes Module -->
    <div id="productAttributes">
    <h3 id="attribsOptionsText">
    
    <div class="wrapperAttribsOptions">
    <h4 class="optionName back"><label class="attribsInput" for="attrib-8-0">Enter your flavor preferences:</label></h4>
    <div class="back">
    <input type="text" name="id[txt_8]" size="60" maxlength="100" value="" id="attrib-8-0" />  
    
    </div>
    </div>
    
    <br class="clearBoth" />
    
    </div></div>
    <!--eof Attributes Module -->
    Did you do any editing in the /includes/templates/your_template/templates/tpl_modules_attributes.php file? That could have caused your problem.

  7. #7
    Join Date
    Jun 2008
    Posts
    170
    Plugin Contributions
    0

    Default Re: How do I lose the 'Please Choose:' text from this page?

    No, and in my templates' tpl_modules_attributes.php file I've got the closing </h3> tag. See for yourself:

    <div id="productAttributes">
    <?php if ($zv_display_select_option > 0) { ?>
    <h3 id="attribsOptionsText"><?php echo TEXT_PRODUCT_OPTIONS; ?>
    <?php } // show please select unless all are readonly ?>

    <?php
    for($i=0;$i<sizeof($options_name);$i++) {
    ?>
    <?php
    if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
    ?>
    <?php echo $options_comment[$i]; ?></h3>

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How do I lose the 'Please Choose:' text from this page?

    Have you altered the value of the constant TEXT_PRODUCT_OPTIONS? It is originally defined as 'Please Choose:'
    Do you have any options comment text added?

  9. #9
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: How do I lose the 'Please Choose:' text from this page?

    datatv, someone has altered your code.

    Compare your code to this:

    <div id="productAttributes">
    <?php if ($zv_display_select_option > 0) { ?>
    <h3 id="attribsOptionsText"><?php echo TEXT_PRODUCT_OPTIONS; ?></h3>
    <?php } // show please select unless all are readonly ?>

    <?php
    for($i=0;$i<sizeof($options_name);$i++) {
    ?>
    <?php
    if ($options_comment[$i] != '' and $options_comment_position[$i] == '0') {
    ?>
    <h3 class="attributesComments"><?php echo $options_comment[$i]; ?></h3>

  10. #10
    Join Date
    Jul 2008
    Posts
    1
    Plugin Contributions
    0

    Default Re: How do I lose the 'Please Choose:' text from this page?

    Zen Cart v1.3.8a/v1.3.8
    Sorry to bother but what directory and file are you looking at for the code:
    <!--bof Attributes Module -->
    <div id="productAttributes">
    <h3 id="attribsOptionsText">

    <div class="wrapperAttribsOptions">
    <h4 class="optionName back"><label class="attribsInput" for="attrib-8-0">Enter your flavor preferences:</label></h4>
    <div class="back">
    <input type="text" name="id[txt_8]" size="60" maxlength="100" value="" id="attrib-8-0" />

    </div>
    </div>

    <br class="clearBoth" />

    </div></div>
    <!--eof Attributes Module -->

    Your help is appreciated :-)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 8 Jun 2012, 04:10 PM
  2. Removing "Please Choose:" from the product attributes display
    By geminibowling in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 25 Jan 2011, 08:37 PM
  3. How to lose this extra gap on my shopping cart page?
    By datatv in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Sep 2008, 02:40 PM
  4. How do I remove the top table row from this page?
    By datatv in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 30 Jun 2008, 02:01 AM
  5. How can I do this - Removing the same text from many products
    By milobloom in forum General Questions
    Replies: 0
    Last Post: 13 Jun 2007, 12:23 AM

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