version 3038
Wrote a modification for /system/library/cart/car.php as follows:
Code: Select all
<operation>
<search><![CDATA[
$price = $product_special_query->row['price'];
]]></search>
<add position="after"><![CDATA[
$special_price = $product_special_query->row['price'];
$this->log->write($special_price);
]]></add>
</operation>
line 193 is $this->log->write($special_price);
And in error log:
2022-04-29 5:31:35 - PHP Notice: Undefined property: Cart\Cart::$log in /var/www/storage/modification/system/library/cart/cart.php on line 193
I use this log write function often. I suspected if it cannot be used in library classes but there is one in library/squareup/exception.php line 32 like this
$this->log->write($message);
I miss something but couldn find yet.
Would you please help? Thank you.