My theme doesn’t allow adding the block with the lowest price when using the Omnibus Insight: Price History app, what should I do?
It will be possible to add the required block in the product-price.liquid code. To proceed, follow the steps below:
1. Proceed to Online store > Themes > Customize > Edit Code.
2. Add a new snippet in the Snippets folder:

Insert the content below and save the snippet:
- <div id="am-omnibus-container-{{ product.id }}"></div>
<script>
(async () => {
const {shop, locale, currency} = window.Shopify;
if (!shop) {
return;
}
const productId = "{{ product.id }}";
if (!productId || typeof window.ShopifyAnalytics === "undefined") {
return;
}
const selectedVariantId = "{{ product.selected_or_first_available_variant.id }}";
const {page} = window.ShopifyAnalytics.meta;
const {pageType} = page;
if (pageType === "product") {
const endpoint = `/apps/am-omnibus-price`;
const response = await fetch(endpoint, {
method: "POST",
headers: {
"Content-Type": "application/json",
Accept: "application/json"
},
body: JSON.stringify({
shop,
productId,
variantId: selectedVariantId,
locale,
currency
})
});
if (!response.ok) {
return;
}
const {lowestPriceHtml} = await response.json();
if (!lowestPriceHtml) {
return;
}
const selector = `am-omnibus-container-${productId}`;
const container = document.getElementById(selector);
if (!container) {
return;
}
container.innerHTML = lowestPriceHtml;
}
})();
</script>
Add the following line at the end of the product-price.liquid code:
{%- render 'product-page-lowest-price', product:product -%}
Once you save the changes, the application’s block should appear on the front end.