Hi ,
this is related to vqMod extensions. I have created an extension (which uses vqMod for replacing) which replace the "insert" query in /admin/model/catalog/product.php file by searching the older query. Now there is another extension already installed which replaces the same query using its own xml file. My xml file is parsed later and hence search is failed on my xml. Please tell me is there any way to resolve this conflict? is there any feature of vqMod to handle such situation?
manual way can be to also incorporate the other extensions changes in my own xml files. please help.
You will have to try and figure out how to combine both changes in to one
then delete that change or comment it out in the one vqmod file and replace the correct change in the other.
then delete that change or comment it out in the one vqmod file and replace the correct change in the other.
yea.. vQmod still has to abide by the laws of physics... 2 different objects cannot occupy the exact same space at the same time. That is why it is important that when using search/replace that you match the least amount as possible while still being unique. This will better your chances of something like this:
Base string:
If mod 1 wants to change it to:
SELECT * FROM product WHERE product_id = '1' AND model = 'xyz' AND status = '1';
and mod 2 wants to change it to:
SELECT * FROM product WHERE product_id = '1' AND sku = 'xyz' AND status = '1';
Then it is important that both vQmod authors DO NOT try to do:
But instead use a smaller chunk like:
Then the other mod could use the same search and not break from the first line:
Resulting in the proper combined result:
SELECT * FROM product WHERE product_id = '1' AND sku = 'xyz' AND model = 'xyz' AND status = '1';
Base string:
Code: Select all
SELECT * FROM product WHERE product_id = '1' AND status = '1';
SELECT * FROM product WHERE product_id = '1' AND model = 'xyz' AND status = '1';
and mod 2 wants to change it to:
SELECT * FROM product WHERE product_id = '1' AND sku = 'xyz' AND status = '1';
Then it is important that both vQmod authors DO NOT try to do:
Code: Select all
<search position="replace">
SELECT * FROM product WHERE product_id = '1' AND status = '1';
</search>
<add>
SELECT * FROM product WHERE product_id = '1' AND model = 'xyz' AND status = '1';
</add>
Code: Select all
<search position="replace">
SELECT * FROM product WHERE product_id = '1'
</search>
<add>
SELECT * FROM product WHERE product_id = '1' AND model = 'xyz'
</add>
Code: Select all
<search position="replace">
SELECT * FROM product WHERE product_id = '1'
</search>
<add>
SELECT * FROM product WHERE product_id = '1' AND sku= 'xyz'
</add>
SELECT * FROM product WHERE product_id = '1' AND sku = 'xyz' AND model = 'xyz' AND status = '1';
Who is online
Users browsing this forum: No registered users and 3 guests