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.

change product color via WooCommerce color picker

Home Forums Programming change product color via WooCommerce color picker

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46087
    robertdrost
    Participant

    Hey everyone,

    we have a product in WooCommerce that can be painted in any color.
    Customers can use a color picker to select a color on the product page in WooCommerce.
    The product should then be displayed in the selected color in the verge3D iframe.
    What would be the best way to send the color to verge3D?

    Thank you very much!

    Robert

    #46098
    xeon
    Customer

    Well, like all things, there are many ways to do this and it will depend on your personal preferences as to the best approach.

    A simple way is to use the HTML “onEvent mouseup” and then use this in combination with the HTML “get prop value” and then move the value within the puzzles in a puzzle variable.

    You could use javascript, files, whatever you like. You could even have the color picker inside the verge app and not worry about passing the variable.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #46099
    haris
    Customer

    I can help you to solve this problem contact me on Gmail harisimran1012@gmail.com

    #46430
    robertdrost
    Participant

    Thanks @xeon !
    It worked the way you described it. Now that we know, how to get puzzle variables from external sources, the rest is easy. :good:

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