Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How do I lose the 'Please Choose:' text from this page?

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

Locked

Views: 1,643

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
1 Jul 2008, 5:32 PM
#1
datatv avatar

datatv

Zen Follower

Join Date:
Jun 2008
Posts:
170
Plugin Contributions:
0

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

http://reggae.esolutions.net/~granolag/store/index.php?main_page=product_info&cPath=1&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.

1 Jul 2008, 5:58 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

1 Jul 2008, 6:06 PM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

1 Jul 2008, 6:14 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

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.

1 Jul 2008, 6:38 PM
#5
datatv avatar

datatv

Zen Follower

Join Date:
Jun 2008
Posts:
170
Plugin Contributions:
0

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.

1 Jul 2008, 7:09 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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

<!--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.
2 Jul 2008, 2:10 AM
#7
datatv avatar

datatv

Zen Follower

Join Date:
Jun 2008
Posts:
170
Plugin Contributions:
0

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>
2 Jul 2008, 8:13 AM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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?

2 Jul 2008, 9:56 PM
#9
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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>

15 May 2009, 3:24 AM
#10
wbaileynzl avatar

wbaileynzl

New Zenner

Join Date:
Jul 2008
Posts:
1
Plugin Contributions:
0

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 :-)

15 May 2009, 4:53 AM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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

That is the HTML output, and does not exist in that form in any of your files.
The PHP files
/includes/modules/your_template/attributes.php
and
/includes/templates/your_template/templates/tpl_modules_attributes.php
generate the output you show.