opencart

MySQLI Connect Error Shows Password

空扰寡人 提交于 2019-12-11 11:52:54
问题 I have a website running on opencart which uses command Mysqli connect to connect to database, now the problem i am facing is if due to some error it is not able to connect or lets say i change the password for my database user my Output shows a fatal error which includes the password used to connect also. Error i Receive Warning: mysqli::mysqli(): (28000/1045): Access denied for user 'saledart_admin'@'localhost' (using password: YES) in /home2/saledart/public_html/system/database/mysqli.php

Opencart 2.1.0.2 Getting error from installing ocmod.zip

白昼怎懂夜的黑 提交于 2019-12-11 11:49:22
问题 I've just started to use 2.1.0.2 and I'm trying to convert over some of my own extensions I built for my 1.5.6.4 store. I have started with a fresh install of 2.1.0.2 and I built a very basic extension, I'm wanting to move over to the extension installer to install my future additions to my store instead of using vqmod. I have made my testerextension.ocmod.zip, inside this is: install.xml /upload/ /admin/ /catalog/ However when I use the installer to upload testerextension.ocmod.zip I'm

Replace admin TPL files with OCMOD

点点圈 提交于 2019-12-11 11:44:03
问题 I'm currently teaching myself OpenCart and OCMOD. I have a basic understanding on how the system works with creating an XML mod file and uploading this through the modifications interface or directly adding the XML data into the the XML row of the modifications table. I can successfully, using XML, search for files and either replace lines of code or insert before or after.. The basics basically. I am still yet to learn the full capabilities of XML. My question, how can I completely override

Opencart Issue document.cookie Alert on Page Load

坚强是说给别人听的谎言 提交于 2019-12-11 09:29:18
问题 enter image description hereOne of my client's Opencart website have issues when open the website, a prompt alert shows following code: Conflict <script>document.cookie = "humans_21909=1"; document.location.reload(true)</script> How to get this resolve. Also help me to find the files where they are located to fix it. 回答1: Had the same issue, it only happened to me when the request was something to do with "register", in my case it was "register.php", I only changed the documents name and

OpenCart 2.2 error undefined when viewing order info

杀马特。学长 韩版系。学妹 提交于 2019-12-11 06:56:02
问题 When I click the view button next to an order (whether from the dashboard or orders page) I get an "error undefined" alert as the page is loading. I also get the same error when I try and change the order status from the same page and it yields no results. It also produces no errors in the error log. I can however change the order status from the edit order page but this is very inconvenient. If anyone knows a common solution or maybe pointers as to how to start diagnosing the issue please

Opencart Admin Access: Invalid token session. Please login again

杀马特。学长 韩版系。学妹 提交于 2019-12-11 06:48:37
问题 Version No. Version 1.5.4 When I try to log into my admin account on this computer the error message "Invalid token session. Please login again." pops up, this error has been occurring since yesterday. On chrome this error stops me from even reseting the password. Trying out alternative browsers inlcuding one one my Tablet just returns the "No match for Username and/or Password." error. How can I solve this issue? I have looked in my MYSQL and the databases seem fine, I also went into my

How to use Page Id in Opencart

六月ゝ 毕业季﹏ 提交于 2019-12-11 06:46:15
问题 How can I use the id of a page in a Opencart template to show content only for that specific page? Or something similar? Thanks so much Mark 回答1: For Product.tpl product_id For Category.tpl path For Content.tpl information_id Edit those .tpl files and use the variables I have stated. You can use in practice in the .tpl files like: <? if(isset($_GET["product_id"])==""){ // yes } else { // do something else } ?> For security. You can use mysql_escape_string(); You can also use the library in

Opencart Undefined success notification

旧城冷巷雨未停 提交于 2019-12-11 06:44:45
问题 I am trying to solve a problem which was happened after loading some modules to my opencart server. Everything seems working fine but my site showing "UNDEFINED " in header and I could not find to solve it. Can you tell me where can I find it ? Undefined Header in Success notification message 回答1: I just checked the screenshot and the problem is in your cart properties. You need to get the error code from error log. Then we can solve the issue. 来源: https://stackoverflow.com/questions/41037552

OpenCart Call Different Controller

北慕城南 提交于 2019-12-11 06:41:10
问题 I have a custom module, and now want to call the add() function from checkout/cart . How do I call the controller and function? I have tried $this->load->controller('checkout/cart'); but this returns a fatal exception. I am using OpenCart v 1.5.6.4 回答1: In OpenCart 1.5.*, getChild is used to load other controllers. Specifically, it is running a route to the desired controller and function. For example, common/home would load the home controller from the common group/folder. By adding a third

Opencart - How I can execute a custom code on product page? Without mods on controller product

随声附和 提交于 2019-12-11 06:38:49
问题 I'm working on a custom module and I need to populate a table when the customer opens the product page. It was better if I don't have to mod the controller or make a custom AJAX call on view. It's possible? Sorry by the english. 回答1: Yes you can do this without touching the MVC pattern; although it is better and recommend to stay within the MVC methodology (quick hacks are sometimes better solutions though) 1 - Open \catalog\view\theme\default\template\product.tpl 2 - Find <?php echo $footer;