blendednuerone Posted May 27, 2013 Share Posted May 27, 2013 Hello, We are dealing with a greeting card shopping cart where we need user to input inside verse for cards. For that we need BBCode editor so that user can select fonts, colors, etc. I was planning for something like this: http://www.hallmark.com/personalization/cardpersonalization/1PGC7800_DK/0 Since this can't be done with prestaShop out of the box (and we are not good in customizing prestaShop at all), we are planning to add an additional page to which user will be redirect in case he/she want to use their own words which will be placed inside the card. Once user has done all the editing, he will click on 'Confirm and Continue' button which will perform two tasks: a) It will convert the words into a .pdf file and save it into a folder. It will it will redirect user to the product page and will place name of .pdf file in one of the attribute field which user cannot alter. Please tell me this is possible and also let me know how to achieve it. Link to comment Share on other sites More sharing options...
vekia Posted May 27, 2013 Share Posted May 27, 2013 it is obvious that it is possible to achieve, but it isn't as simple as it seems. You need to be familiar with php, i suggest to use html2pdf - it's easy in use. a very complex process, I think you would have to create a module that will allow that you want. Much easier to work. 1) create an link to generator, for example in the cart 2) generator will create cookie with pdf file name 3) after order - put the cookie into the new table in databse: pdf_to_order (idpdf,filename,idorder) with: idpdf - new id (autoincrement) filename - pdf filename from cookie idorder - id of the placed order Link to comment Share on other sites More sharing options...
Recommended Posts