mmcfly Posted December 10, 2015 Share Posted December 10, 2015 (edited) Estimados, resulta que modifique un poco el front de prestashop y en vez de productos son imagenes que representan empresas, esas imagenes son categorias: lo que quiero es que al hacer click en una imagen llame mediante ajax a las subcategorias, lo que no se es como traerme las subcategorias correctas que solo le pertenezcan a esa imagen "categoria" slds. Edited December 10, 2015 by mmcfly (see edit history) Link to comment Share on other sites More sharing options...
mmcfly Posted December 10, 2015 Author Share Posted December 10, 2015 (edited) necesito llamar a un controlador y que me devuelva el .tpl correcto algo asi $(document).ready(function(){ $(".rnoa-empresa, .rnoa-empresav2").click(function(){ //rel -> http://paraimplantes.clinicanovadent.cl/12-alphabio url = $(this).attr('rel'); $.post(url, function(data){ $("#rnoa-contenedor").load("category.tpl"); }); }); }); Edited December 10, 2015 by mmcfly (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now