How to create a wordpress plugin for a form that alters an interactive image
-
Hello together,
For my WooCommerce online shop where I present a small amount of 4-8 articles with very many variations, I want to introduce a configurator page, where customers are able to build the item they want to buy from scratch (although it is existent as a variation in the product list already).
I figured that the configurator from the technical point of view is somewhat similar to a form that, depending on the form-category items selected, alters the visible representation of the respective item. For example, the sold item could be a volleyball and the variations would be its colour, size,… When I change the colour in the form, the colour of a volleyball in an interactive image right next to the form changes its colour accordingly.
I plan to make the article numbers in my shop as coded sequences of decimal numbers (e.g., 030203 for base-shape 03, color 02, size 03) which gives me the option to construct the item added to the cart after the form is filled to be created from the individual options that are selected in the form by calling
global $woocommerce;
$woocommerce->cart->add_to_cart($constructed_number);
That would be enough to begin with, however, ultimately I’d like to integrate the form into the image to display it full-size.My question is, are there any resources on how to create such a specific plugin for WordPress? I’m new to it and from googling I didn’t find anything that could help. I would be very glad if someone could point me in the right direction regarding the technologies I should use and the options I have. From my own research – I figured that the plugin I’m planning kind of resembles a game with slight animations which alters a variable in the WordPress context. Maybe I could add a flash-likish game for selecting the proper configuration and each time an value is updated the game passes back a new string for the article number?
Best regards
- The topic ‘How to create a wordpress plugin for a form that alters an interactive image’ is closed to new replies.