ShopNC hides unset product details attributes (not limited by default)-PHP source code

Source: Internet
Author: User
Tags php foreach
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 )!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.