Plugin display qeury (in Admin)

wbd

New member
In the admin area, where you configure 360 views to display, the grid at the bottom has options to display records 10, 20, 50 or 100 at a time, with a default of 10.

Is it possible to change this default? I'd prefer it to be 50 or 100 (10 is too few when you've got a lot of products in your store's catlaogue).

Any assistance would be appreciated.

Cheers,
Rohan
 

WebSupport

Active member
Hi Rohan, this makes sense... you can quickly adjust it per your requirement. Please find the following file in your opencart install:
admin\view\template\module\webrotate360.tpl

Then in the param section on line 295, please replace the lines in bold accordingly:

From this:

var dataModel = {
location: "local",
sorting: "local",
sortIndx: 0,
sortDir: "up",
paging: "local",
rPPOptions: [10, 20, 50],
curPage: 1,
rPP: 10
}

to this:

var dataModel = {
location: "local",
sorting: "local",
sortIndx: 0,
sortDir: "up",
paging: "local",
rPPOptions: [50, 100, 200, 500],
curPage: 1,
rPP: 50
}


I hope this helps!
 
Top