简体   繁体   中英

Opencart theme is showing error after install on localhost but working good on existing site?

I have installed a fresh Opencart file. Now I have used a theme which client has sent to me. When I installed the theme it showed an error as Notice: Undefined variable: text_items_no in Opencart/catalog/view/theme/epura/template/module/cart.tpl on line 1 item. Now I thought there might be an error with the theme but when I visited the site where the theme has been activated there was no error. So can someone tell me what I am missing here?

NOTE I am using the same versionf Opencart which the theme has been activated in the live site and also on my localhost.

Actually, there is no error in your theme integration. You are missing a single variable to initiate via the controller of cart module that is text_items_no, probably used for showing the number of items in text version.

so in the catalog/controller/module/cart.php initiated this variable and the notice will be removed.

Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM