發表文章

目前顯示的是有「opencart」標籤的文章

Opencart add fields in product

You will need MySql Knowledge and some php knowledge Step 1. First thing first, add your new fields to the product table in the database - this should be the easy part. Step 2. Open up product.php in admin/controller/catalog, you will want to copy and paste this piece of code. inside the getForm functions, (around line 707) CODE:   SELECT ALL if (isset($this->request->post['Table Name'])) {             $this->data['Table Name'] = $this->request->post['Table Name'];        } elseif (isset($product_info)) {          $this->data['Table Name'] = $product_info['Table Name'];       } else {             $this->data['Table Name'] = '';        } also you will want to add the language variables like so (around line 521) CODE:   SELECT ALL $this->data['entry_table name'] = $this->language-...