Posts

Opencart Version 2.3.0.2 Order Status Update Error

Image
Hi, if you get the same message on order status update in admin <b>Fatal error</b>:  Call to a member function check() on a non-object in <b>/home/storerpg/public_html/vqmod/vqcache/vq2-catalog_model_checkout_order.php</b> on line <b>274</b><br /> and screenshot alert like this. this is the opencart code error. I solved this by changing this line in  catalog -> model -> checkout ->  order.php  SOLUTIONS:  Before Code Line:  $fraud_status_id = $this->{'model_fraud_' . $extension['code']}->check($order_info); Changed Code Line :  $fraud_status_id = $this->{'model_extension_fraud_' . $extension['code']}->check($order_info); Now it is working fine. Enjoy Fixing I did fix this code for opencart Version 2.3.0.2

Bootstrap Select dropdown option with image || thumnail

Select... Chrome Firefox IE Opera Safari Make sure you have bootstrap already installed then use this code   <link rel="stylesheet" href="https://thdoan.github.io/bootstrap-select/css/bootstrap-select.css">   <script src="https://thdoan.github.io/bootstrap-select/js/bootstrap-select.js"></script>              <select title="Select your surfboard" class="selectpicker">   <option>Select...</option>   <option data-thumbnail="https://thdoan.github.io/bootstrap-select/images/icon-chrome.png">Chrome</option>   <option data-thumbnail="https://thdoan.github.io/bootstrap-select/images/icon-firefox.png">Firefox</option>   <option data-thumbnail="https://thdoan.github.io/bootstrap-select/images/icon-ie.png">IE</option>   <option data-thumbnail="https://thdo

Opencart Version 3.x UPS shipping method error

Image
Hi, if you getting same message like me for the shipping method UPS Warning: No Shipping options are available. Please contact us for assistance! SOLUTIONS: I found the problem in UPS shipping method code was incorrect. Before Code Line:  if ($this->config->get('ups_' . strtolower($this->config->get('shipping_ups_origin')) . '_' . $code)) { Changed Code Line:   if ($this->config->get(' shipping_ ups_' . strtolower($this->config->get('shipping_ups_origin')) . '_' . $code)) { Now it is working fine. Enjoy Fixing I did fix this code for opencart Version 3.0.2.0

Redirecting https to http using .htaccess and Vice Versa

Redirecting https to http I used this code and now it is working fine 😅 RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Redirecting http to https  # force ssl RewriteCond     %{SERVER_PORT} ^80$ RewriteRule     ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

How to test Ocmod extension or module xml file code in Opencart without installing?

Image
Answer : We can simply put our ocmod xml file in ROOT- > SYSTEM(folder) it will work. later on developer can install it in admin Extension->Extensioin Installer

Where we can see Ocmod error, VQmod Error and PHP File Error in Opencart?

Image
1. Ocmod Error can be found here:- Answer : Path: /system/storage/logs File Name:  error.txt or error.log 2. Vqmod Error or PHP Error can be found here:- Answer : Path: / File Name:  error_log

Javascript Error: Uncaught ReferenceError: ga is not defined at HTMLImageElement.onload

Image
Hi, I found this error on my Jquery Page.  Uncaught ReferenceError: ga is not defined     at HTMLImageElement.onload  I added this below script now it has been solved  window['GoogleAnalyticsObject'] = 'ga';   window['ga'] = window['ga'] || function() {     (window['ga'].q = window['ga'].q || []).push(arguments)   };