-= content single =-

OpenCart: PayPal Express transactions not displayed

There are two problems with pp_express_transaction.twig template (used to display transactions on Order/View page): missing {% endif %} and ‘is’ should be replaced with ‘==’ (see code below).


from vqmod.xml

<file name="admin/view/template/extension/payment/pp_express_transaction.twig">
<operation error="skip">
<search position="replace" offset="1">
<![CDATA[
{% if transaction.payment_type == 'instant' and (transaction.payment_status is 'Completed' or transaction.payment_status is 'Partially-Refunded') %}
]]></search>
<add>
<![CDATA[
{% if transaction.payment_type == 'instant' and (transaction.payment_status == 'Completed' or transaction.payment_status == 'Partially-Refunded') %}
<a href="{{ transaction.refund }}" data-toggle="tooltip" title="{{ button_refund }}" class="btn btn-danger"><i class="fa fa-reply"></i></a>&nbsp;
{% endif %} 
]]>
</add>
</operation>
</file>

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Yandex.Metrica