Hi all:
I have a template file (includes/templates/theme_name/templates/tpl_index_quicksearch.php) that displays a few subcategory names as links.
I have another file in the same folder named 'tpl_subcats_ajax.php' that displays the subcategory description and products based on the category number passed to it. I know the code works, because when I include it in tpl_index_quicksearch.php, there are no problems.
Using jQuery.get(), I'm trying to call 'tpl_subcats_ajax.php' but nothing happens. My javascript is as follows:
Nothing is happening because I get a permission denied error when I try to access http://mydomain.com/shop/includes/te...bcats_ajax.phpCode:$.get('includes/templates/theme_name/templates/tpl_subcats_ajax.php', { subcat: $(this).attr('id') }, function(data) { $('#quicksearch_content_desc').html(data); });
If I place 'tpl_subcats_ajax.php' in the root of the shop/ folder, the jQuery call works but I cannot access the ZenCart DB from that location.
Is there a specific place I should be putting the 'tpl_subcats_ajax.php' file that won't give me a permission denied message and still allow me to access the DB?
Thanks!




