Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2005
    Posts
    87
    Plugin Contributions
    0

    Default Hide disply only attributes

    Hi
    I hope this is the right place to post this question.

    Is there a way to hide display only attributes?
    Only a fool say's money doesn't matter. No rich man ever starved to death.

  2. #2
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,068
    Plugin Contributions
    0

    Default Re: Hide disply only attributes

    May i have a link to the attribute in question here please ...
    And explain a little more in detail ..
    Mark
    Hare Do - Does the rabbit beat Zen "never".
    Zen Cart 1.5.1 Update Release Need help Purchase the Book

  3. #3
    Join Date
    Aug 2005
    Posts
    87
    Plugin Contributions
    0

    Default Re: Hide disply only attributes

    Hi
    I have installed the Numinix googlefroogle add on and it uses the attributes for google categories but the problem is the display only attributes show on the ad and I need to hide them. I am not the only one looking for a solution to this and numinix does not respond to posts about it.

    http://velvetfreeway.com/aaaa/index....&products_id=1

    It would be great if you could help
    Only a fool say's money doesn't matter. No rich man ever starved to death.

  4. #4
    Join Date
    Sep 2005
    Location
    Austria
    Posts
    53
    Plugin Contributions
    0

    xhtml problem Re: Hide disply only attributes

    You could hide these display only attributes via CSS:

    1)
    Find in includes/modules/(YOURTEMPLATE)/attributes.php:
    Code:
    // Read Only - just for display purposes
                      if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
                        //            $tmp_html .= '<input type="hidden" name ="id[' . $products_options_names->fields['products_options_id'] . ']"' . '" value="' . stripslashes($products_options->fields['products_options_values_name']) . ' SELECTED' . '" />  ' . $products_options->fields['products_options_values_name'];
                        $tmp_html .= $products_options_details . '<br />';
                      } else {
                        $zv_display_select_option ++;
                      }
    Assign an ID by changing to:
    Code:
     // Read Only - just for display purposes
                      if ($products_options_names->fields['products_options_type'] == PRODUCTS_OPTIONS_TYPE_READONLY) {
                        //            $tmp_html .= '<input type="hidden" name ="id[' . $products_options_names->fields['products_options_id'] . ']"' . '" value="' . stripslashes($products_options->fields['products_options_values_name']) . ' SELECTED' . '" />  ' . $products_options->fields['products_options_values_name'];
                        $tmp_html .= '<div id="merchanthide">' . $products_options_details . '</div>';
                      } else {
                        $zv_display_select_option ++;
                      }
    2)
    Now you can add the following to your includes/templates/YOURTEMPLATE/stylesheet.css:
    Code:
    #merchanthide{
    	display:none;
    }

  5. #5
    Join Date
    Aug 2005
    Posts
    87
    Plugin Contributions
    0

    Default Re: Hide disply only attributes

    Thanks for that but for some reason it does not work
    Only a fool say's money doesn't matter. No rich man ever starved to death.

  6. #6
    Join Date
    Aug 2005
    Posts
    73
    Plugin Contributions
    0

    Default Re: Hide disply only attributes

    Let me know if you still need a solution that works globally. In plain words NO read only attributes will show anywhere on the site. Works perfectly with Dynamic Filter and you only have to alter 2 lines in 1 file
    Making sure we get the cost of freight back will drive us all mad at some stage.

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    5,003
    Plugin Contributions
    6

    Default Re: Hide disply only attributes

    Since this forum is a venue to help those in need, how's about posting your solution just in case you're on a cruise when it's needed.
    Did you read the posting tips?!?
    Things We've Done
    MOD: Scheduled Events

 

 

Similar Threads

  1. product disply settings
    By johnybravo in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 19 Jun 2011, 05:10 PM
  2. hide attributes?
    By TheBuz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 30 Apr 2009, 02:28 PM
  3. category disply
    By hanbar in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 15 Mar 2008, 03:23 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
  •