barnicus82 Posted July 4, 2014 Share Posted July 4, 2014 (edited) Hi All, Apologies if this has been answered a million times however I am struggling to find the answer. My question is, can javascript code be embedded in to a product page, ieally in the description editor (perhaps in the source code part of the editor?). If so is there a way to referrence the particular item in the cart (ie; if 10 people are ordering the same product, does the particular purchase have a unique identifier I can reference?) Apologies if I'm not making sense I'm entirely new to Prestashop. Regards, Edited July 4, 2014 by barnicus82 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2014 Share Posted July 4, 2014 hello you can add javascripts to product page, also with tinymce editor - but only with modifications of the validate functions and tinymce editor: extended tinymce in prestashop 1.6 regarding to the second part of your post, i don't understand what you're trying to achieve is there a way to referrence the particular item in the cart (ie; if 10 people are ordering the same product, does the particular purchase have a unique identifier I can reference?) Link to comment Share on other sites More sharing options...
barnicus82 Posted July 5, 2014 Author Share Posted July 5, 2014 (edited) Fantastic, thank you I will check out that post. Essentially I'm trying to build a custom photo gifts ecommerce site. I want the customer to be able to create their product via a link on the product page html5/canvas/javascript/etc) and the. save the finished design somewhere. That's the easy bit however I need a way to reference the customer so I know when I look at the saved design that its for customer John Brown (example) and for their order id 123456 (example.) I guess if their was an easy way to find out the current order id (the one the customer is currently creating) that would suffice. Edited July 5, 2014 by barnicus82 (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