Ardvaark Posted November 25, 2013 Posted November 25, 2013 I need help with installing a simple session cookie. On load of my store I need a simple yes or no box to come up asking visitors if they are 18 or not before actually being able to enter the store. If they choose yes, a session cookie will be placed on the visitors computer for maybe an hour or until they leave the store. This is just to comply with regulations regarding the sale of nicotine containing products. There needs to be no real verification, just clicking the yes button. Something similar to discountvapers.com. I am unfortunately quite limited in my php coding experience. But over the last few days I have been studying the topic of session cookies. I also like the idea of FREE, I am aware of ~5 to 30+$ solutions. Would like to make it myself with a little help. Thank you, Peter
burt Posted November 25, 2013 Posted November 25, 2013 Assuming you are using the latest version of osCommerce, search google for: jqueryui dialog cookie You basically need to add a "dialog" into the /includes/template_top.php file with a cookie set to display it only once per session. You need it in template_top as you don't know which page the user will enter your shop on (eg could be a product page, not the index page). If you come up with something good, please share it.
Ardvaark Posted November 25, 2013 Author Posted November 25, 2013 There is a pop up dialogue box plugin that I have been messing around with. Does not uses sessions though.
Ardvaark Posted November 26, 2013 Author Posted November 26, 2013 Ok, so with your help I was able to find this: http://jquerywall.com/age-verification-jquery-ui-datepicker/ Looks like it does sessions/cookies the way I need it to. Now I need to figure out how to implement it into my index.php store site. Any help with that? Thank you! Peter
Recommended Posts
Archived
This topic is now archived and is closed to further replies.