Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
2016-05-10 10:17:48 +0800
Commit
bbf5e711dff3cb152dd2b1f6fd4aaa99bc04998a
1 parent
08012654
add product order by sales number
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
library/Plugin/Helpers.php
library/Plugin/Helpers.php
View file @
bbf5e71
...
...
@@ -186,6 +186,9 @@ class Helpers
case
'discount'
:
$result
=
(
$order
==
0
)
?
'p_d_desc'
:
'p_d_asc'
;
break
;
case
'sales'
:
$result
=
(
$order
==
0
)
?
's_n_desc'
:
's_n_asc'
;
break
;
case
'newest'
:
default
:
$result
=
(
$order
==
1
)
?
's_t_desc'
:
's_t_asc'
;
...
...
Please
register
or
login
to post a comment