add a field in edit product page of prestashop admin

后端 未结 5 1523
旧时难觅i
旧时难觅i 2020-12-30 18:03

I have add a field \"mystock\" in product table of prestashop database. Now i want to display/edit this filed in edit product page. It also be update when product will updat

5条回答
  •  囚心锁ツ
    2020-12-30 18:50

    Thanks altafhussain. You have to add your field to both 'products_shop' and 'products' tables.

    ALTER TABLE ps_product_shop ADD `mystock` int NOT NULL DEFAULT 0;
    ALTER TABLE ps_product ADD `mystock` int NOT NULL DEFAULT 0;
    

    I'm using ps 1.6.0.6

提交回复
热议问题