How to Install VQMOD in Opencart

VQMOD in Opencart

How to Install VQMOD in Opencart

The instal process for VQMOD in opencart has now been made very easy. However, it can mess up your day if you do not pay attention to the correct version of opencart vs version of vqmod that you are installing.

 

There are two ways  to install vqmod

  1. Installation through Auto Installer
  1. Download  the latest version from Github
  2. First Unzip it to your local computer, You will see named “vqmod”
  3. You will need  to FTP/Copy/Transfer “vqmod” folder to the root of your OpenCart root directory folder (where you see: admin, catalog, image, system folders)
  4. Make sure vqmod folder is writable .
  5. Make sure that the vqmod folder contains an install directory. Also check that the install directory contains an index.php file.If you don’t see the index.php file, you must have downloaded a standalone version of VQMOD
  6. Then go to http://www.yoursite.com/vqmod/install – if you see a success message, then installation is done. The message should read: “VQMOD HAS BEEN INSTALLED ON YOUR SYSTEM!”  If you see “index.php not writeable”, then you need to set your root OpenCart index.php to writable. If you see “Administrator index.php not writeable”, then make the “/Admin/index.php” to writable.

Always check that you are able to launch your home page before you start celebrating.

Install vqmod by Manual method

This is a lot more accurate and old school especially if you are a developer that insists on perfection.

Download the latest version that has “opencart” in the title from

  1. Using FTP, upload the “vqmod” folder from the zip to the root of your opencart store.
  2. Be sure the vqmod folder and the vqmod/vqcache folders are writable (either 755 or 777).
    • Also be sure index.php and admin/index.php are writable.
      • If not sure which you need, first try 755.
      • If you get errors about permissions, then try 777.
  3. Edit your index.php file(2.x)
  4. FIND:
      // Startup
      require_once(DIR_SYSTEM . 'startup.php');
    
  5. REPLACE WITH:
      // vQmod
      require_once('./vqmod/vqmod.php');
      VQMod::bootup();
    
      // VQMODDED Startup
      require_once(VQMod::modCheck(DIR_SYSTEM . 'startup.php'));
    

    (1.5.x)

  6. FIND:
      // Startup
      require_once(DIR_SYSTEM . 'startup.php');
    
      // Application Classes
      require_once(DIR_SYSTEM . 'library/customer.php');
      require_once(DIR_SYSTEM . 'library/currency.php');
      require_once(DIR_SYSTEM . 'library/tax.php');
      require_once(DIR_SYSTEM . 'library/weight.php');
      require_once(DIR_SYSTEM . 'library/length.php');
      require_once(DIR_SYSTEM . 'library/cart.php');
      require_once(DIR_SYSTEM . 'library/affiliate.php');
    
  7. REPLACE WITH:
      // vQmod
      require_once('./vqmod/vqmod.php');
      VQMod::bootup();
    
      // VQMODDED Startup
      require_once(VQMod::modCheck(DIR_SYSTEM . 'startup.php'));
    
      // Application Classes
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/customer.php'));
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/currency.php'));
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/tax.php'));
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/weight.php'));
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/length.php'));
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/cart.php'));
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/affiliate.php'));
    

Note the affiliate library file may not exist on older systems. Basically any require_once(DIR_SYSTEM . 'library/xxxxxxxx.php'); needs to be changed to use the VQMod::modCheck above in the same format. This also applies to any additional require_once files in the next step

  1. Edit your admin/index.php file(2.x)
  2. FIND:
      // Startup
      require_once(DIR_SYSTEM . 'startup.php');
    
  3. REPLACE WITH:
      // vQmod
      require_once('../vqmod/vqmod.php');
      VQMod::bootup();
    
      // VQMODDED Startup
      require_once(VQMod::modCheck(DIR_SYSTEM . 'startup.php'));
    

    (1.5.x)

  4. FIND:
      // Startup
      require_once(DIR_SYSTEM . 'startup.php');
    
      // Application Classes
      require_once(DIR_SYSTEM . 'library/currency.php');
      require_once(DIR_SYSTEM . 'library/user.php'));
      require_once(DIR_SYSTEM . 'library/weight.php');
      require_once(DIR_SYSTEM . 'library/length.php');
    
  5. REPLACE WITH:
      // vQmod
      require_once('../vqmod/vqmod.php');
      VQMod::bootup();
    
      // VQMODDED Startup
      require_once(VQMod::modCheck(DIR_SYSTEM . 'startup.php'));
    
      // Application Classes
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/currency.php'));
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/user.php'));
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/weight.php'));
      require_once(VQMod::modCheck(DIR_SYSTEM . 'library/length.php'));
    
  6. Load your store homepage and verify it works.
  7. Using FTP, verify that there are new “vq” files in the “vqmod/vqcache” folder.
  8. If yes, then you are ready to start downloading or creating vQmod scripts.

Leave a Reply

Your email address will not be published. Required fields are marked *