Posts

Showing posts from 2017

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)   };

Creating full width (100% ) container inside fixed width container.

Image
For Making a full width containers (which spans 100% of window) inside a container which has a fixed width and aligned center like below picuture. I used following css now its done .box_short { position: relative; width: 100vw; left: 50%; margin-left: -50vw; } for deep knowledge you can follow this link http://jsfiddle.net/m1L6pfwm/2/

Fatal error: Call to a member function getCimOrderSuccesfulResponse() on a non-object in Opencart Authorize.net CIM payment method error

Hi I was getting error in Authorize.net CIM payment method in Opencart admin in Order View page. so I fixed it by following these two steps 1. In file Admin-> controller-> extension-> authorizenet_cim.php I replaced this line  model_payment_authorizenet_cim to  model_extension_payment_authorizenet_cim 2. In file Admin-> model->extension->payment->authorizenet_cim.php I replaced the class name  ModelPaymentExtensionAuthorizeNetCim to  ModelExtensionPaymentAuthorizeNetCim Now Problem has been fixed.😅😅😅 Happy Coding -------

how to override JavaScript function

REAL FUNCTION compare = {         add: function(t) {             $.ajax({                 url: "index.php?route=product/compare/add",                 type: "post",                 data: "product_id=" + t,                 dataType: "json",                 success: function(t) {                     $(".alert").remove(), t.success && ($.colorbox({                         html: '<div class="cart_notification"><div class="product"><img src="' + t.image + '"/><span>' + t.success + '</span></div><div class="bottom"><a class="btn btn-primary" href="' + t.link_compare + '">' + t.text_compare + "</a></div></div>",                         className: "login",                         initialHeight: 50,                         initialWidth

maximum execution time error when importing sql data file since php.ini has been already set max execution time 3000

I am trying to import a large SQL data file using PHPMyAdmin in localhost This the config file for php.ini  max_exection_time : 30000 already set. but I still getting this problem. so I follow this step and now the problem has been solved. Solution:   There's a configuration variable within the phpMyAdmin directory that I find in  libraries\config.default.php  called  $cfg['ExecTimeLimit']  that I set according to my requirement now it has been fixed.

add css to internal div to show background out of div

Image
CSS <style>     .product-tabs { margin: 0 -10%; padding: 0 10%; background: #f4f4f4; } </style> We can use this above CSS for all devices like PC,smartphone,tablet etc.  but it will not work if we press + and -- Sign of keyboard

Remove/Hide/Disable Add to Wishlist and Add to Compare button and links from Openart page from Journal theme

Image
I want to Remove/Hide/Disable Add to Wishlist and Add to Compare button from my Opencart page. I had installed Journal theme. so I found this page and it is working now.

Code Difference between vqmod and ocmod in Opencart

   Vqmod Necessary Code Tags are:-         <id> Extension Name </id>    <version> 1.0.0 </version>    <vqmver> 2.1.5 </vqmver>    <author> Ravi </author>    2.  Ocmod Necessary Code Tags are:-          <name> Extension Name </name>    <version> 1.0.0 </version>    <link> http://opencart.devinlabs.com </link>    <author> Ravi </author>    <code> extension_uniq_code_name </code> ******** Major Differences between Vqmod and Ocmod *********** In Vqmod we Use  "Name" for the file full path but for Ocmod we Use "Path"                             i.e:- Vqmod =      <file name="catalog/controller/common/seo_url.php" error="skip">                          Ocmod =     <file path="admin/view/template/catalog/product_form.tpl">                                        in Ocmod and Vqmod

Opencart Upgradation Error after saving User Permission. "you do not have permission to modify"

Image
I got error " you don't have permission to modify this page" error. ater saving User Permission page. I found some module contains html, css, pdf, or unmannered php files( Like some php file have no classes). for fixing this I removed that modules from admin controller folder after that it solved :)

open any sites use VPN connection

Image
http://www.vpnbook.com/

Opencart Vqmod TPL Problem

Image
Hi after upgradation my vqmod was not working on tpl file. so then I tried this vqmod file and it was fixed. https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=22378&filter_search=vqmod

download an attached files with Anti-virus warning on Gmail

Image
I followed following articles and it working. Save email and open it in Outlook For other way follow these articles. http://www.barfuhok.com/how-to-download-a-file-with-anti-virus-warning-on-gmail/

Change Image size in Opencart for Product image,category image and all image in Opencart version 2.2.0.0 and version 2.3.0.2

Image
Early version of opencart 2.2.0.0,  2.3.0.2  has option of changing the image size in Admin->setting>Image tab but now it has been moved to Admin->Extension->Edit theme before it was in earliest version here:- 

Memory size exhausted Error in PHP, Opencart, Wordpress

Hi, I getting below error in my opencart website. :  Allowed memory size of 67108864 bytes exhausted (tried to allocate 20000 bytes) in  /home/xxx/example.com/system/library/image.php to solving this error. I added these below code after  placing it at the beginning of the file. and problem has been solved. ini_set ( 'memory_limit' , - 1 ); For detail information. I also followed this Q/A. http://stackoverflow.com/questions/1948561/problem-using-imagecreatefromjpeg-and-imagejpeg

SSL Certificate Checker

Image
Check your SSL/TLS certificate installation https://cryptoreport.websecurity.symantec.com/checker/ How to setup SSL On Plesk Server?

Remote Backup from one Server to another Server using FTP

Image
Take backup from cPanel using FTP:- LINUX PLEX SERVER

Phone Number Validate JQuery

This script will check following thing in Phone Phone is not String Phone number must not starting with 0 or 1 jQuery('#phone').keyup(function (e) { var phonevalidate = jQuery('#phone').val();     var checkfirstval = phonevalidate.charAt(0); if(checkfirstval==0 || checkfirstval==1){ jQuery('#phone').val(''); } var regEx=/[^0-9]/; var checkstring = regEx.test(phonevalidate); if(checkstring){ jQuery('#phone').val(''); } }); Note: Here input id is phone .

How do you avoid caching during development in WordPress?

1. How do you avoid caching during development in WordPress? OR 2. 3 Ways to easily stop WordPress caching your stylesheets OR 3. Stop WordPress caching styles (the quick and easy and dirty way) ANSWER 1.  The first way and the quickest is to just pop them into  header.php  after wp_head() has run, so you know your styles are definitely the last css loaded (unless of course there are inline styles in the page). You do this like so: < head >    . . . <?php wp_head ( ) ; ?>                                   <style type ="text/css">                     #bottom_logo {                          position : relative ; left : -20px ;                      }                      @media screen and (max-width: 768px) {                     #bottom_logo{                         padding-bottom: 20px;                      }                  }                  </style> < / head > 2.  The ne

What is the Difference Between FTP and SFTP?

Image
FTPS is FTP with SSL for security. It uses a control channel and opens new connections for the data transfer. As it uses SSL, it requires a certificate. SFTP (SSH File Transfer Protocol/Secure File Transfer Protocol) was designed as an extension of SSH to provide file transfer capability, so it usually uses only the SSH port for both data and control The Main difference between I found that if I have FTP detail of a particular folder I can access that folder content and subfolder content by running FTP in FileZilla.  but in SFTP condition I can access that folder contents include outside other folder contents and subfolder contents. to access other folder contents we can exist and go out side from that folder by just only clicking two dots. that is on top of all contents. see the screenshot  

rackspace website entries to hosts file for local domain mapping

 This is useful when you want to test your site without the test link to test the site before pointing the domain to the destination hosting Read More Detail here:-   https://support.rackspace.com/how-to/modify-your-hosts-file/ Rackspace Inc. is a managed cloud computing company  Rackspace Is The Largest Managed Cloud Provider Offering You Expertise Across The World's Leading Clouds https://www.rackspace.com/en-in