Post by ax23w4 » Sat Jan 21, 2012 3:40 am

Hi. Here's my problem.

I've installed latest OpenCart and manually installed latest vQmod.

I know PHP and I'm pretty sure I did everything as it said in the instruction.
Extracted the files into vqmod/ directory, edited the index.php just as it says. Here's a snippet from my index.php:

Code: Select all

//VirtualQMOD
require_once('vqmod/vqmod.php');
$vqmod = new VQMod();
$vqmod->useCache = true;

// 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/affiliate.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'));
It runs but it does nothing. By debugging it manually I see that $vqmod is an object and it even contains the rules from XMLs I've made. But the output isn't changing in any way and there's no files being created in vqmod\vqcache - it's empty. I've tried it on my localhost and my dedicated server (double checked all directory permissions) and it's the same reaction. No changes and an empty cache folder.

The vqmod.log says:

Code: Select all

REQUEST URI : /index.php?route=product/product&product_id=40
NO MODS IN USE
Even though there should be a mod applied. But modifying the script isn't the main problem. Main problem is that it seems that it just not doing anything at all (which i know by seeing an empty cache folder).

Please help me with this. Am I doing something wrong?

Newbie

Posts

Joined
Sat Jan 21, 2012 3:26 am

Post by d7a7z7e7d » Sat Jan 21, 2012 3:46 am

Very strange, it sounds like you did everything correctly. You didn't delete the XML file in the /xml folder that came with the extension, did you?

Image
OpenCart Extensions, Technical Support & Custom Development | Have I helped you?


User avatar
Active Member

Posts

Joined
Fri Sep 17, 2010 5:51 am
Location - USA

Post by ax23w4 » Sat Jan 21, 2012 4:19 am

Thanks, d7a7z7e7d.

I've found the problem. And it was my fault.

I've installed vqmod-2.1.5-stand-alone.zip thinking that vqmod-2.1.5-opencart.zip goes with preconfigured OpenCart.

Although not even replacing my files with opencart version immediately helped. I've had to try and experiment with XML files to get it running. Currently I'm not sure what I'm allowed and what I'm not allowed in XML files.

But at least I've got the basic stuff working.

Newbie

Posts

Joined
Sat Jan 21, 2012 3:26 am

Post by Qphoria » Sat Jan 21, 2012 4:54 am

The only diff between the 2 is that the opencart one comes with the auto-installer for opencart and the vqmod_opencart.xml file that must be placed in the xml folder.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by ax23w4 » Tue Jan 24, 2012 8:06 pm

Qphoria wrote:The only diff between the 2 is that the opencart one comes with the auto-installer for opencart and the vqmod_opencart.xml file that must be placed in the xml folder.
Didn't knew that. I thought they're different.
And I didn't used the installer also. So the only thing I've needed to fix it is vqmod_opencart.xml.

Newbie

Posts

Joined
Sat Jan 21, 2012 3:26 am
Who is online

Users browsing this forum: No registered users and 12 guests