aspiringweb Posted December 23, 2015 Report Posted December 23, 2015 Hopefully a pretty simple question. I would like to customize /plugins/order/views/templates/ajax/config_packageoptions.pdt but I'm unfamiliar with this framework. What is the appropriate way I can override that template without hacking core Blesta? Thanks! Quote
aspiringweb Posted December 23, 2015 Author Report Posted December 23, 2015 To be more specific I want to modify the values of the field params before they are rendered out on the page. Quote
Tyson Posted December 23, 2015 Report Posted December 23, 2015 Many of those field parameters are set by whatever module the package belongs to. If you're looking to update them all in a general case, then you'll have to update that template directly (i.e. make a core change). Alternatively, you could create your own order template by copying /plugins/order/views/templates/ajax/ into a new directory, e.g. /plugins/order/views/templates/custom_ajax/. Then update config.json to rename it accordingly. Since you now have a custom template, you can update the config_packageoptions.pdt template file in there, and then update your order forms in Blesta to use this new template. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.