Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Comments for Attributes images

Comments for Attributes images

Locked

Views: 897

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
23 May 2008, 7:01 AM
#1
alillowr avatar

alillowr

New Zenner

Join Date:
Apr 2008
Posts:
32
Plugin Contributions:
0

Comments for Attributes images

On my site I have a color swatch attached to the color drop down box and on the bottom it shows the attribute that I had attached it to which was "white". My question is, Is there a way to change that text to whatever I want?. I would like to state that the colors may not be exact. If not, what would be my best approch to have the image and add in that text?

28 May 2008, 2:45 AM
#2
alillowr avatar

alillowr

New Zenner

Join Date:
Apr 2008
Posts:
32
Plugin Contributions:
0

Re: Comments for Attributes images

I decided that I could just as easily add the text that I want to the product description, so know I would just like the attribute name removed below the image. Here is an example of what I am talking about. Below the image is the text "white" I would like that gone. How do I accomplish this?

http://decaldreams.com/index.php?main_page=product_info&cPath=5_7&products_id=12

28 May 2008, 2:57 AM
#3
fotofx avatar

fotofx

Zen Follower

Join Date:
Apr 2008
Location:
South Florida
Posts:
195
Plugin Contributions:
0

Re: Comments for Attributes images

From the source it looks like it is coming from your tpl_molules_attributes.php file.

<br class="clearBoth" />
<div class="attribImg"><img src="images/attributes/colorswatch.gif" 
alt="" width="400" height="325" /><br />White</div>
<br class="clearBoth" />

When you see something you can't find, go into the admin developers toolbox and do a search. Usually you can find what needs to be changed pretty quickly. Also if you view the source on a displayed page it breaks up the sections and sometimes you can figure it out.

Steve

28 May 2008, 3:16 AM
#4
alillowr avatar

alillowr

New Zenner

Join Date:
Apr 2008
Posts:
32
Plugin Contributions:
0

Re: Comments for Attributes images

fotofx:

From the source it looks like it is coming from your tpl_molules_attributes.php file.

<br class="clearBoth" /> <div class="attribImg"><img src="images/attributes/colorswatch.gif" alt="" width="400" height="325" /><br />White</div> <br class="clearBoth" /> ``` > > When you see something you can't find, go into the admin developers toolbox and do a search. Usually you can find what needs to be changed pretty quickly. Also if you view the source on a displayed page it breaks up the sections and sometimes you can figure it out. > > Steve

Thanx for your help. On a side note I did do a search in my developers toolbox but did not get the same result as you did. A search for white brought up things that were not what I was looking for.

28 May 2008, 3:27 AM
#5
alillowr avatar

alillowr

New Zenner

Join Date:
Apr 2008
Posts:
32
Plugin Contributions:
0

Re: Comments for Attributes images

I looked in my tpl_modules_attributes.php file and I could not find it in there either. Could it be that there might be more than one of those files. Where do I look. Here is what I found.

<?php /** * Module Template * * Template used to render attribute display/input fields * * @package templateSystem * @copyright Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 * @version $Id: tpl_modules_attributes.php 3208 2006-03-19 16:48:57Z birdbrain $ */ ?> <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> <?php } ?> <div class="wrapperAttribsOptions"> <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4> <div class="back"><?php echo "\n" . $options_menu[$i]; ?></div> <br class="clearBoth" /> </div> <?php if ($options_comment[$i] != '' and $options_comment_position[$i] == '1') { ?>
<div class="ProductInfoComments"><?php echo $options_comment[$i]; ?></div>
<?php } ?> <?php if ($options_attributes_image[$i] != '') { ?> <?php echo $options_attributes_image[$i]; ?> <?php } ?> <br class="clearBoth" /> <?php } ?> <?php if ($show_onetime_charges_description == 'true') { ?>
<div class="wrapperAttribsOneTime"><?php echo TEXT_ONETIME_CHARGE_SYMBOL . TEXT_ONETIME_CHARGE_DESCRIPTION; ?></div>
<?php } ?> <?php if ($show_attributes_qty_prices_description == 'true') { ?>
<div class="wrapperAttribsQtyPrices"><?php echo zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' ' . '<a 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>
<?php } ?> </div>