Created
July 11, 2022 11:53
-
-
Save PechenkiUA/a0e90f16fa0ad52bf34f4423aca706df to your computer and use it in GitHub Desktop.
Приховати 2 стрічки в інфомації про замовлення
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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