You can create an Ajax file for a specific template only, just mirror the path of your template in the
mvc/ajax folder. For example, if you create a template
my_template.php in a folder named “templates”, then your path to the Ajax file will be
Here is the path to the sample:
mvc/ajax/templates/template-sample.php. You can always clone it and then customise to your needs.