[Prestashop help] How to modify “Best Sale” page of Prestashop?
“Best Sale” page is a default page in Prestashop’s core which display products have best selling. You can go to this page from Footer of Classic theme.
Or you can directly go to best-sales controller with this URL: http://your-prestashop-store.com/index.php?controller=best-sales
How to display a product on best-sales page?
When an Order have a Status marked as validated (When you completed checkout an Order in website or when you change Status of an Order from Backoffice) , all products of this order will be inserted product_sale table. When a customer view best sales page, Prestashop list products from product_sale table order by sales from highest to lowest.
So How to know an Order is validated?
An Order will be marked as validated if it’s Order Status checked option: Consider the associated order as validated.
- For Prestashop 1.7, go to Shop Parameters > Order Settings > Statuses, click add/edit a Order Status. An Order have this Status will be marked as validated if it checked option: Consider the associated order as validated.
- For Prestashop 1.6: go to Orders > Statuses
How to modify products, layout, style of best-sales page?
Products is listing on a new-products page based on the method: ProductSale::getBestSales
Step 1: Go to classes\ProductSale.php, find method function getBestSales
You can view source code for query products that list in best-sale products page at there.
Step 2: Go to it’s template fie (*.tpl)
- For Prestashop 1.7: go to PRESTASHOP_ROOT\themes\YOUR_THEME\templates\catalog\listing\best-sales.tpl
- For Prestashop 1.6: Template file is in PRESTASHOP_ROOT\themes\YOUR_THEME\best-sales.tpl
You can use Smarty language to modify *.tpl template file if you need insert, change HTML tags for customize layout.
Related Articles
Categories
- E-commerce (30)
- B2B E-commerce (3)
- E-Commerce Trends (2)
- Ecommerce Tips and Advice (8)
- Merchants (3)
- Social, SEO & Marketing (8)
- Success Stories (2)
- Mobile Native Web App (1)
- Prestashop (97)
- Admin setup & manage Store (18)
- B2B commerce (7)
- Customize your online store (29)
- Developement (10)
- Dropshipping (1)
- Fix Errors (1)
- Improve Conversion rate, Sales (9)
- Improve customer service (13)
- Marketing & Promotions (7)
- Performance & Security (6)
- Prestashop modules (15)
- Prestashop Templates (7)
- Promote Products (5)
- SEO & Increase Traffic (12)
- Wordpress (1)
- Wordpress Mobile (1)
Popular Posts
-
[Prestashop tips] 5 Tips to improve SEO for Prestashop website
In order to be profitable online, customers must be able to discover your Prestashop store. This is why practicing various…
-
[Prestashop help] How to edit Text, Information of Contact page in Prestashop website?
The Contact page of Prestashop 1.6 have layout The Contact page of Prestashop 1.7 have layout So how to…
Leave a reply
You must be logged in to post a comment.