Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    32
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Apr 2008
    Posts
    32
    Plugin Contributions
    0

    Default 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?mai...products_id=12

  3. #3
    Join Date
    Apr 2008
    Location
    South Florida
    Posts
    197
    Plugin Contributions
    0

    Default Re: Comments for Attributes images

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

    PHP Code:
    <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

  4. #4
    Join Date
    Apr 2008
    Posts
    32
    Plugin Contributions
    0

    Default Re: Comments for Attributes images

    Quote Originally Posted by fotofx View Post
    From the source it looks like it is coming from your tpl_molules_attributes.php file.

    PHP Code:
    <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.

  5. #5
    Join Date
    Apr 2008
    Posts
    32
    Plugin Contributions
    0

    Default 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) . '&nbsp;' . '<a href="javascriptopupWindowPrice(\'' . 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>

 

 

Similar Threads

  1. v151 HELP!!! Attributes Comments not showing
    By zneakypukka in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Aug 2013, 05:42 PM
  2. Multiple Colums of images for attributes
    By dwessell in forum Setting Up Categories, Products, Attributes
    Replies: 22
    Last Post: 23 Jul 2009, 11:59 PM
  3. Mass Uploading Images for Attributes
    By laurenh2201 in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 28 Aug 2008, 03:30 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