Ciao
M
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
Code: Select all
<file name="admin/controller/sale/customer.php">
<operation>
<search position="before" index="1,2"><![CDATA[
if (isset($this->request->get['filter_status'])) {
]]></search>
<add><![CDATA[
// madimar mod
code
// madimar mod end
]]></add>
</operation>
</file>
If I remove index clause, all the occurrences are correctly hit.
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
FInd
Code: Select all
$positions = array('before','after','replace','top','bottom','all');
Code: Select all
if($index && is_string($index)) {
$index = explode(',', $index);
if(!count($index))
$index = false;
}
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
It helped me to solve some issues with my vqmod xml, when I was struggling in a difficult troubleshooting.
The link is:
http://www.w3schools.com/Dom/dom_validate.asp
You can cut & paste your entire xml script and see if there are syntax errors causing problem to the DOM parser.
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
Tried replacing files from the 1.0.8 version as the first post suggested but still no joy (unsure if that worked for 1.5 anyway).
Tried looking for the 1.1.0 as suggested on page 24/25, but just can't find it anywhere.
Any Ideas?
1) copy vqmod folder in your server root (same level of catalog, admin, etc.)
2) open a browser and point to: http://YOURSITE/vqmod/install
This is enough and it works 99%. For the rest of 1% you need some adjustements or manual installation (well documented too).
M
-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------
Here is what I have done in vqmod.php:
I have added these 2 lines after
public $logging = TRUE;
Code: Select all
public $useVersion = true; // use a pre-loaded version _vx file
private $filesToVersion = array(); // Keeps a list of all the files that have version number in xml
, after__construct function
I added:$source = str_replace("\\", "/", $this->cwd . '/' . $source);
Code: Select all
if (strpos($source,"|") !== false) {
$sx = explode("|",$source);
$source = $sx[0];
$version = $sx[1];
if ($version != '') $this->filesToVersion[$source] = $version;
}
function, just before themodCheck
comment, I added:// Create tempfile
Code: Select all
if ($this->virtualMode &&
$this->useVersion &&
array_key_exists ($sourcefile,$this->filesToVersion)) {
$sx = explode("/",$sourcefile);
$last = array_pop($sx);
$sxx = explode(".",$last);
$sxx[0] .= "_v".$this->filesToVersion[$sourcefile];
$last = implode(".",$sxx);
array_push($sx,$last);
$tempfile = implode("/",$sx);
if (file_exists($tempfile)) {
$msg = ("SOURCEFILE: $sourcefile\r\n");
$msg .= ("USING VERSION VERSION: $tempfile\r\n");
$this->log($msg);
return $tempfile;
}
}
function, I changed [quote$filepaths[] = $file->getAttribute('name');][/quote] withgetFilesToMod
Code: Select all
$filepaths[] = $file->getAttribute('name')."|". $file->getAttribute('version');
As you can see, I use a
attribute.version
Code: Select all
<file name="catalog\view\theme\default\template\product\product.tpl" version="1" >
</file>
Again, I need to thank Qphoria for doing the heavy lifting.
P.S. All that is based on work I have done in 1973... just to say I know recycling!
http://www.emediacart.com
The emediaCart solution is a plug-n-play hardware-software e-commerce solution. It features a computer the size of a matchbox (4" x 2.5" x 2") running Linux and OpenCart.
Coming soon... emediaBackpack, the only automatic, encrypted, remote service for all OpenCart installations. PM me for more info.
http://yoursite/subfolder/vqmod/install/
Although as you rightly point out, it's pretty easy
Users browsing this forum: No registered users and 4 guests