Post by johnjj » Sat Mar 20, 2010 1:04 am

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

Newbie

Posts

Joined
Thu Jan 28, 2010 4:31 am

Post by rph » Sat Mar 20, 2010 1:27 am

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.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: No registered users and 1 guest