ShopNC hides unset product details attributes (default value: Unlimited)
ShopNC hides unset product details attributes (default value: Unlimited)
By default, ShopNC sets the item details attribute to "unlimited". This setting is very strange. for example, if I create an attribute of "release year", can the value always be "unlimited? Therefore, we need to solve two problems:
1. modify the default value
2. product details display problems (if not set, it is more friendly if not displayed)
1. [code] add an "Please select" option
# File:/shop/templates/simplenc/seller/store_goods_add.step2.php # line: 202 # add an "Please select" option Select Unlimited
Selected = "selected"
Nc_type ="
">
2. [code] judge whether the attribute value is null
# File: \ shop \ templates \ simplenc \ store \ goods. php # line: 269 # determine whether the attribute value is null
'. $ Val [0]. $ lang ['NC _ colon']. $ val [1].'';}}?>
The preceding figure shows how ShopNC hides the detail attributes of unspecified products (not limited by default). For more information, see PHP Chinese website (www.php1.cn )!