Hi
I hope this is the right place to post this question.
Is there a way to hide display 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.
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
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.
You could hide these display only attributes via CSS:
1)
Find in includes/modules/(YOURTEMPLATE)/attributes.php:
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 .= $products_options_details . '<br />'; } else { $zv_display_select_option ++; }
2)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 ++; }
Now you can add the following to your includes/templates/YOURTEMPLATE/stylesheet.css:
Code:#merchanthide{ display:none; }
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.
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.
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.![]()
Bookmarks