Our store is using WooCommerce, and we would like to incorporate products for customization with AI.
Pending
Mar 19, 2024
You can simply do this by adding a custom HTML button:
1)Create a template with an image. Set the image as "Text to image with Open AI"
2)Create a text input option in your option set (don't configure any function for that input)
3)*This is the custom code bit*
Create a "submit prompt" button as below:
<input type="button" value="submit prompt" onclick="engraver.setPrompt(imageID,document.querySelector('#textFieldID'))">
where: imageID is the Customily element ID of the image you created in step 1)
textfieldID is the HTML ID of the text input you created in step 2)
You can simply do this by adding a custom HTML button: 1)Create a template with an image. Set the image as "Text to image with Open AI" 2)Create a text input option in your option set (don't configure any function for that input) 3)*This is the custom code bit* Create a "submit prompt" button as below: <input type="button" value="submit prompt" onclick="engraver.setPrompt(imageID,document.querySelector('#textFieldID'))"> where: imageID is the Customily element ID of the image you created in step 1) textfieldID is the HTML ID of the text input you created in step 2)