Modify the number of items displayed on each page on the ecshop product purchase page

Source: Internet
Author: User
Tags php file

After purchasing a product on the ecshop marketplace page, the number of purchase records will be displayed by page. By default, the ecshop displays 5 purchase records, which is obviously a little less, if the customer buys ten items and wants to view the purchased items and flip pages, it will be a bit complicated. The following summer blog will teach you how to change the purchase records several times.

First open the pludes/lib_insert.php file and find the following code:
'Order BY oi. add_time desc limit 5' and $ pager ['size'] = $ size = 5;
This code is the statement used to control the number of pages. Change 5 to 10.
Open the goods. php file in the root directory and find the following code:
($ Page> 1 )? ($ Page-1): 0) * 5. ', 5'
To:
($ Page> 1 )? ($ Page-1): 0) * 10. ', 10'
Then find the following code:
$ Pager ['size'] = $ size = 5;
To:
$ Pager ['size'] = $ size = 10;
OK. Go to the front-end to test whether five records are displayed.

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.