webbie1985 Posted November 17, 2013 Share Posted November 17, 2013 (edited) hi guys been racking me brains on how to do this but im not too good with smarty. what i want to do is to create a link . that is dynamic. so i want to get the current url ie http://www.example.co.uk/index.php?id_product=10&controller=product&id_lang=1 but insert fc=module&module=stquickview& between the ? and id please help im running on PS version 1.5.6 cheers guys Edited November 18, 2013 by vekia (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 18, 2013 Share Posted November 18, 2013 where you want to create link like this? but insert fc=module&module=stquickview& between the ? and id you mean probably id_product, not id right? 1 Link to comment Share on other sites More sharing options...
webbie1985 Posted November 18, 2013 Author Share Posted November 18, 2013 (edited) Hi Vekia, yeah i mean id_product. i want it so the url read example.com/index.php?fc=module&module=stquickview&id_product=12&controller=default&id_lang=1 i can get the current full url using smarty but just cant insert the highlight part into it. another way i thought of doing it was like this <a href="http://www.example.com/index.php?fc=module&module=stquickview&{$some.smarty.to.call.id_product}&controller=default&id_lang=1>Quick View</a>" i hope this makes sense; oh and i want to make this link on a product page Edited November 18, 2013 by webbie1985 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted November 18, 2013 Share Posted November 18, 2013 you can use this variable: {$smarty.get.id_product} to get actual (that you view) product ID 1 Link to comment Share on other sites More sharing options...
webbie1985 Posted November 18, 2013 Author Share Posted November 18, 2013 OMG!!!!! been trying days for this you are a life saver thank you very much Link to comment Share on other sites More sharing options...
vekia Posted November 18, 2013 Share Posted November 18, 2013 you're welcome im so glad that i could save another life today i marked this topic as [solved] with regars, milos 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