ZhyrovOleh / vqmod

Automatically exported from code.google.com/p/vqmod
0 stars 0 forks source link

old vqmod and oc doesn't work with 2nd store #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using opencart 1.5.1.3 and vqmod 1.0.8.  For some reasons, the second store 
doesn't use the vqmod file.

I tried to upgrade to latest vqmod but it show a blank page after upgraded.

first store: http://cartamagicastore.com/card-games
second store: 
http://instore.cartamagicastore.com/card-games/magic-the-gathering/born-of-the-g
ods-singles

Attached is the vq2-catalog_controller_product_category.php file.  "preorder" 
is defined here and is working on the first store.

Do you know the reason that it doesn't work with 2nd store?

Thank you.

Tri

Original issue reported on code.google.com by tri...@gmail.com on 17 Nov 2013 at 2:24

Attachments:

GoogleCodeExporter commented 9 years ago
Can you give me some ideas on how to troubleshoot this?  I really appreciate 
any help I can get here.

Thanks.

Original comment by tri...@gmail.com on 21 Nov 2013 at 2:01

GoogleCodeExporter commented 9 years ago
The issue is whatever is adding the pre-order. Contact the developer for that 
on how to fix it (most likely you need to add database fields)

Original comment by DJG6...@gmail.com on 21 Nov 2013 at 11:08

GoogleCodeExporter commented 9 years ago
Sorry for not being very clear with the example.  The problem is for some
reason the 2nd store link doesn't use the vqmod file.  Consider this simple
example:

  <file name="catalog/controller/product/category.php">
    <operation error="log">
      <search position="after"><![CDATA[
        function index
      ]]></search>
      <add><![CDATA[
        die("abc");
      ]]></add>
    </operation>
  </file>

When I go to category page of first store link, it just print "abc" which
is correct.  When I go to the category page of the second store link, it
displays the content of the category page (instead of just print "abc").
 What make it even more confusing is that it does work sometime (2nd store
category page just print "abc") but I can't seem to figure out what trigger
it.  I'd really appreciate it if you can point me to the right direction to
troubleshoot this problem.

I also try to upgrade this old vqmod (1.0.8) to the latest one but just go
a blank screen when it finished the upgrade.  No error in system log or
vqmod log.  Do you know why this is the case?

Original comment by tri...@gmail.com on 21 Nov 2013 at 2:35

GoogleCodeExporter commented 9 years ago
White screen is down to a fatal error - most likely its not written the files 
correctly as a result of the upgrade. You should use clean index.php and 
admin/index.php files for your version (overwrite the ones you currently have) 
then do a fresh install. Also make sure you've set the permissions correctly. 
As for the issue with your code - that's not something we are here to help with 
- especially if you're using a legacy version. This is for bugs in vQMod 2.X 
(the latest version)

Original comment by DJG6...@gmail.com on 21 Nov 2013 at 5:04

GoogleCodeExporter commented 9 years ago
I tried your suggestion (starting with clean index.php) but it didn't help.
 Attached is the file after modification...it appears ok to me.  Can you
please see if you spot any error?

Original comment by tri...@gmail.com on 21 Nov 2013 at 5:23

GoogleCodeExporter commented 9 years ago
Can't see an attachment but make sure you remove all xml files from the xml 
folder except vqmod_opencart.xml. If it still happens its going to be a 
permissions error. If it doesnt then one of your vQmods is screwing up

Original comment by DJG6...@gmail.com on 21 Nov 2013 at 6:27