The shortcode can render two coordinated displays from one or more WooCommerce products:
You can display both sections together or either section independently.
WooCommerce and DK Base Plugin must be installed and active. DK Base Plugin supplies the shared product-search, format-attribute, language, and plugin-management settings used by this plugin.
The available attribute lists come from WooCommerce global attributes and visible product-specific attributes. Dimensions, SKU, and weight are also available. The format heading comes from the Format Attribute configured in DK Base Plugin.
Add [dk_book_details_by_format] to a page, post, or another content area that supports WordPress shortcodes. Identify the book with either product_ids or book_title, but not both.
Pass one or more WooCommerce product IDs as a comma-separated list:
[dk_book_details_by_format product_ids="123, 124, 125"]
Search the product title within the product categories configured by DK Base Plugin:
[dk_book_details_by_format book_title="Your Book Title"]
Use a title that consistently identifies the related formats. Product IDs are the more precise choice when title search could match unrelated products.
product_ids: Comma-separated WooCommerce product IDs. Use this or book_title.book_title: Text used to find related WooCommerce products. Use this or product_ids.table: Use all, book, or formats. The default is all; an unrecognized value also falls back to all.language: Requests a language supported by the DK Base Plugin language-to-locale mapping. The default is English.For example, show only Format Details in German:
[dk_book_details_by_format book_title="Your Book Title" table="formats" language="German"]
Simple products are displayed directly. Variable products are expanded into their individual variations for Format Details. Published products are available to visitors. Logged-in users who can edit pages can also preview scheduled products and, when Show Private Results When Logged In is enabled in DK Base Plugin, private products.
If the shortcode is invalid or no products match, visitors see no output. If no attributes are selected, they see a No Data Found message. Logged-in users who can edit pages receive a more specific diagnostic message.
Deactivating the plugin keeps its settings. Uninstalling also keeps them by default. To remove the plugin's saved settings during uninstall, enable Delete Data On Uninstall on the General Plugin Settings tab before uninstalling.
product_ids or book_title is present and that the matching products are visible to the current visitor.language to use the default.