Jump to content

Recommended Posts

Posted

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!

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...