{"action":"created","issue":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/1912","repository_url":"https://api.github.com/repos/EC-CUBE/ec-cube","labels_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/1912/labels{/name}","comments_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/1912/comments","events_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/1912/events","html_url":"https://github.com/EC-CUBE/ec-cube/pull/1912","id":187892327,"number":1912,"title":"価格が高い順のソートを追加","user":{"login":"chihiro-adachi","id":8196725,"avatar_url":"https://avatars.githubusercontent.com/u/8196725?v=3","gravatar_id":"","url":"https://api.github.com/users/chihiro-adachi","html_url":"https://github.com/chihiro-adachi","followers_url":"https://api.github.com/users/chihiro-adachi/followers","following_url":"https://api.github.com/users/chihiro-adachi/following{/other_user}","gists_url":"https://api.github.com/users/chihiro-adachi/gists{/gist_id}","starred_url":"https://api.github.com/users/chihiro-adachi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chihiro-adachi/subscriptions","organizations_url":"https://api.github.com/users/chihiro-adachi/orgs","repos_url":"https://api.github.com/users/chihiro-adachi/repos","events_url":"https://api.github.com/users/chihiro-adachi/events{/privacy}","received_events_url":"https://api.github.com/users/chihiro-adachi/received_events","type":"User","site_admin":false},"labels":[{"id":427358619,"url":"https://api.github.com/repos/EC-CUBE/ec-cube/labels/discussion","name":"discussion","color":"ee317c","default":false},{"id":152121360,"url":"https://api.github.com/repos/EC-CUBE/ec-cube/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/milestones/21","html_url":"https://github.com/EC-CUBE/ec-cube/milestones/3.0.13","labels_url":"https://api.github.com/repos/EC-CUBE/ec-cube/milestones/21/labels","id":2102763,"number":21,"title":"3.0.13","description":"## スケジュール\r\n- 新規PullRequest受け入れ期限： 2016/12/10（仮）\r\n- ソース凍結 ： 2016/12/17（仮）\r\n- リリース2016/12/22（仮）\r\n\r\n\r\n## スコープ\r\n\r\n### 主要な対応内容\r\n+ 未定\r\n\r\n### その他\r\n+ 軽微な不具合・機能改善","creator":{"login":"Yangsin","id":8196511,"avatar_url":"https://avatars.githubusercontent.com/u/8196511?v=3","gravatar_id":"","url":"https://api.github.com/users/Yangsin","html_url":"https://github.com/Yangsin","followers_url":"https://api.github.com/users/Yangsin/followers","following_url":"https://api.github.com/users/Yangsin/following{/other_user}","gists_url":"https://api.github.com/users/Yangsin/gists{/gist_id}","starred_url":"https://api.github.com/users/Yangsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yangsin/subscriptions","organizations_url":"https://api.github.com/users/Yangsin/orgs","repos_url":"https://api.github.com/users/Yangsin/repos","events_url":"https://api.github.com/users/Yangsin/events{/privacy}","received_events_url":"https://api.github.com/users/Yangsin/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2016-10-31T00:26:48Z","updated_at":"2016-11-08T07:17:35Z","due_on":"2016-12-22T00:00:00Z","closed_at":null},"comments":5,"created_at":"2016-11-08T03:23:49Z","updated_at":"2016-11-09T01:07:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/pulls/1912","html_url":"https://github.com/EC-CUBE/ec-cube/pull/1912","diff_url":"https://github.com/EC-CUBE/ec-cube/pull/1912.diff","patch_url":"https://github.com/EC-CUBE/ec-cube/pull/1912.patch"},"body":"#1902 \r\n\r\n商品一覧画面のソート順序に`価格が高い順`を追加\r\n合わせて既存の`価格順`を、`価格が低い順`に変更する\r\n\r\n![sort](https://cloud.githubusercontent.com/assets/8196725/20087274/5ad9f240-a5ba-11e6-8bf1-de83c7256677.png)\r\n\r\nカスタマイズ等で、mtb_product_list_orderby.idが既に利用されていることを想定して、以下を検討\r\n\r\n`価格が高い順`のIDについて\r\n  - ~~mtb_product_list_orderby.idは100で追加する~~\r\n  - ~~※以降本体で追加する場合は、100番台を使う~~\r\n  - constant.ymlにIDを定義する\r\n    - product_order_price_lower: 1 (価格が低い順)\r\n    - product_order_newer: 2 (新着順)\r\n    - product_order_price_higher: 3 (価格が高い順、デフォルト値3)\r\n\r\n マイグレーション仕様\r\n  - ~~`価格が高い順`を追加~~\r\n    - ~~IDはmax+1で登録~~\r\n    - ~~デフォルト値(3)と異なる場合は、`app/config/eccube/constant.yml`に発番されたIDを定義する~~\r\n  - ~~`価格順`は`価格が低い順`に名称を変更~~\r\n  - ~~mtb_product_list_orderbyが初期状態から変更がなければ、以下の順にrankを振り直す~~\r\n      - ~~価格が低い順(id:1)~~\r\n      - ~~価格が高い順(id:100)~~\r\n      - ~~価格が高い順(id:3)~~\r\n      - ~~新着順(id:2)~~\r\n  - mtb_product_list_orderbyが初期状態から変更がない場合に限り、マイグレーションを適用\r\n    - `価格が高い順`を追加\r\n       - IDは3で登録\r\n    - `価格順`は`価格が低い順`に名称を変更\r\n    - 以下の順にrankを振り直す\r\n       - 価格が低い順(id:1)\r\n       - 価格が高い順(id:3)\r\n       - 新着順(id:2)\r\n\r\nカスタマイズを行っていて、価格が高い順のソートを利用する際の対応\r\n\r\n- app/config/eccube/constant.ymlを作成\r\n  - `product_order_price_higher: xxx(任意のid)`を定義\r\n- マスタデータ管理でmtb_product_list_orderbyに以下を追加\r\n  - id: product_order_price_higherに指定したID\r\n  - name: 価格が高い順\r\n\r\n    \r\n"},"comment":{"url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/comments/259308923","html_url":"https://github.com/EC-CUBE/ec-cube/pull/1912#issuecomment-259308923","issue_url":"https://api.github.com/repos/EC-CUBE/ec-cube/issues/1912","id":259308923,"user":{"login":"chihiro-adachi","id":8196725,"avatar_url":"https://avatars.githubusercontent.com/u/8196725?v=3","gravatar_id":"","url":"https://api.github.com/users/chihiro-adachi","html_url":"https://github.com/chihiro-adachi","followers_url":"https://api.github.com/users/chihiro-adachi/followers","following_url":"https://api.github.com/users/chihiro-adachi/following{/other_user}","gists_url":"https://api.github.com/users/chihiro-adachi/gists{/gist_id}","starred_url":"https://api.github.com/users/chihiro-adachi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chihiro-adachi/subscriptions","organizations_url":"https://api.github.com/users/chihiro-adachi/orgs","repos_url":"https://api.github.com/users/chihiro-adachi/repos","events_url":"https://api.github.com/users/chihiro-adachi/events{/privacy}","received_events_url":"https://api.github.com/users/chihiro-adachi/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T01:07:49Z","updated_at":"2016-11-09T01:07:49Z","body":"既にカスタマイズしているケースでは、`価格が高い順`が追加されてしまうと逆に邪魔になるため、ユーザが任意で利用できるように変更します。\r\n\r\n- mtb_product_list_orderbyが初期状態から変更がない場合に限り、マイグレーションを適用する\r\n  - 新規インストール時やデフォルトで使用している場合は、ソート順が追加される\r\n- カスタマイズを行っている場合に、`価格が高い順`のソートを利用する際は以下の手順で行う\r\n  - app/config/eccube/constant.ymlを作成\r\n    - product_order_price_higher: xxx(任意のid)を定義\r\n  - マスタデータ管理でmtb_product_list_orderbyに以下を追加\r\n    - id: product_order_price_higherに指定したID\r\n    - name: 価格が高い順"}}
{"actor":{"display_login":"chihiro-adachi"}}