All that matters is that we're in love... with vQmodJohnathan wrote:Qphoria wrote:Yea the installer doesn't check file permission on the index.php file. Jay. fix it!You two sound like a (slightly odd) married couple.JAY6390 wrote:I'd rather not use expletives to reply to that comment, so I'll simply say "do one, guvna"
I have this in my mod for
The question is.. why is replaced ONLY the first index=1? Index 2 is ignored. Interresting is that when I put the second operation with index="2" before operation index="1", it works? Do I need use index backwards? Or what I'm doing wrong?
Thanks
Code: Select all
catalog/controller/account/order.php
Code: Select all
<operation>
<search position="replace" index="1">
<![CDATA[ '{country}'; ]]>
</search>
<add><![CDATA[ '{country}' . "\n <br />" . (!empty($order_info['shipping_co_id']) ? $this->language->get('entry_co_id') . ' {co_id}' . "\n" .'':'') . (!empty($order_info['shipping_vat_id']) ? $this->language->get('entry_vat_id') . ' {vat_id}' . "\n" .'':''); // 5ulo ]]></add>
</operation>
<operation>
<search position="replace" index="2">
<![CDATA[ '{country}'; ]]>
</search>
<add><![CDATA[ '{country}' . "\n <br />" . (!empty($order_info['payment_co_id']) ? $this->language->get('entry_co_id') . ' {co_id}' . "\n" .'':'') . (!empty($order_info['payment_vat_id']) ? $this->language->get('entry_vat_id') . ' {vat_id}' . "\n" .'':''); // 5ulo ]]></add>
</operation>
Thanks
CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x
got it
thanks rph!

CID, VAT ID / ICO, DIC (vQmod) for OC 1.5.x
Autofill SEO field (vQmod) for OC 1.4.x-1.5.x
So hang on, with vqMod I would be able to use several different extensions because they are all kept in their original seperate directories rather than over writing default core files etc?
For example if I want to run
customer group quantity discount extension
global mega options
and say a product option images extension
on the same store... i would be able to easier with vQmod installed rather than having to custom code all of the files (considering those extensions all edit the same core files for example cart or product.tpl)
thus allowing them to work together?
For example if I want to run
customer group quantity discount extension
global mega options
and say a product option images extension
on the same store... i would be able to easier with vQmod installed rather than having to custom code all of the files (considering those extensions all edit the same core files for example cart or product.tpl)
thus allowing them to work together?
however I would not get your hopes up all of the extensions you mentioned basically edit basically the exact same thing, and I'd be VERY surprised if there are not conflicts between them even using vqmod.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
can i still install vqmod after i've already installed some extensions or do i have to install it on a fresh install, then add my extensions
i know the latter is recommended probably but the clients store is already up and running and she isnt allowed another DB set up on her hosting account so i cant really create a new store for her and import the products/template on a fresh install with vqmod, etc.
i know the latter is recommended probably but the clients store is already up and running and she isnt allowed another DB set up on her hosting account so i cant really create a new store for her and import the products/template on a fresh install with vqmod, etc.
Hello
I started using vqmod for 1511, thanks for making it available
I often get this on admin error log
- PHP Notice: Trying to get property of non-object in C:\Ampps\www\vapinshop\vqmod\vqmod.php on line 327
and on vqmod.php line 327 is
$add = $operation->getElementsByTagName('add')->item(0)->nodeValue;
incidentally this one line is the only on this group not having any () parameter
Although things seems to be working properly
what error do you think this relates to ?
thks
I started using vqmod for 1511, thanks for making it available
I often get this on admin error log
- PHP Notice: Trying to get property of non-object in C:\Ampps\www\vapinshop\vqmod\vqmod.php on line 327
and on vqmod.php line 327 is
$add = $operation->getElementsByTagName('add')->item(0)->nodeValue;
incidentally this one line is the only on this group not having any () parameter
Although things seems to be working properly
what error do you think this relates to ?
thks
ninogui wrote:Yes
Right now I have the uksb_view_basket_minicart.xml installed in the XML folder
what you make of this ?
tested on 1.5.0.5 and 1.5.1.1ninogui wrote:thks Jay
still a bit overwhelming for me though, since this vqmod is property of Simon (uksitebuilder) I´d rather have him take a look
best rgds
Seems to be fine
Here's the contents - It's a free mod so..
Code: Select all
<modification>
<id>View Cart MiniCart</id>
<version>1.0</version>
<vqmver>1.2.3</vqmver>
<author>uksb</author>
<file name="catalog/language/english/english.php">
<operation>
<search position="replace"><![CDATA[$_['button_checkout'] = 'Checkout';]]></search>
<add><![CDATA[$_['button_checkout'] = 'Checkout';
$_['button_viewcart'] = 'View Cart';]]></add>
</operation>
</file>
<file name="catalog/controller/checkout/cart.php">
<operation>
<search position="replace" index="2"><![CDATA[ $this->data['button_checkout'] = $this->language->get('button_checkout');]]></search>
<add><![CDATA[$this->data['button_viewcart'] = $this->language->get('button_viewcart');
$this->data['button_checkout'] = $this->language->get('button_checkout');]]></add>
</operation>
<operation>
<search position="replace" index="2"><![CDATA[ $this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');]]></search>
<add><![CDATA[$this->data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');
$this->data['cart'] = $this->url->link('checkout/cart', '');]]></add>
</operation>
</file>
<file name="catalog/view/theme/default/template/common/cart.tpl">
<operation>
<search position="replace"><![CDATA[<div class="checkout"><a href="<?php echo $checkout; ?>" class="button"><span><?php echo $button_checkout; ?></span></a></div>]]></search>
<add><![CDATA[<div class="checkout"><a href="<?php echo $cart; ?>" class="button"><span><?php echo $button_viewcart; ?></span></a> <a href="<?php echo $checkout; ?>" class="button"><span><?php echo $button_checkout; ?></span></a></div>]]></add>
</operation>
</file>
</modification>
I've been trying to find out why do I get blank pages instead of errors sometimes although I have error_reporting and display_errors set correctly everywhere.
The only place where error_reporting was set to 0 was vqmod.php in searchDataForString() function, although it looked like it got reset to old value later.
After some more debugging I realized it only reverts the setting back to original when the search term is found ( if($searchCount > 0) ). If the foreach($fileLines as $line) loop ends and no term is found, the function finishes with error_reporting still set to 0. Then next time the function gets called the $old_error gets overwritten with 0, it's original value is lost and error_reporting gets disabled permanently.
If I'm right, the correct approach would be to add error_reporting($old_error); after the foreach() loop and before the end of the function so it also gets executed if the loop finishes and no matches are found.
The only place where error_reporting was set to 0 was vqmod.php in searchDataForString() function, although it looked like it got reset to old value later.
After some more debugging I realized it only reverts the setting back to original when the search term is found ( if($searchCount > 0) ). If the foreach($fileLines as $line) loop ends and no term is found, the function finishes with error_reporting still set to 0. Then next time the function gets called the $old_error gets overwritten with 0, it's original value is lost and error_reporting gets disabled permanently.
If I'm right, the correct approach would be to add error_reporting($old_error); after the foreach() loop and before the end of the function so it also gets executed if the loop finishes and no matches are found.
might be that you have compression enabled.
Who is online
Users browsing this forum: No registered users and 10 guests