How can resolve this error in brand_category “Notice: Undefined index: quantity in…” ?
I want to add preorder button when quantity=0
|
|
Are you using some custom extension or modifications of yours ?
|
|
Yes, modifications is mine
|
|
Then you need to open tb_themes/shoppica2/catalog/controller/BrandCategoryController.php and add the ‘quantity’ to the products array on row 136.
You also need to modify tb_themes/shoppica2/catalog/model/productsModel.php to add the ‘quantity’ field to the database query in the getProductsByManufacturerAndCategory function.
Best,
ThemeBurn team
|
|