Laurentiu Nita Posted May 29, 2022 Share Posted May 29, 2022 I need to add extra text on every carrier when I receive price from API, I found this hook hookDisplayCarrierExtraContent but nothing about how to use it. Thanks in advance! Link to comment Share on other sites More sharing options...
Teemu Mäntynen Posted May 30, 2022 Share Posted May 30, 2022 The method gets an array as its parameter. The parameter contains a punch of info related to the current cart, customer etc. See the first attached screenshot as an example. You do you magic and finally return either boolean false, if no extra text should be displayed for the carrier during checkout, or you return the text you wish to be displayed as HTML. See the second screenshot as an example. 1 1 Link to comment Share on other sites More sharing options...
Laurentiu Nita Posted May 30, 2022 Author Share Posted May 30, 2022 Hello and thank you so much Teemu! Your your explanation is perfect! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now