cancel
Showing results for 
Search instead for 
Did you mean: 

Magento2 Override Checkout/Onepage/Link class not working

SOLVED

Magento2 Override Checkout/Onepage/Link class not working

di.xml

<preference for="Magento\Checkout\Block\Onepage\Link" type="<vendor_name>\CheckoutView\Block\Onepage\Link" />

 

While I'm creating Custom Method and calling it on onepage/link.phtml file.

 

Result: It just stop calling phtml file.

 

Expected Result: Custom method should be called on phtml file.

 

Any suggestions would be appreciated. Thank you! 

3 REPLIES

Re: Magento2 Override Checkout/Onepage/Link class not working

@ronakchauhan427

 

have you added that di.xml under frontend folder and make sure your xml is UTF-8.

 

If solved then mark as solution.

Re: Magento2 Override Checkout/Onepage/Link class not working

It's Working! Thanks!

But may I know what is the logic to add UTF-8?

And Why It was not working without UTF-8?

Re: Magento2 Override Checkout/Onepage/Link class not working

@ronakchauhan427

 

Thanks for your kudos!!

 

Magento 2 follow standard rule,all xml must need UTF-8