Jump to content

Smarty Global Variables used in Modules


Recommended Posts

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?




Cheers guys!

Edited by ArtAche (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...