- 2020-07-27 at 9:34 pm #30727
Was hoping to find a way at the end of user working in my configurator, to take a screenshot of the product and save it on the server to be used as a visual record of the item on the order, similar to those that have mentioned putting it on a pdf.
After one of Yuri’s posts, searching the forum for “headless”, it looks like this approach could do the job (server sided), but sounds above my abilities.
So, the question is, is there a plan to put this kind of feature into a puzzle?, or is that somehow doable already, using the “take screenshot” puzzle (which works great) in some way?
Many thanks!2020-07-28 at 12:03 pm #30777Yuri KovelenovDeveloper2020-07-29 at 3:56 am #30814
Thanks Yuri, good idea – shoulda thought of that.
In taking a quick look, am I on the right track with the attached?, and what hints can you give for naming the images file (e.g. like the prod_id from the server, getting that value the parent (see floating puzzle).
Attachments:You must be logged in to view attached files.2020-07-30 at 12:43 pm #30931Alexander KovelenovDeveloper
It’s up to you how to name the file, the most important thing is to get the data link returned by the server (see the loaded data puzzle in the Custom Image example) and save it somewhere. In the example, it is saved in the image_url parameter of the current page URL. You, however, may store it in the database or send it to user email, etc.2020-07-31 at 4:48 am #30948
Not sure I get how to get it to save to the server (the path is specified in the puzzle) vs downloading to the client, or the loaded data puzzle functionality. Attached is where I am at, can you tell me what pieces are missing?
Thanks for the clues. You would be surprised how far I have gotten given that I am not a developer at all
Attachments:You must be logged in to view attached files.2020-07-31 at 12:56 pm #31001Alexander KovelenovDeveloper
I see where is the hurdle. Path to the send data puzzle is not the file name! It’s a server URL that accepts these files. It looks like:
Where sandbox.soft8soft.com should be replaced by your own server name.
And this URL stays so notwithstanding your file name. Read more about WordPress uploading service here.
- You must be logged in to reply to this topic.