Post by haineselectro » Wed Aug 23, 2017 7:18 pm

Buna ziua,

Exista vreo posibilitate ca in pagina de categorie, produsele cu stoc mai putin sau care au stoc epuizat sa apara la urma?

Multumesc anticipat.

Newbie

Posts

Joined
Tue Mar 21, 2017 11:14 pm

Post by florinsith » Sat Aug 26, 2017 3:02 pm

Versiunea 1 - Sortezi dupa cantitate ca al doilea criteriu, dupa sortarea clientului sau cea implicita.
fisier: catalog/model/catalog/product.php, liniile:

Code: Select all

DESC, LCASE(pd.name) DESC
si

Code: Select all

ASC, LCASE(pd.name) ASC
devin

Code: Select all

DESC, p.quantity DESC
respectiv

Code: Select all

ASC, p.quantity ASC
Versiunea 2, sortezi implicit dupa cantitate, mai multe fisiere de modificat:
fisier: catalog/model/catalog/product.php, dupa linia:

Code: Select all

'p.sort_order',
adaugi

Code: Select all

'p.quantity',
fisierele: catalog/controller/product/category.php, special.php, manufacturer.php si search.php , faci search replace dupa:

Code: Select all

p.sort_order
cu

Code: Select all

p.quantity

Image
My Extensions - SuperTheme - Opencart templates - Opencart modules


User avatar
Expert Member

Posts

Joined
Fri May 14, 2010 2:36 am

Who is online

Users browsing this forum: No registered users and 10 guests