I accidentally discovered some bugs when processing orders in destoon5 mall_PHP tutorial

WBOY
Release: 2016-07-20 11:15:44
Original
875 people have browsed it

The latest destoon5 has added the function of product attributes to the products in the mall. You can use three product attributes 无意中发现destoon5商城处理订单时的一些bug - 黑雪人布克 - 黑雪人布克
and mark them with "49-3-0-0" in the code. The selected product and attributes, the first number is the id of the product, and the last three represent the attribute values ​​​​corresponding to the product. When processing the order, I found some problems: after generating the order, the corresponding product is generated When evaluating data, the code is as follows 无意中发现destoon5商城处理订单时的一些bug - 黑雪人布克 - 黑雪人布克
where the product id directly corresponds to $k, and from this code 无意中发现destoon5商城处理订单时的一些bug - 黑雪人布克 - 黑雪人布克 we can know that the format corresponding to $k is in the form: 49-3-0-0, and in the product evaluation data When inserting into the table, the product with the product ID of 49-3-0-0=46 is programmed to be inserted. That is to say, the evaluation data with the product ID of 49 was originally intended to be generated, but instead the evaluation data with the product ID of 46 was generated. So please be careful when using it! ! ! !

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/440156.htmlTechArticleThe latest destoon5 has added the function of product attributes to the products in the mall. Three product attributes can be used in the code Use such as 49-3-0-0 to mark the selected products and attributes, where the...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template