On 8/16/2020 at 6:32 PM, Daresh said:I'm attaching you such a module to this post, but it has no configuration, you need to edit it's PHP code to add your own text for the terms.
Your simple module works perfectly fine.
I wanted to add a custom text block to carrier /templates/checkout/_partials/steps/shipping.tpl but I thought that using hookDisplayAfterCarrier or hookDisplayBeforeCarrier would be simpler, as I could grab a custom html widget to have multilanguage managed text and insert above/below carrier info in checkout process.
But after adding proper installation and trying to show custom text within function
public function hookDisplayAfterCarrier() {
return "customtext";
}
I don't get any text in carrier information window
I'm not sure if I use proper hook, nor if I'm even able to simply insert a text using such hook? Or should I prepare a view template file in this module?
Could you give me a hand with this?
edit: dropped trying to hook text within this module, and stay with using only html widget