We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

screenshot as product pic

Home Forums Puzzles screenshot as product pic

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #30727
    Avatarswatchyb
    Licensee

    Hi Vergers,
    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!

    #30777
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    please check out the demo called Custom Image. In this demo, a picture uploaded by the user is saved on the server using Verge3D WordPress plugin.

    You might modify it a bit to save screenshots rather than uploaded images.

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

    #30814
    Avatarswatchyb
    Licensee

    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).
    Many thanks!

    Attachments:
    You must be logged in to view attached files.
    #30931

    Hi,
    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.

    Co-founder and CTO at Soft8Soft
    FB | Twitter | VK

    #30948
    Avatarswatchyb
    Licensee

    Thanks Alexander,
    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 ;-)
    Thanks again

    Attachments:
    You must be logged in to view attached files.
    #31001

    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:

    https://sandbox.soft8soft.com/wp-json/verge3d/v1/upload_file/

    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.

    Co-founder and CTO at Soft8Soft
    FB | Twitter | VK

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.