Post by mhdibrahim92 » Thu Dec 14, 2017 3:04 pm

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: Image

Please Help in Advance...

Newbie

Posts

Joined
Thu Apr 13, 2017 9:37 pm

Post by sachin6609 » Thu Dec 14, 2017 4:47 pm

mhdibrahim92 wrote:
Thu Dec 14, 2017 3:04 pm
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: Image

Please Help in Advance...
What is your oc vesrion..???

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by mhdibrahim92 » Thu Dec 14, 2017 5:30 pm

Opencart Version is 2.3.0.2

Newbie

Posts

Joined
Thu Apr 13, 2017 9:37 pm

Post by sachin6609 » Thu Dec 14, 2017 5:36 pm

mhdibrahim92 wrote:
Thu Dec 14, 2017 5:30 pm
Opencart Version is 2.3.0.2

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

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm

Post by straightlight » Thu Dec 14, 2017 10:19 pm

@sachin6609:

Please post your codes with BBcodes. It would be easier to follow.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by sachin6609 » Fri Dec 15, 2017 2:38 pm

straightlight wrote:
Thu Dec 14, 2017 10:19 pm
@sachin6609:

Please post your codes with BBcodes. It would be easier to follow.
ok sir i will do that on next time

But in this post only two line replace so i explain in simple

Thanks

sachin

Active Member

Posts

Joined
Thu Jul 23, 2015 2:57 pm
Who is online

Users browsing this forum: No registered users and 5 guests