Post by alstercart35 » Mon Jan 12, 2015 3:37 am

Hi there,

I've probably missed something obvious, but was hoping to get a bit of help or advice in regards to using / installing vqmod files on Opencart 2.

I'm currently trying to use the Extension installer to install modifications, and I've created a really simple VQmod xml file to test this, but I'm not seeing any changes.

I have installed Opencart 2.0.1.0, and I've also used this extension here:

http://www.opencart.com/index.php?route ... n_id=19501

to allow VQmod files to be used.

The contents of the test file are was follows:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<modification>

   <id>Make sure VQmod working</id>
   <version>1.0.0</version>
   <vqmver>2.4.1</vqmver>
   <author>AlexBennett</author>

   <file name="catalog/view/theme/*/template/common/header.php">

      <operation error="log">
         <search position="replace"><![CDATA[
            <li><a href="<?php echo $contact; ?>"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md"><?php echo $telephone; ?></span></li>
         ]]></search>
         <add><![CDATA[
          <li><a href="<?php echo $contact; ?>"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md">My Telephone Number!!!!</span></li>
         ]]></add>
      </operation>

   </file>

</modification>


Can anyone tell me if there's an obvious reason why this isn't working? IN the extension installer it says it's installed successfully, and the log is as follows in modifications:

Code: Select all

2015-01-11 19:23:17 - MOD: Modification Default
FILE: system/engine/action.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 58
FILE: system/engine/loader.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 20
LINE: 37
LINE: 54
LINE: 65
FILE: system/library/config.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 23
FILE: system/library/language.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 21
LINE: 27
----------------------------------------------------------------
Modification::refresh - Processing 'Make sure VQmod working'

Modification::refresh - Done 'Make sure VQmod working'


Also the test file is based on the header file in Opencart 2 not and older version.

Any help with this is much appreciated!!

Regards, Alex :-[

Newbie

Posts

Joined
Thu Jan 10, 2013 7:08 pm

Post by Qphoria » Thu Jan 15, 2015 2:36 am

Best to stick with the normal vqmod upload process using ftp
But I think for the installer to work you need to have a vqmod folder with the full directory structure (upload/vqmod/xml/myfile.xml) zipped up and named something like mymod.ocmod.zip

That should allow it to upload using the installer system.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by scottwest » Tue Jan 20, 2015 5:56 am

alstercart35,

I'm also having a problem with VQmod with v2011. Did you get it figured out? Let me know, I'm sure this question will popup often as people upgrade .

Newbie

Posts

Joined
Mon Sep 05, 2011 3:17 pm

Post by alstercart35 » Tue Jan 20, 2015 7:22 pm

Qphoria wrote:Best to stick with the normal vqmod upload process using ftp
But I think for the installer to work you need to have a vqmod folder with the full directory structure (upload/vqmod/xml/myfile.xml) zipped up and named something like mymod.ocmod.zip

That should allow it to upload using the installer system.

Hi Qphoria,

Initially I did try going down the traditional route downloading the latest VQmod that says it's compatible with Opencart 2 from GitHub. I uploaded the files, and then visited the install folder at vqmod/install, but I always get a forbidden 403 error. Even with both the vqmod and install folders at 755 or even 777 permissions I still get this, and I've tried suggestions of renaming the htaccess file in the folder temporarily and that doesn't work either.

Is there a chance this is an Opencart 2 issue? I've installed Vqmod on previous versions without a problem, but I realise I may be missing something simple here, which is why I tried using the built in functions.

Thanks, Alex

Newbie

Posts

Joined
Thu Jan 10, 2013 7:08 pm

Post by alstercart35 » Tue Jan 20, 2015 7:37 pm

Having just looked more closely at the VQmod files I downloaded the stand-alone folder not the Opencart one! Very dumb. As a result there was no index.php file hence the 403.

I've since downloaded the v2.5.1-opencart from here:

https://github.com/vqmod/vqmod/releases

Just in case anyone makes the same stupid mistake I just have!

Will now try testing VQmod files again.

Newbie

Posts

Joined
Thu Jan 10, 2013 7:08 pm
Who is online

Users browsing this forum: No registered users and 1 guest