• Resolved drvtch0091

    (@drvtch0091)


    If I wanted the personalize button to trigger the modal and automatically upload an image file located in a specific directory, how might I do this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey there,

    Thank you for reaching out!
    It is not currently possible to enable this kind of function through our plugin, so you can only create this functionality yourself by modifying your WordPress/WooCommerce theme.

    Let us know if you have any additional questions!

    Thread Starter drvtch0091

    (@drvtch0091)

    No problem and thanks for the reply. When modifying the theme, I can build the interface and get the handle of the specific file I wish to use as the printfile for the custom design. But I am not so sure how to integrate this with the plugin so that it uses this file. Are there variables I can override and set the printfile vs. using the file upload form? Thanks in advance

    Thank you for your question!
    We don’t currently offer assistance with editing your website’s theme, so I suggest you to reach out to a developer, creators of the theme or your host for additional help!

    Thread Starter drvtch0091

    (@drvtch0091)

    Oh, that’s completely understandable. Sadly, I considered myself as being a developer until this moment. I will continue in my personal struggles against PHP and AJAX with renewed stubbornness and foolishness! 🙂

    Hey there,

    We consulted some more with our developer team and they gave us some additional information on what you could do.
    But be mindful that any edits you make to the code are your own responsibility and we may not be able to help with fixing any issues you encounter due to these edits.

    You could either override the method printful_customized_thumb adding the necessary logical statement to save file within your system, or hook into the action wp_ajax_printful_customized_thumb and fetch the image url from the shopping cart after successful personalization.

    Also take note that any modifications should not be applied to the Printful plugin, as any plugin update overrides any changes made to it.

    I hope this helps!

    • This reply was modified 5 years, 4 months ago by vita.printful.
    Thread Starter drvtch0091

    (@drvtch0091)

    I am delighted to receive this response. Thank you and your developer team for the helpful hints.

    Be sure to send us another message, if you have any additional questions or concerns, we’d love to hear from you! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Personalize image upload from custom directory’ is closed to new replies.