Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2013
    Posts
    57
    Plugin Contributions
    0

    Default Hiding Display Only Attribute

    Because my products require a Size selection, I created a display-only attribute called 'Please Choose'; however, I would like to hide this attribute from showing on the product_info page.

    My modules/attributes.php file is modified as I am using Stock By Attributes plugin.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,629
    Plugin Contributions
    88

    Default Re: Hiding Display Only Attribute

    A link to a page on your site would let others see this attribute and let you know how to "hide" it. If you don't want search engines to see your link, code it as

    www.example(dot)com

  3. #3
    Join Date
    Jul 2013
    Posts
    57
    Plugin Contributions
    0

    Default Re: Hiding Display Only Attribute


  4. #4
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: Hiding Display Only Attribute

    you can hide the radio button not the text with this:

    #attrib-1-127 {
    display:none;
    }

    in your stylesheet.css
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,751
    Plugin Contributions
    17

    Default Re: Hiding Display Only Attribute

    Slightly unrelated to the topic of discussion, but didn't know if you knew that when clicking on an additional product image, the image is expanded and "boxed", but there doesn't appear to be a way to close it other than to use the web browser back button. Recommend looking into resolving that through either verifying the settings, an upgrade or verification of installation of the image plugin you are using.

    Additionally I thought that the above css code, could be placed in a stylesheet that is to be loaded based on specific type of information being presented. Something about the filename getting searched for when presenting particular products, categories, etc... That way the size of the stylesheet does not get increased unnecessarily for something that is loaded for one out of many things to be displayed.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,629
    Plugin Contributions
    88

    Default Re: Hiding Display Only Attribute

    Quote Originally Posted by mc12345678 View Post
    ... Additionally I thought that the above css code, could be placed in a stylesheet that is to be loaded based on specific type of information being presented. Something about the filename getting searched for when presenting particular products, categories, etc... That way the size of the stylesheet does not get increased unnecessarily for something that is loaded for one out of many things to be displayed.
    If, as k1ra originally indicated, this styling is to be applied to the product_info page, then putting the following CSS at the bottom of the
    /includes/templates/rcv/css/product_info.css file results in that styling being loaded only on the product_info page.
    Code:
    #attrib-1-127, #attrib-1-127+label { display: none; }

 

 

Similar Threads

  1. Display Read Only attribute in cart
    By pjb923 in forum Setting Up Categories, Products, Attributes
    Replies: 21
    Last Post: 11 Nov 2017, 01:15 AM
  2. Can you style a display only attribute?
    By dgent in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Feb 2012, 04:27 PM
  3. Display Only Attribute Still Checking Out
    By lindasdd in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 13 Jan 2011, 04:43 PM
  4. Hiding READ ONLY attribute
    By Endre in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 26 Oct 2009, 11:17 PM
  5. Disable attribute display when only one option
    By Woodymon in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Jan 2007, 05:46 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR