Project

General

Profile

追加功能 #437

v4.0: General

Added by Junyi Zhang about 1 year ago. Updated 10 months ago.

Status:
已关闭
Priority:
普通
Assignee:
Target version:
IT: Easytryck (Sweden) - v4.0
Start date:
10/17/2024
Due date:
10/21/2024
% Done:

100%

Estimated time:

Description

Background
  1. New requirement for v4.0 OTS
    See: OneDrive\赤蓝商贸(上海)有限公司\Shanghai Group - IT\开发相关\OTS V4\开发需求
  2. Base: https://git-codecommit.cn-northwest-1.amazonaws.com.cn/v1/repos/ots4.0-web
Task Details
  1. Prepare a clean environment based on openCart as the base for v4.0.
  2. Connect both the old database(OTS v3) and the new database(OTS v4).
  3. 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
  4. Support EN/SE/CN languages
    - language_id: en = 1, se = 2, cn = 3
Admin修改:
  1. Add 'zh', 'se' language
  2. Modify settings:
    - system -> settings -> general: Meta title ~ Meta tag keywords
    - system -> settings -> store: store name
  3. Update the admin order_status module:
    1. Admin dynamic set order status, add 'code'(compatible with V3), and 'hex'(order row background color) fields.
      - Refer #440
    2. Add 'status' in admin order statuses module.
      - Set 'labelled' status = disabled
  4. Common settings:
    1. add config_order_limit for order list
      - Set 80
    2. Add 'config_order_complete_status'. Order list default excludes the order status.
      - Set 'Completed'
v4 coding standard:
  1. Git提交
    #xxx(redmine number): xxx(redmine title) - xxx(任意:补充内容)
      
  2. 代码规范
    2.1: 结构:Public -> Protected -> Private
    2.2: 其他代码规范同SBX
      
  3. 数据层规范(Model)
    3.1: 数据库操作只应出现在model或者system中。
    3.2: v3/v4的model分为两个文件,比如: order.php, order_v3.php
     
  4. 前台代码
    twig, js, css (js, css尽量写在单独的css文件中)
     
  5. 后台代码
    MVCL (L:en,cn)
     
  6. 注释
    1. 类名:
      /**
       * xxx
       *
       * @copyright RedBlue-OTS 2024
       * @version v4
       *
       */
      
    2. 函数名:参数类型 + 返回值类型
          /**
           * xxx
           *
           * @param  xxx $xxx
           * @param  xxx $xxx
           * @return xxx
           */
      
Output
  • Report and Solution

Others

Also available in: Atom PDF