0

I am using Magento 1.7. I am not the original developer of the website, that's why I don't know how everything was configured.

I want to change the instructions of the payment method bank transfer. I found that they are defined in Admin -> System -> Configuration -> Sales -> Payment methods -> Bank Transfer Payment -> Instructions. I also saw that the templated being used is banktransfer.phtml, under app/design/frontend/base/default/template/payment/info).

However, I changed the text in the Admin and I don't see any change in the frontend. I already cleared Magento's and browser's cache.

Any ideas on what I am missing or doing wrong? Thank you.

Edit After the discussion with @Sunil Patel, I couldn't manage to find what was happening. Instead, I commented the code responsible for printing the text, in banktransfer.phtml, and I included the following line, which finally worked fine:

        <td><?php echo $instructionsBankTransfer = Mage::getStoreConfig('payment/banktransfer/instructions'); ?></td>
  • please check store wise. – Sunil Patel Jul 14 '17 at 8:29
  • I already checked all the configuration scopes and changed the text in all of them – LeCodeur Jul 14 '17 at 8:30
1

If you already in backend then may be it will added static into file.

default\template\checkout\onepage\payment\methods.phtml

check above file into your theme.

Or check

app\code\core\Mage\Payment\Model\Method\Banktransfer.php may be it will overwrite into app\code\local\Mage\Payment\Model\Method\Banktransfer.php

check function

 public function getInstructions()
    {
        return trim($this->getConfigData('instructions'));
    }

Also check in core_config_data if you did find any thing

  • Thanks for you answer. However I didn't find the text in the file that you mention. There is a bunch of php there but not my text. Maybe one of the PHP functions is retrieving the text? Any other ideas of where it can be located? Thank you. – LeCodeur Jul 14 '17 at 8:40
  • Updated code plz check – Sunil Patel Jul 14 '17 at 9:16
  • @LeCodeur have you checked? – Sunil Patel Jul 14 '17 at 9:47
  • I just checked and did not find any hardcoded text. The function getConfigData() seems to be defined in Abstract.php under app/code/core/Mage/Payment/Model/Method/ and the code is if (null === $storeId) { $storeId = $this->getStore(); } $path = 'payment/'.$this->getCode().'/'.$field; return Mage::getStoreConfig($path, $storeId); – LeCodeur Jul 14 '17 at 10:09
  • but you can in that function which value get it. it is final function you just need to debug. – Sunil Patel Jul 14 '17 at 10:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.