• 请不要在回答技术问题时复制粘贴 AI 生成的内容
laravel
V2EX  ›  程序员

有人熟悉 opencart 吗?

  •  
  •   laravel · Nov 20, 2020 · 1616 views
    This topic created in 2028 days ago, the information mentioned may be changed or developed.

    oc_product_option 这张表有存在的意义吗?

    为什么不合并到 oc_product_option_value 里?

    还有 oc_product_option_value 为什么没有 image 字段,当用户选择不同的尺寸、颜色,可以展示不同的图片

    2 replies    2020-11-30 18:33:33 +08:00
    laravel
        1
    laravel  
    OP
       Nov 20, 2020
    CREATE TABLE `oc_product_option` (
    `product_option_id` int(11) NOT NULL AUTO_INCREMENT,
    `product_id` int(11) NOT NULL,
    `option_id` int(11) NOT NULL,
    `value` text NOT NULL,
    `required` tinyint(1) NOT NULL,
    PRIMARY KEY (`product_option_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

    CREATE TABLE `oc_product_option_value` (
    `product_option_value_id` int(11) NOT NULL AUTO_INCREMENT,
    `product_option_id` int(11) NOT NULL,
    `product_id` int(11) NOT NULL,
    `option_id` int(11) NOT NULL,
    `option_value_id` int(11) NOT NULL,
    `quantity` int(3) NOT NULL,
    `subtract` tinyint(1) NOT NULL,
    `price` decimal(15,4) NOT NULL,
    `price_prefix` varchar(1) NOT NULL,
    `points` int(8) NOT NULL,
    `points_prefix` varchar(1) NOT NULL,
    `weight` decimal(15,8) NOT NULL,
    `weight_prefix` varchar(1) NOT NULL,
    PRIMARY KEY (`product_option_value_id`)
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
    buptspig
        2
    buptspig  
       Nov 30, 2020
    我没有想这些问题,他怎么设计的,我就怎么用,当初也是 1 个人开发出来的,肯定不是各方面都是最优解
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   936 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 19:41 · PVG 03:41 · LAX 12:41 · JFK 15:41
    ♥ Do have faith in what you're doing.