追加功能 #437
v4.0: General
Start date:
10/17/2024
Due date:
10/21/2024
% Done:
100%
Estimated time:
Description
Background
- New requirement for v4.0 OTS
See: OneDrive\赤蓝商贸(上海)有限公司\Shanghai Group - IT\开发相关\OTS V4\开发需求 - Base: https://git-codecommit.cn-northwest-1.amazonaws.com.cn/v1/repos/ots4.0-web
- Prepare a clean environment based on openCart as the base for v4.0.
- Connect both the old database(OTS v3) and the new database(OTS v4).
- Re-build the structure of the front files directory
- twig: view/theme/default/template/xxx
- CSS: view/theme/default/stypesheet/xxx
- js: view/javascript/xxx
- third-party: view/third-party/xxx - Support EN/SE/CN languages
- language_id: en = 1, se = 2, cn = 3
- Add 'zh', 'se' language
- Modify settings:
- system -> settings -> general: Meta title ~ Meta tag keywords
- system -> settings -> store: store name - Update the admin order_status module:
- Admin dynamic set order status, add 'code'(compatible with V3), and 'hex'(order row background color) fields.
- Refer #440 - Add 'status' in admin order statuses module.
- Set 'labelled' status = disabled
- Admin dynamic set order status, add 'code'(compatible with V3), and 'hex'(order row background color) fields.
- Common settings:
- add config_order_limit for order list
- Set 80 - Add 'config_order_complete_status'. Order list default excludes the order status.
- Set 'Completed'
- add config_order_limit for order list
- Git提交
#xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
- 代码规范
2.1: 结构:Public -> Protected -> Private
2.2: 其他代码规范同SBX
- 数据层规范(Model)
3.1: 数据库操作只应出现在model或者system中。
3.2: v3/v4的model分为两个文件,比如: order.php, order_v3.php
- 前台代码
twig, js, css (js, css尽量写在单独的css文件中)
- 后台代码
MVCL (L:en,cn)
- 注释
- 类名:
/** * xxx * * @copyright RedBlue-OTS 2024 * @version v4 * */
- 函数名:参数类型 + 返回值类型
/** * xxx * * @param xxx $xxx * @param xxx $xxx * @return xxx */
- 类名:
- Report and Solution
Others
Updated by Junyi Zhang about 1 year ago
- Subject changed from v4.0: OTS v4.0 General to v4.0: OTS General
Updated by Xihua Fan about 1 year ago
- Subject changed from v4.0: OTS General to v4.0: General
- Due date changed from 12/31/2024 to 10/18/2024
- Status changed from 新建 to 进行中
- Start date changed from 10/18/2024 to 10/17/2024
Updated by Junyi Zhang about 1 year ago
Output (2024/10/17 - 2024/10/18)
- Prepare a clean environment based on openCart as the base for v4.0 (100%)
- Connect both the old database(OTS v3) and the new database(OTS v4). (100%)
- V3 is also the resource of order data and anything that changes on v4 about order needs to sync to v3 before V4 is production.
Updated by Junyi Zhang about 1 year ago
Output (2024/10/21)
- Re-build the structure of the front files directory and all files should follow these rules: (100%)
- twig: view/theme/default/template/xxx
- CSS: view/theme/default/stylesheet/xxx
- js: view/javascript/xxx
- third-party: view/third-party/xxx - Move/Add the third-party files to view/third-party/xxx (100%)
- jquery(jquery-3.7.1.min.js): Add the newest jquery file
- font-awesome(v6.6): Add the newest font-awesome files for icons
- webfont(plus_jakarta): Add the 'plus_jakarta' font files as the first choice of text's font - Pre-prepare common js/css files. (100%)
- view/theme/default/stylesheet/common.css
- view/javascript/easydingzhi/common.js - Support EN/CN languages (100%)
- Old: web/catalog/language/en-gb/xxx
- New:
- web/catalog/language/en/xxx
- web/catalog/language/se/xxx
- web/catalog/language/zh/xxx
Updated by Junyi Zhang about 1 year ago
- Status changed from 进行中 to 已关闭
- % Done changed from 0 to 100
Updated by Junyi Zhang 10 months ago
Output (2025/02/12)
- Support muti-language: EN, SE, CN
- language_id: EN = 1, SE = 2, CN = 3