Extending FoxyShop For Publishers

I recently had an opportunity to install FoxyShop on a publishing site which listed a number of books as products. Books of course, have more metadata than regular products, so I whipped up this extension to FoxyShop to allow easy product management. It also serves as a good example if you’d like to extend your own product management.

Step 1: Paste the code found here into the functions.php file located in your theme.

Step 2: Paste the code found here into your foxyshop-single-product.php file wherever you’d like the meta-data to show up. Then style to your liking.

What’s nice about this solution is that it is completely protected from upgrade and seamlessly connects to your products. If you really want to go crazy, you can set this in your wp-config.php file:

define('FOXYSHOP_PRODUCT_NAME_SINGULAR','Book');
define('FOXYSHOP_PRODUCT_NAME_PLURAL','Books');

…and you’ll have a very customized product management system. Note that this method uses the hooks and actions introduced in FoxyShop 3.2.

6 Responses to Extending FoxyShop For Publishers

Leave a Reply

Your email address will not be published. Required fields are marked *