How To Sort The Customer And Vendor By Newest?

Hello



Does someone can help me how to sort the customer and vendor by newest automatic on the multi vendor 4.2.3 version?



Thank

[quote name='Enew' timestamp='1422494649' post='203723']

Hello



Does someone can help me how to sort the customer and vendor by newest automatic on the multi vendor 4.2.3 version?



Thank

[/quote]



You can edit the app/functions/fn.users.php file and change



$sorting = db_sort($params, $sortings, 'name', 'asc');




to


$sorting = db_sort($params, $sortings, 'date', 'desc');



But we suggest you to use the My changes add-on and the get_users hook in thie fn_get_users function

[quote name='eComLabs' timestamp='1422523325' post='203776']

You can edit the app/functions/fn.users.php file and change



$sorting = db_sort($params, $sortings, 'name', 'asc');




to


$sorting = db_sort($params, $sortings, 'date', 'desc');



But we suggest you to use the My changes add-on and the get_users hook in thie fn_get_users function

[/quote]Hi, i can not find the add name: My changes on the cs cart, do you have a link please?

[quote name='Enew' timestamp='1422573670' post='203862']

Hi, i can not find the add name: My changes on the cs cart, do you have a link please?

[/quote]dear, can you show me where is this file please: [color=#282828][font=arial, verdana, tahoma, sans-serif][size=3] app/functions/fn.users.php file[/size][/font][/color]

[quote name='eComLabs' timestamp='1422523325' post='203776']

You can edit the app/functions/fn.users.php file and change



$sorting = db_sort($params, $sortings, 'name', 'asc');




to


$sorting = db_sort($params, $sortings, 'date', 'desc');



But we suggest you to use the My changes add-on and the get_users hook in thie fn_get_users function

[/quote]Thanks, it's work now!

[quote name='eComLabs' timestamp='1422523325' post='203776']

You can edit the app/functions/fn.users.php file and change



$sorting = db_sort($params, $sortings, 'name', 'asc');




to


$sorting = db_sort($params, $sortings, 'date', 'desc');



But we suggest you to use the My changes add-on and the get_users hook in thie fn_get_users function

[/quote] Hi, can you show me the store sort by newest too please?



Thank!!!

[quote name='Enew' timestamp='1422581329' post='203869']

Hi, can you show me the store sort by newest too please?

[/quote]



In the previous message you said that our solutions works. Please clarify

[quote name='eComLabs' timestamp='1422608488' post='203901']

In the previous message you said that our solutions works. Please clarify

[/quote]



[color=#000000]$sorting [/color][color=#666600]=[/color][color=#000000] db_sort[/color][color=#666600]([/color][color=#000000]$params[/color][color=#666600],[/color][color=#000000] $sortings[/color][color=#666600],[/color][color=#000000] [/color][color=#008800]'name'[/color][color=#666600],[/color][color=#000000] [/color][color=#008800]'asc'[/color][color=#666600]);[/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]to[/font][/color]



[color=#000000]$sorting [/color][color=#666600]=[/color][color=#000000] db_sort[/color][color=#666600]([/color][color=#000000]$params[/color][color=#666600],[/color][color=#000000] $sortings[/color][color=#666600],[/color][color=#000000] [/color][color=#008800]'date'[/color][color=#666600],[/color][color=#000000] [/color][color=#008800]'desc'[/color][color=#666600]);[/color]

[color=#666600]This is work good for buyer and vendor sort in newest, but not for sort all stores by newest, can you show me how to sort all stores by newest please?[/color]



[color=#666600]Thanks!!![/color]

[quote name='Enew' timestamp='1422641074' post='203940']

[color=#666600]This is work good for buyer and vendor sort in newest, but not for sort all stores by newest, can you show me how to sort all stores by newest please?[/color]



[color=#666600]Thanks!!![/color]

[/quote]



OK. Please open the app/functions/fn.companies.php file and replace:



$sorting = db_sort($params, $sortings, 'company', 'asc');




with



$sorting = db_sort($params, $sortings, 'date', 'desc');




Hope this will help.

[quote name='eComLabs' timestamp='1422869947' post='204065']

OK. Please open the app/functions/fn.companies.php file and replace:



$sorting = db_sort($params, $sortings, 'company', 'asc');




with



$sorting = db_sort($params, $sortings, 'date', 'desc');




Hope this will help.

[/quote]Super, it's work, thank very much!!!

You are welcome!