One in particular that I'm having a problem solving is enabling bank transfer as a payment option only for a certain user.
Below is the code I used to use but it appears that bank_transfer.php is no longer in that location.
Code: Select all
<file name="catalog/model/payment/bank_transfer.php">
<operation info="Only enable bank transfer as a payment method for Rosie. We check the current user id. If it's not 3 (Rosie/Telephone Sales) then we hide the bank transfer payment method by setting status to false.">
<search position="replace"><![CDATA[
if ($status) {
]]></search>
<add><![CDATA[
if ($this->customer->getId() != 3) {
$status = false;
}
if ($status) {]]></add>
</operation>
</file>
Thanks in advance. You guys are an awesome resource.