opencart2.x

vqmod logs opencart error

不羁的心 提交于 2019-12-12 06:31:55
问题 I had installed an extension which was working great, but after doing some modification it stopped working. and i was going through the vqmod/logs and found this error, can anyone please solve this issue? REQUEST URI : /index.php?route=product/category&path=81 MOD DETAILS: modFile : /home/public_html/vqmod/xml/add_option_category.xml id : version : 1.0 vqmver : author : OST File Name : catalog/view/theme/*/template/product/category.tpl(5) VQModObject::applyMod - SEARCH NOT FOUND (ABORTING MOD

Get error when Code add via vqmod

爷,独闯天下 提交于 2019-12-12 06:04:20
问题 I have follow this answer Check module position in OpenCart 2.0 and it is working fine When add it code direct in core file. But, when, this same code (Step 3) add via Vqmod (without change core file). So, It is not work. Get error ( Notice: Undefined index: position in.... ) Our Vqmod Code. <file path="catalog/controller/common/" name="content_top.php,content_bottom.php,content_right.php,content_left.php"> <operation> <search position="after"> <![CDATA[$setting_info = $this->model_extension

How to change OpenCart2 breadcrumbs home text?

亡梦爱人 提交于 2019-12-12 04:18:33
问题 I'm struggling with this problem for a few months now and I can't figure out where to change this. Note that the website I'm working on is coded by someone else, I can't find the part where the fontawesome icon is added to the home text in the breadcrumbs. Look at the breadcrumbs As you can see there's an icon added, but I want to add a space between home and the icon, I just can't figure out which file to edit. If you need any more info, let me know. 回答1: Search for $_['text_home'] in

Illegal string offset 'order_status_id' in opencart

烂漫一生 提交于 2019-12-12 00:34:50
问题 I am getting error Illegal string offset 'order_status_id' when I want to get loop data in view Here's the code: controller.php if (isset($_POST["email"])) { $email = $_POST["email"]; } $this->load->model('order/myorder'); $data['data1'] = $this->model_order_myorder->getOrder($email) ; view.php foreach ($data1 as $row) { echo echo $row->order_id; } model.php class ModelOrderMyorder extends Model { public function getOrder($email) { $sql = "SELECT * FROM ".DB_PREFIX."order, ".DB_PREFIX."order

Using OpenCart 2.0. How do I display customers email on a category page?

允我心安 提交于 2019-12-11 19:31:19
问题 I'm using OpenCart 2.0 and I'm trying to show a user email on a category page when a user is logged in. The code below I believe works for it to show a users email on the success.tpl. How can I display it on a category page? Thanks for your time. IN: /catalog/controller/product/category.php I HAVE THIS: $this->load->model('account/order'); $order = $this->model_account_order->getOrder($this->session->data['order_id']); if($order) { $this->data['email'] = $order['email']; } THEN IN:/catalog

How to get current category id - OpenCart 2.0

感情迁移 提交于 2019-12-11 17:13:37
问题 I have a code for product tpl witch I need a condition if a category id=12 echo.. THe code below works on opencart 1.5.6.4 but on 2.0 doesn't generate anything. <?php if(isset($this->request->get['path'])) { $path = $this->request->get['path']; $cats = explode('_', $path); $cat_id = $cats[count($cats) - 1]; } ?> <?php if (isset($cat_id) && $cat_id == '108') { ?> <div style="text-align: right;"><a href = "javascript:void(0)" onclick ="document.getElementById('fade').style.display='block'"

Fatal error Call to a member function isLogged() on in OpenCart

与世无争的帅哥 提交于 2019-12-11 14:51:50
问题 After migrating my website from one hosting server to another I am getting the following error in my admin page, which does not open. Fatal error: Call to a member function isLogged() on null in /webcorp1/www/corpusers/s/a/satvikorganic.com/vqmod/vqcache/vq2-catalog_model_catalog_product.php on line 96 回答1: Have been working on an opencart site and have had the same issue, turns out I had naively copied the same paths from my front end config file into the admin config.php file. The following

How to Show Order Details on Checkout Success Page in Opencart 2x

你。 提交于 2019-12-11 12:55:44
问题 I am trying to show order details for successful orders on success page but unable to do so. Another answer here suggests to modify success.php and success.tpl but it's not working on Opencart 2. What have I tried? catalog/controller/checkout/success.php and added new lines in the following code: public function index() { $this->data['order_id'] = 0; // <-- NEW LINE $this->data['total'] = 0; // <-- NEW LINE if (isset($this->session->data['order_id'])) { $this->data['order_id'] = $this-

Open Cart version 2, Quantity filed on Category View

拈花ヽ惹草 提交于 2019-12-11 12:14:18
问题 I am working with Opencart 2.0 and I am trying to get the quantity field to work from the category page as well as the product pages. I managed to do this fine previously with version 1.5 but the code has changed a lot since. With Opencart V 1.5 I used the solution provided by Siven Sadiyan (http://siven76.com/2013/04/29/opencart-add-a-quantity-box-on-product-list-pages/) who's solution worked beautifully, and just required a tweak to common.js and category.tpl and I was able to apply this to