neerajlm10 Posted February 4, 2015 Share Posted February 4, 2015 (edited) I want to get current category page url using smarty variable. For example http://localhost/open/3-gift-card/ (localhost/open/) is my base url and 3-gift-card is category page. Pls help! i want get that link to use it for sorting the products using jquery. i try with {$base_dir}{$smarty.get.id_category}-{$smarty.get.name_category}. but not working MY CODE <input class="specia" id="opti1" rel="{$base_dir}{$smarty.get.id_category}-{$smarty.get.name_category}?orderby=name&orderway=asc" type="checkbox">Sort: A-Z<li> $(document).on("click",".specia",function(){ var relv=$(this).attr('rel'); alert(relv); ==> this gives only http://localhost/open/-?orderby=name&oderway=asc $(location).attr('href',relv); return false; }); Edited February 4, 2015 by neerajlm10 (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