opencart

Fatal error: Call to undefined method Action::execute() /home/public_html/system/engine/event.php on line 62

試著忘記壹切 提交于 2019-12-02 16:03:00
问题 Hi tried refreshing the modification cache cache in opencart and since then i am getting a blank page in front end with this error message. public function trigger($event, array $args = array()) { foreach ($this->data as $value) { if (preg_match('/^' . str_replace(array('\*', '\?'), array('.*', '.'), preg_quote($value['trigger'], '/')) . '/', $event)) { $result = $value['action']->execute($this->registry, $args); if (!is_null($result) && !($result instanceof Exception)) { return $result; } }

cant connect opencart to mySQL database

喜你入骨 提交于 2019-12-02 12:54:28
问题 I'm trying to set up opencart for my website, but when I fill in everything for the MySQL database I get this error: No connection could be made because the target machine actively refused it. I've tried putting it on localhost, I've tried on 127.0.0.1. when I try on 192.168.1.126 (the database server) it says it can't find the database the server hosting the PHP site is on 192.168.1.125 I'm very new to SQL, I really don't understand it fully. I'm creating a new database in SQL workbench. and

Opencart meta title include store name

半城伤御伤魂 提交于 2019-12-02 12:30:46
How to get the store name when in the Document class. This is what I am trying to do: public function setTitle($title) { // Append store name if small title if(strlen($title) < 30){ $this->title = $title . ' - ' . $this->config->get("store_name"); } else { $this->title = $title; } } Although the $this is referring to the document class. How to I get the config? Using the latest version of opencart 1.5.2.1 When you check the index.php file to see how config is loaded // Registry $registry = new Registry(); // Loader $loader = new Loader($registry); $registry->set('load', $loader); // Config

WAMP Server not displaying images

家住魔仙堡 提交于 2019-12-02 12:29:55
问题 I'm having a problem which I don't know what to search in google. Basically I have installed WAMP server and Installed OPen Cart I am able to view my ECommerce site on my local computer but when I open it in on a remote computer it doesn't load any images. It only shows texts My scenario: if I load the PHP page at http://192.168.1.101/ it works fine. I am able to view the WAMP server page which I put in the root directory but when i load the ecommerce pages at http://192.168.1.101/clothing/

Specific template for category and product page in OpenCart 2.2.0.0

天大地大妈咪最大 提交于 2019-12-02 11:03:10
I am using OpenCart version 2.2.0.0 and trying to set different template for each category and product page. Searching online I found following code: if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category_' . $category_id . '.tpl')) { $this->template = $this->config->get('config_template') . '/template/product/category_' . $category_id . '.tpl'; } elseif (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/product/category.tpl')) { $this->template = $this->config->get('config_template') . '/template/product/category.tpl'; }

open cart: Fatal Error : Class 'Mysqli' Line 7

坚强是说给别人听的谎言 提交于 2019-12-02 10:47:44
Anyone can help me? i have problem for installation OpenCart in Cpanel with Softacolous, when i'm finished for install and during open the site i have message : Fatal error: Class 'mysqli' not found in /home/radiance/public_html/shoukhin/system/library/db/mysqli.php on line 7 ==info:== open cart: Version : 2.0.3.1, 1.5.6.4 Release Date : 29-05-2015 Anything more to solve or get ans? Anyone there to solve it? Thanks in advance. Azad kit Please install mysqli into your centos server . To install mysqli using EachApache: Login to WHM as 'root' user. Either search for "EasyApache" or go to

get third level category in opencart

半城伤御伤魂 提交于 2019-12-02 10:31:11
问题 I want to foreach third level in OpenCart category module, here is code which only generates 2 level category, please help and modify so that it will genarate third level: <ul id="menu"> <?php foreach ($categories as $category) { ?> <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a> <?php if ($category['children']) { ?> <?php for ($i = 0; $i < count($category['children']);) { ?> <ul> <?php $j = $i + ceil(count($category['children']) / $category['column']); ?>

Opencart: modifying email layouts

心不动则不痛 提交于 2019-12-02 07:46:35
问题 I'm running Opencart Version 2.0.1.1. I need a way of editing the layout of the registration and order update email. By this, I mean control the full layout using HTML/CSS, not just edit the text definitions of the variables. I am aware these are located in: ./catalog/language/english/mail/customer.php and ../order.php respectively. My theme came with a custom mail for the order email template located in ./catalog/view/theme/theme574/template/mail/order.tpl (see below). I want that level of

SEO URL for information pages in opencart not working

不打扰是莪最后的温柔 提交于 2019-12-02 07:17:17
问题 I'm trying to create custom SEO url's for opencart i've googled for hours and tried all the solutions (Set SEO friendly urls to yes in the admin pannel) and succesfully added SEO keywords to my information pages. Yet im still getting /index.php?route=information/information&information_id=11 instead of /media/ also going to /media/ give me a 404 error. The odd thing is that my catelog pages are working correctly and will just give me an url like /myshop/ i've added my htaccess file if that is

Opencart: modifying email layouts

让人想犯罪 __ 提交于 2019-12-02 07:05:51
I'm running Opencart Version 2.0.1.1. I need a way of editing the layout of the registration and order update email. By this, I mean control the full layout using HTML/CSS, not just edit the text definitions of the variables. I am aware these are located in: ./catalog/language/english/mail/customer.php and ../order.php respectively. My theme came with a custom mail for the order email template located in ./catalog/view/theme/theme574/template/mail/order.tpl (see below). I want that level of control for when the user registers and when I update the order status with a comment. <!DOCTYPE html