Add Your Own Custom Functions

If you’d like to add your own custom functions to FoxyShop, here is a bit of sample code to get you pointed in the right direction: http://pastie.org/2306208

This code will add a new button to the Order Management screen which will then process order information. You might also check out the foxyshop_print_invoice() function on orders.php for some more sample code.

Additionally, here’s some sample code for hard-coding in meta values to the admin and grabbing them on the product page. Built for book publishers.

Posted in: Helpful Code Snippets