When Adding Return Reason in "System->Localisation->Returns->Return Reasons" in the below order:
1. Not as described
2. Don‘t like the quality
3. Don‘t like the colour
4. Ordered for choice
5. Too wide / too long
6. Delivered too late
7. Wrong item delivered
8. Damaged in transit
9. Other
I need the 9 return reasons to be listed as same as in the above order.
But, It does not display in the same order. It get displayed as Alphabetic order...
Screenshot:
Please Help in Advance...
What is your oc vesrion..mhdibrahim92 wrote: ↑Thu Dec 14, 2017 3:04 pmWhen Adding Return Reason in "System->Localisation->Returns->Return Reasons" in the below order:
1. Not as described
2. Don‘t like the quality
3. Don‘t like the colour
4. Ordered for choice
5. Too wide / too long
6. Delivered too late
7. Wrong item delivered
8. Damaged in transit
9. Other
I need the 9 return reasons to be listed as same as in the above order.
But, It does not display in the same order. It get displayed as Alphabetic order...
Screenshot:
Please Help in Advance...
Fine
Go to your database
Take That table backup
Then open the oc_return_reason table and click on the OPERATION tab from top tab bar
Then empty the tabel
Now open the catalog / mode / localisatoin / return_reason.php file and find the below line
$sql .= " ORDER BY name"; and replace that line with the below one
$sql .= " ORDER BY return_reason_id";
Then find that below line
if (isset($data['return']) && ($data['return'] == 'DESC')) { and replace with the below line
if (isset($data['return']) && ($data['return'] == 'ASC')) {
Then go to admin panel and add resons as per that order vise you mention
Thanks
Sachin
@sachin6609:
Please post your codes with BBcodes. It would be easier to follow.
Please post your codes with BBcodes. It would be easier to follow.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
ok sir i will do that on next timestraightlight wrote: ↑Thu Dec 14, 2017 10:19 pm@sachin6609:
Please post your codes with BBcodes. It would be easier to follow.
But in this post only two line replace so i explain in simple
Thanks
sachin