[Plugin: Wocommerce] Adding dynamic Live Demo button to products
-
Hello, I am trying to add a Live Demo button to product pages so users can view demos of digital products before buying. I have never coded a PHP plugin before and my experience is limited to modifying existing templates. However if anyone can point me in the right direction I’m sure I can figure out out to put it together.
First I would like to add a field in the admin page when adding a new product in Woocommerce, i.e.
Price:
Description:
Live Demo URL:It doesn’t matter to me where or how this new field would be implemented, as long as it’s there somewhere.
I’d like it so if a url is entered, a Live Demo button will appear on the product page, I’m assuming I’d have to insert some sort of if-function in the location where I’d want it to appear. This would need to be optional and only appear if there’s a value entered as some products would never need a live demo link.
I would greatly appreciate any pointers, big or small!
- The topic ‘[Plugin: Wocommerce] Adding dynamic Live Demo button to products’ is closed to new replies.