Concerning the sorting of php products, it is a pain to be solved by experts.

Source: Internet
Author: User
Concerning the sorting of php products, it is a pain to be solved by experts... The main method is as follows: weight analysis of commodity arrangement 1. remaining time of the recommended window: 50% 2. favorable rating of the store: 30% 3. goods shelving Time: 20% sort items 1. click sort on the "All items" page; 2. click sort by category of men's wear and women's wear; 3. click sub-category under women's wear or men's wear, such as the sorting of T-shirts; note: the price and style are not involved in sorting the php goods. it will be solved by the experts and will be painful...
The main method is as follows:
Product ranking weight analysis
1. remaining time of the recommended window: 50%
2. store favorable rating: 30%
3. goods mounting Time: 20%

Sort items
1. click sort on the "All items" page;
2. click "category" of men's and women's clothing to sort the categories;
3. click the sub-categories under women's or men's wear, such as the sort of T-shirts;
Note: Prices and styles are not sorted.
Sorting rules
1. for any product, the program will extract the remaining time of its "Recommended Window", "store ratings", and "product shelving Time", and calculate the final score based on its weight;
2. the higher the score, the higher the ranking;
3. in a sorting item, a maximum of four products are listed according to the sorting rules. that is, only four products are listed in the ranking, while others are listed naturally;
4. in all product categories, the program will first extract the commodities that participate in the sorting and rank the commodities according to the scores, because the maximum value of each store is four commodities, therefore, after the four items in all stores are arranged, the remaining items are naturally sorted.
Example:
1. assume that the "vest" under the "women's clothing" category is only 100 items because it is a sketch;
2. assume that there are 10 Merchants in the vest and all of them participate in the sorting, then 40 items are sorted;
3. when a user clicks "vest", the program first sorts 40 products to 41st according to the weight value, all of which are sorted according to the latest shelving time, that is, the latest row front.
----------------------------------------
I don't know how to write code for this function.

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.