- Grégoire Paris
Total Posts: 15
Here is a sample code for hiding attributes (yes, it is Prototype, but I think it is the simplest and cleanest way to do this).
I understand that there could be system attributes, because it must be difficult to code, but I think there really should be an XML file enabling hiding and auto-filling inputs
* @file hide.js
* @desc hides various attributes in product edit page
var js_array = new Array( "news_from_date", "news_to_date", "gift_message_available", "content_type", "enable_googlecheckout" );
var hide_grandfather = $A( js_array );
var toHide = $(item);
$("product_info_tabs_inventory").up().hide();//hide "Inventaire tab"