Page 1 of 1

Changing the Product Id to priority number

Posted: Sat Mar 20, 2010 1:04 am
by johnjj
The current Opencart products gets sorted according to the product ID, I'm adding a priority number so the admin could set it.

Can anyone please tell me what are the codes to be replaced removing the product ID and replacing the priority number.

Thanks

Re: Changing the Product Id to priority number

Posted: Sat Mar 20, 2010 1:27 am
by rph
Add sort_order to product in the database

Add database manipulation
/admin/model/catalog/product.php

Add sort order to interface
/admin/view/template/catalog/order_form.tpl

Then set up the front end to sort either with a filter or hard-coded database query.