Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PechenkiUA/a0e90f16fa0ad52bf34f4423aca706df to your computer and use it in GitHub Desktop.
Save PechenkiUA/a0e90f16fa0ad52bf34f4423aca706df to your computer and use it in GitHub Desktop.
Приховати 2 стрічки в інфомації про замовлення
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Pechenki_hide_order_info_2Line</id>
<name>Pechenki_hide_order_info_2Line</name>
<code>Pechenki_hide_order_info_2Line</code>
<version>0.1</version>
<author>Pechenki</author>
<link>https://pechenki.top</link>
<file path="catalog/controller/account/order.php">
<operation>
<search><![CDATA[foreach ($totals as $total) {]]></search>
<add position="before"><![CDATA[
$totals = array_filter($totals,function ($s){
$ext = ['total', 'shipping'];
if (!in_array($s['code'],$ext)) {
return true;
}
});
]]></add>
</operation>
</file>
</modification>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment