Overwrite / add to function download pdf product
I have created a hack, so it is possible to sell PDF files which get stamped with coustomer information and get a password (customer email).
I have done the hack direct in the core file woocommerce-functions.php (the function woocommerce_download_product() )
I would like to hear if it is possible to do the changes / overwrite the function in a more elegant way, because next time woocommerce get updated the changes would be lost.
My plan are to create it as a free plugin / extention / modification.
Anybody there can help?
- The topic ‘Overwrite / add to function download pdf product’ is closed to new replies.