ArtAche Posted October 7, 2014 Share Posted October 7, 2014 (edited) Hi guys, So, I'm a (very) amateur, self taught web developer, trying to learn how to use Smarty variables. I've read a lot on online, but I'm having trouble getting an 'Request a Quote' module to use the global Prestashop variable '$come_from' (which requests the previous page's url). Please help me? UPDATE: I just got it to work, but still have a problem. $come_from is showing the current address url isntead of the address of the product page that directed it there. You can see by going to my site (http://www.utopiascreenprinting.com.au/) and using the 'Request a Quote' button on any of our products. Why's it doing this and can I fix it? Advice? Cheers guys! Edited October 7, 2014 by ArtAche (see edit history) Link to comment Share on other sites More sharing options...
ArtAche Posted October 7, 2014 Author Share Posted October 7, 2014 Just to be clear, my motivation here is to grab the url so that I can retain the information about what product attributes are selected in the side bar. Does anyone know if the product attribute selection creates a Smarty variable that carries over to the shopping cart? Perhaps a variable that I could use in my quote form...? Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2014 Share Posted October 8, 2014 to ger referer page i use {$smarty.server.HTTP_REFERER} 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