Is there a software solution to update xml to latest opencart/vqmod?
Its for the pp_standard payment option , i already tried updating the file name locations but with no luck
I get an AMOUNT_ERROR in the url when trying to check out with paypal standard probaly cause the price is incorrect cause of the xml.
Here is the XML's this was for open cart 2.1.0.0 i believe
Code: Select all
<modification>
<id><![CDATA[Fix for Paypal and OC total amount diffrence problem due to rounding]]></id>
<version><![CDATA[1.0]]></version>
<vqmver><![CDATA[2.1.6]]></vqmver>
<author><![CDATA[ADD Creative]]></author>
<file name="catalog/controller/payment/pp_standard.php">
<operation info="create paypal subtotal calc fix variable">
<search position="after"><![CDATA[$this->data['products'] = array();]]></search>
<add><![CDATA[
$subtotal = 0;
]]></add>
</operation>
<operation info="calculate price, update subtotal">
<search position="before" index="1"><![CDATA[$this->data['products'][] = array(]]></search>
<add><![CDATA[
$price = $this->currency->format($product['price'], $order_info['currency_code'], false, false);
$subtotal += $price * $product['quantity'];
]]></add>
</operation>
<operation info="assign new price">
<search position="replace"><![CDATA['price' => $this->currency->format($product['price'], $order_info['currency_code'], false, false),]]></search>
<add><![CDATA[
'price' => $price,
]]></add>
</operation>
<operation info="calculate new other charges">
<search position="replace"><![CDATA[$total = $this->currency->format($order_info['total'] - $this->cart->getSubTotal(), $order_info['currency_code'], false, false);]]></search>
<add><![CDATA[
$total = $this->currency->format($this->currency->format($order_info['total'], $order_info['currency_code'], false, false) - $subtotal, $order_info['currency_code'], 1.0, false);
]]></add>
</operation>
</file>
<file name="catalog/language/english/payment/pp_standard.php">
<operation info="remove tax from text">
<search position="replace"><![CDATA[$_['text_total'] = 'Shipping, Handling, Discounts & Taxes';]]></search>
<add><![CDATA[
$_['text_total'] = 'Shipping, Handling, & Discounts';
]]></add>
</operation>
</file>
</modification>
Code: Select all
dification>
<id>PayPal Decimal Mod</id>
<version>1.0</version>
<vqmver>2.5.1</vqmver>
<file name="catalog/controller/payment/pp_standard.php">
<operation>
<search position="before"><![CDATA[=> $product['weight']]]></search>
<add><![CDATA['name' => $product['quantity'] . ' ' . htmlspecialchars($product['name']),
'price' => $this->currency->format($product['total'], $order_info['currency_code'], false, false),
'quantity' => 1,]]></add>
</operation>
</file>
</modification>