Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Remove Text Reference to "SIZE" Next to Add to Cart Area

    Does anyone know what code or even what file is generating the word 'Size' in all of my product pages right next to the drop down menu that already says 'Select Size'?

    I'd really like to remove this 'Size' text to save space. I have a near cramped product page as it is and there's no need for this text but I cannot find the correct file.

    Obviously, searching for Size in the Developers Tool Kit is like looking for a needle in a haystack... but can anyone tell from the page source where it's coming from please?

    Last edited by limelites; 6 Mar 2009 at 01:48 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Remove Text Reference to "SIZE" Next to Add to Cart Area

    That is the attribute name you created when setting up the attribute
    You would have to comment out this in a copy of tpl_modules_attributes.php
    Code:
    <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
    Or you can find in your style sheet h4.optionName separate it into its own entry as follows:

    Code:
    h4.optionName {
    display: none;
    }
    Last edited by kobra; 6 Mar 2009 at 01:58 PM.
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Remove Text Reference to "SIZE" Next to Add to Cart Area

    Thanks for that Kobra, I deleted that line from tpl_modules_attributes.php and it worked, but I chose the cleaner option and commented it out in stylesheet.css instead.

    Both methods work perfectly :-)
    Last edited by limelites; 6 Mar 2009 at 02:17 PM.

  4. #4
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Remove Text Reference to "SIZE" Next to Add to Cart Area

    Update:

    When I use this:

    h4.optionName {
    display: none;
    }

    It also takes all of the text out of the login/checkout/account pages so I had to get rid of this statement from the stylesheet and opt for option 1 ( from tpl_modules_attributes.php........ comment out <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4 )

    This does the trick, but hopefully it's not affecting anything else as well?

 

 

Similar Threads

  1. Replies: 0
    Last Post: 17 Mar 2010, 05:24 PM
  2. Remove "optionName" and edit "Add to Cart" frame on product page
    By Clever Trevor in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Apr 2009, 05:39 PM
  3. Remove "Add: [ ]" and "Add selected products to cart" from product pages? possible?
    By edwardtilbury in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Sep 2008, 03:13 AM
  4. Add text to check out pages next to "Comment" field
    By BekahRuth in forum Managing Customers and Orders
    Replies: 1
    Last Post: 10 Sep 2007, 10:56 PM
  5. "Quantity in Cart" text above "Add to Cart" button
    By empirenine in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Jul 2006, 07:43 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