Reputation: 129
I'm trying to write my vqmod .xml, but nothing to work? if I try to add change in all catalog/* files. It works good for other (system/*, admin/*) files, but nothing changes? if I try to do something like this:
<file name="catalog/controller/checkout/cart.php">
<operation>
<search position="replace"><![CDATA[
$json['total'] = sprintf($this->language->get('text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total));
]]></search>
<add trim="true"><![CDATA[
$json['total'] = sprintf($this->language->get('text_items'), $this->cart->countProducts() + (isset($this->session->data['vouchers']) ? count($this->session->data['vouchers']) : 0), $this->currency->format($total));
]]></add>
</operation>
</file>
what am I doing wrong?
Upvotes: 0
Views: 2996
Reputation: 4128
Things to try:
<vqmver><![CDATA[version]]></vqmver>
), both need to be the
same.<?xml version=”1.0″ encoding=”UTF-8″?>
– put this line at the top of
the XML to make it valid and more compatible.Reference url: Opencart: Vqmod tutorial
Upvotes: 4
Reputation: 15151
Assuming the search can be found, you're not doing anything wrong. However, if it's only the catalog side that is having an issue, then it's most likely your opencart index.php
for the catalog side doesn't have vQmod installed whereas the admin side does. Check your index.php
file is correct. If that is written, then clear your vqcache folder to ensure it's actually writeable
Upvotes: 0