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

 

HookTypeFile(s)
woo_bookstore_query_argsfilterlib/ajaxfront-end.php,woocommerce/classes/wb-advanced-search.php,woocommerce/classes/wb-book-shortcodes.php
woo_bookstore_default_fieldsfiltersettings/custom-fields.php
$taxonomy_thumbnail_size_listingfiltertemplate/bookstore/book-taxonomy-thumbnails.php
$taxonomy_archive_countfiltertemplates/bookstore/book-taxonomy-thumbnails.php
book_advanced_search_$key_get_termsfilterwoocommerce/classes/wb-advanced-search.php
woo_bookstore_html_fieldfilterwoocommerce/classes/wb-advanced-search.php
woocommerce_bookstore_available_shortcodesfilterwoocommerce/classes/wb-book-shortcodes.php
register_taxonomy_$keyfilterwoocommerce/classes/wb-book-taxonomies.php,woocommerce/classes/wb-book-taxonomy-images.php
woo_bookstore_taxonomy_$key_widget_dropdown_argsfilterwoocommerce/classes/widgets/wb-taxonomy-widget.php
woo_bookstore_taxonomy_$key_widget_argsfilterwoocommerce/classes/widgets/wb-taxonomy-widget.php
woo_bookstore_book_dropdown_$key_get_terms_argsfilterwoocommerce/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 );