Fix error on one-step-checkout page if disabling Amazon_Payment by code?

Created by Support Agent, Modified on Mon, 20 Apr at 11:49 PM by Support Agent

QUESTION:

My site's Magento version is 2.2.6 and we don't use Amazon_Payment method so I disabled it by code. 

After I installing the version 2.1.9 of the module I get this error on the console: Failed to load the "Bss_OneStepCheckout/js/view/place-order-btn" component. 

Can you help me with this?


ANSWER:

The error happens since you disabled the module by code so that the js of Amazon is not loaded which causes the error.


In this case, please hotfix by edit file as below:


Or download the attached file and overwrite the current file on your site. 


Also, if you don't use the Amazon payment method, please disable it in the backend config instead of disabling it by code to avoid any issue.


If there is anything else we might help you, please do not hesitate to contact us via https://bsscommerce.com/contact

We'd be happy to support.


BSS Commerce is a trusted Magento 2 extensions provider with 14+ years of experience, serving 75,000+ customers worldwide. We are an Adobe Commerce Solution Bronze Partner and a Select Magento Extensions Builder, reinforcing our expertise in the Magento ecosystem.


We specialize in developing 150+ high-quality Magento 2 extensions that enhance functionality, improve user experience, and support scalable growth. Our reputation is built on long-term partnerships, positive feedback, and proven performance-driven solutions.


Explore our extensions: https://bsscommerce.com/magento-2-extensions.html 


You can refer our top tier extensions:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article