Developers

This plugin is built for Developers. In this section we are going to explain plugin’s Template Structure and Action Reference. We are happy to hear your feedback in order to improve plugin’s Customization!

Template Structure

The plugin works with every WP Theme that supports WooCommerce. WooCommerce Bookstore though has its own template structure and lets you easily create your own unique theme by overriding them!

bookstore
--advanced-search.php
--book-taxonomy-thumbnails.php
--taxonomy-book_author.php
--taxonomy-book_category.php
--taxonomy-book_publisher.php
--woo-bookstore-catalog.php
--woo-bookstore-pagination.php
            
single-product
--tabs
----tab-author.php
----tab-book.php
----tab-publisher.php
--add-to-cart
----book.php

Copy the file you would like to override in your theme folder.

If you would like to override advanced-search.php page copy from plugin-folder/template/bookstore/ to your-theme-path/woocommerce/bookstore/

Action Reference

 

Hook Type File(s)
woo_bookstore_query_args filter lib/ajaxfront-end.php,woocommerce/classes/wb-advanced-search.php,woocommerce/classes/wb-book-shortcodes.php
woo_bookstore_default_fields filter settings/custom-fields.php
$taxonomy_thumbnail_size_listing filter template/bookstore/book-taxonomy-thumbnails.php
$taxonomy_archive_count filter templates/bookstore/book-taxonomy-thumbnails.php
book_advanced_search_$key_get_terms filter woocommerce/classes/wb-advanced-search.php
woo_bookstore_html_field filter woocommerce/classes/wb-advanced-search.php
woocommerce_bookstore_available_shortcodes filter woocommerce/classes/wb-book-shortcodes.php
register_taxonomy_$key filter woocommerce/classes/wb-book-taxonomies.php,woocommerce/classes/wb-book-taxonomy-images.php
woo_bookstore_taxonomy_$key_widget_dropdown_args filter woocommerce/classes/widgets/wb-taxonomy-widget.php
woo_bookstore_taxonomy_$key_widget_args filter woocommerce/classes/widgets/wb-taxonomy-widget.php
woo_bookstore_book_dropdown_$key_get_terms_args filter woocommerce/lib/functions.php

Conditional Tags

is_book()
is_book_author()
is_book_category()
is_book_publisher()

API

Display book details

if( function_exists( 'woo_bookstore_display_book_details' ) )
    woo_bookstore_display_book_details( ID );