magento分類新增超過1000個產品

2021-06-15 04:24:54 字數 433 閱讀 8414

由於php從5.3.9開始增加乙個變數 max_input_vars 用來限制提交的表單數量,後台分類下儲存產品不能超過1000個,修改方法如下:

1、修改php.ini中的max_input_vars,改為自己想要的值,然後重啟php;

if (isset($data['category_products']) &&

!$category->getproductsreadonly())

替換為:

if (isset($data['category_products']) &&

!$category->getproductsreadonly()) }}

$category->setpostedproducts($products);

}

magento新增confirm email驗證

2012 5 26更新為 編輯prototype validation.js 新增 validate cemail please make sure your email matches.function v validate cemail是html中標籤的class,checkemail 是在另外...

magento 獲取產品分類

class bruce account categoriescontroller extends mage core controller front action return result public function load tree collection mage getmodel ca...

magento 新增 刪除css js

在addjs addcss的 一般在page html head型別的block當中,magento首先會將所有檔案儲存在 data當中,最終通過getcssjshtml函式解析成對應的html 輸出。head中支援add型別的方法有addcss addjs addcssie addjsie add...