Home Forums WC Vendors Pro Support How to change type of field in product submission? Reply To: How to change type of field in product submission?

#58899
Anna
Member

Pablo,
You can use this gist as a guide for your drop-down with hours.
I recommend that you first make the select2 form in your product-edit.php as I have shown in the gist. Just change the options to your hours, and change the ID of the form to what you need.
Instead of trying to override the short description, try just creating this form first.
The second piece of code goes in your functions.php. Make sure the ID in the second piece of code matches the ID in the first code that was put into your product-edit.php

Start there to see if you can get the form working first. THEN see if you can find a way to have your form replace the short description.

https://gist.github.com/fervous/048b04a4a73cde43fd77b34405917f54#file-product-edit-php-and-functions-php

This website uses cookies to ensure you get the best experience on our website.