Book Details Widget¶
The Book Details Widget is a Shopify app block that shows key book data on your product pages, read from the metafields Emersoft Books stores when it imports a book. You choose which fields to show.
Available on all plans, for both Ingram (US) and Gardners (UK & EU) stores. It requires the Online Store sales channel.
What it displays¶
| Field | Where the data comes from |
|---|---|
| ISBN | The variant's barcode |
| Binding | e.g. hardcover, paperback |
| Authors | All authors of the title |
| Publisher | The publisher (imprint); falls back to the product's Vendor on older products |
| Published Date | The publication date |
| Language | The language of the book |
| Pages | Page count |
| Physical Info | Dimensions (height, length, width) and weight |
| Genre | Gardners only — the main Thema subject, from broadest to narrowest |
| Subjects | Gardners only — all Thema subjects of the book |
| Age | Gardners only — the interest age, when the publisher supplied one |
A field that has no data for a book is hidden. Genre, Subjects and Age have no data on Ingram stores, so they never appear there.
When a product has several editions (variants), the widget shows the details of the selected edition and updates when the customer picks another one.
Adding the widget to your theme¶
- In Shopify Admin, go to Apps > Emersoft Books > Settings > Product Page.
- Click Add Book Details to your theme. The theme editor opens with the Book Details block already added to your product template.
- Drag the block to where you want it — for example, below the product description.
- Click Save.
Adding the block manually¶
- In Shopify Admin, go to Online Store > Themes.
- Click Customize on your active theme.
- Navigate to a product page template.
- Click Add block in the product information section.
- Find Book Details in the app blocks list.
- Drag it to the position you want and click Save.
Blocks are set per theme
The block belongs to the theme, not your store. If you publish a different theme, add Book Details to that theme too.
Replacing the older Book Details code
If your theme still contains the Book Details code installed by the Emersoft team before this block was available, remove it after adding the block, or the details will show twice. Contact support if you'd like us to do it for you.
Block settings¶
With the Book Details block selected in the theme editor, you can set:
- Heading — the title above the details (Book Details by default). Leave it empty to hide the heading.
- Show only on books — on by default. Shows the widget only on products in Shopify's Books category (Print Books, Audiobooks, Ebooks). See Which products show the widget.
- Fields — a checkbox for each field. All fields are on by default; uncheck the ones you don't want to show.
Turning it off¶
Remove the Book Details block from your product template in the theme editor and click Save. If you uninstall Emersoft Books, Shopify removes the block automatically.
Which products show the widget¶
The widget is added to your product page template, so it applies to every product that uses that template. On products without book data — for example, products not imported through Emersoft Books — it shows nothing.
Some non-book items in the distributor catalog, such as mugs or socks, are imported with book data. With Show only on books on, the widget also checks the product's category and shows only on products in the Books category (Print Books, Audiobooks, Ebooks). It stays hidden on products in any other category or with no category set.
Emersoft Books sets the category when it imports a title. If the widget appears on a non-book product, or is missing from a book, check the product's Category in Shopify Admin. You can correct it there, or refresh it for many products at once with the Product category option of a bulk import update. To ignore categories and show the widget on every product with book data, turn Show only on books off.
To show it only on some products, create a dedicated product template for books in your theme and add the block only to that template.
Displaying additional metadata¶
All other book data imported with a title is stored in Shopify metafields under the emersoft namespace, split between the product and each product variant. See Product Tags & Metafields for the complete reference, including which level each field lives on.
Metafields of type Single line text can be displayed anywhere on your product page template using a standard Text block in the Shopify theme editor, connected to the relevant metafield. More complex types, such as lists and True/False fields, need Liquid code in your theme. The Emersoft team can help as part of a theme customization request.
Tip
The widget works best placed below the product description and above reviews or related products — after customers have read the headline copy and want to learn more about the book.
To let customers read a sample of the book, add the Book Preview block as well.