0

I want to update "Please specify a payment method." with background color on checkout page.I have updated text in module-sales/i18n/en_US.csv file but this is not working for me.

Please help me.

3
  • WHich Magento version, you have suing 2.1 or 2.2. If using 2.1 then the translation is not working.
    – Amit Bera
    Oct 4 '18 at 7:20
  • Hi @AmitBera,I am using 2.2.
    – akgola
    Oct 4 '18 at 7:51
  • Have you did static content deploy properly?
    – Amit Bera
    Oct 4 '18 at 8:00
1

please check in your csv file

"Please specify a payment method" there is no white space and trimmed your text

please clear cache and check

4
  • please clear cache and cookie of browser to check Oct 4 '18 at 6:11
  • Hello @Rutvee ,I want to change for payment method not shipping method.
    – akgola
    Oct 4 '18 at 6:12
  • ohh sorry @akgola i miss understood Oct 4 '18 at 6:15
  • +1 voted for you, now your account is good prntscr.com/l1z8t3 Oct 4 '18 at 6:41
0

You can update text in direct in file where it comes from.

PackageName\vendor\magento\module-multishipping\Model\Checkout\Type\Multishipping.php at line no 717.

...........................
...........................

protected function _validate()
{
    $quote = $this->getQuote();

    /** @var $paymentMethod \Magento\Payment\Model\Method\AbstractMethod */
    $paymentMethod = $quote->getPayment()->getMethodInstance();
    if (!$paymentMethod->isAvailable($quote)) {
        throw new \Magento\Framework\Exception\LocalizedException(
            __('Please specify a payment method.') //here you can change text
        );
    }
    ...............

    return $this;
}

Try this and let me know if you are still facing the same issue

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.