> ## Documentation Index
> Fetch the complete documentation index at: https://amasty.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshooting

> A workaround for themes that don't allow you to add the lowest price block during the initial app setup.

If your theme doesn't allow you to add the lowest price block during the initial app setup, there's a workaround you can use to resolve this issue.

**1. Open the theme customizer**

From Shopify Admin, go to **Online store > Themes > Customize**.

**2. Open Edit code**

Click **... > Edit code**.

![Edit code](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_Omnibus/edit-code1.png)

**3. Open Snippets**

In the theme editor sidebar, find and click on the **Snippets** section to expand the list of existing snippet files.

**4. Create a new file**

At the top of the expanded list, you will see a button labeled **New File**. Click this button to create a new snippet file.

**5. Name the snippet**

Name it `product-page-lowest-price.liquid` and press **Enter**.

**6. Add the code**

Insert the following content and **Save** it.

```liquid expandable theme={null}
<script type="application/json" id="am-omnibus-texts-product-{{ product.id }}">
    {
        "label": {{ shop.metafields["omnibus_insight"]["am_lowest_price_label"].value | json | replace: '<', '\u003c' }},
        "popupIconText": {{ shop.metafields["omnibus_insight"]["am_lowest_price_icon_text"].value | json | replace: '<', '\u003c' }},
        "promotionPeriod": {{ shop.metafields["omnibus_insight"]["am_lowest_price_promotion_period"].value | json | replace: '<', '\u003c' }}
    }
</script>
<div id="am-omnibus-container-product-{{ product.id }}"></div>
<script>
(async()=>{var e,t,r;let{shop:n,locale:i,currency:l,country:a}=window.Shopify;if(!n)return;let o={AR:"es",AZ:"az",BG:"bg",DE:"de",ES:"es",FI:"fi",FJ:"fj",FO:"fo",FR:"fr",HR:"hr",HT:"ht",HU:"hu",ID:"id",IS:"is",IT:"it",LT:"lt",LV:"lv",MG:"mg",MH:"mh",MK:"mk",MN:"mn",MT:"mt",NL:"nl",NO:"no",PL:"pl",PT:"pt",RO:"ro",RU:"ru",RW:"rw",SK:"sk",SO:"so",TH:"th",TO:"to",TR:"tr",US:"en",UZ:"uz"},s=(e,t)=>o[t]||(e||"").split(/[-_]/)[0]||e,c=(e,{marginTop:t=null,marginBottom:r=null}={})=>{let n=e||"";return null!==t&&(n=n.replace(/margin-top:\s*-?\d+px/,`margin-top: ${t}px`)),null!==r&&(n=n.replace(/margin-bottom:\s*-?\d+px/,`margin-bottom: ${r}px`)),n},u=(e,t,r)=>{let n=e.querySelector("#"+t);if(!n)return;let i=e.querySelector(".am-omnibus-promotion");i||((i=document.createElement("div")).className="am-omnibus-promotion",e.insertBefore(i,n)),i.innerHTML=r||"";let l=void 0!==n.dataset.amOmnibusMarginTop;r?(l||(n.dataset.amOmnibusMarginTop=n.style.marginTop),n.style.marginTop="0px"):l&&(n.style.marginTop=n.dataset.amOmnibusMarginTop,delete n.dataset.amOmnibusMarginTop)},p=["a","b","strong","i","em","u","br","span","p","small","sub","sup"],_=["http","https","mailto"],d=["href","target","rel"],m=["style","class"],$=e=>String(e??"").replace(/[&<>"']/g,e=>{switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case`"`:return"&quot;";default:return"&#039;"}}),f=e=>{let t=document.createElement("textarea");return t.innerHTML=e,t.value},h=e=>{let t=f(String(e).trim()).replace(/[\x00-\x1f\x7f]/g,"").trim();if(""===t||t.startsWith("/")||t.startsWith("#")||t.startsWith("//"))return!0;let r=t.indexOf(":");return -1===r||_.includes(t.slice(0,r).toLowerCase())},y=e=>{let t={},r=/([a-zA-Z][\w-]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'`=<>]*)))?/g,n;for(;null!==(n=r.exec(e));)t[n[1].toLowerCase()]=n[2]||n[3]||n[4]||"";return t},b=(e,t)=>{let r="a"===e?d:m,n={};for(let i of Object.keys(t))r.includes(i)&&(n[i]=t[i]);return"a"!==e||(void 0===n.href||h(n.href)||delete n.href,void 0!==n.target&&"_blank"===n.target.toLowerCase()&&(n.rel="noopener noreferrer")),n},g=e=>Object.keys(e).map(t=>` ${t}="${$(e[t])}"`).join(""),w=e=>e.replace(/<\/?([a-zA-Z][a-zA-Z0-9]*)(\s[^>]*)?\s*\/?>/g,(e,t)=>p.includes(t.toLowerCase())?e:""),v=(e,t,r)=>{let n=t.toLowerCase();if(e.startsWith("</"))return`</${n}>`;let i=b(n,y(r||"")),l="br"===n||e.trimEnd().endsWith("/>");return l?`<${n}${g(i)} />`:`<${n}${g(i)}>`},C=e=>{let t=String(e??"").trim();if(""===t||!t.includes("<"))return t;let r=t,n=!1;for(let i=0;i<10;i++){let l=w(r).trim();if(l===r){n=!0;break}r=l}return n?r.replace(/<\/?([a-zA-Z][a-zA-Z0-9]*)(\s[^>]*)?\s*\/?>/g,(e,t,r)=>v(e,t,r)):$(r)},T=(e,t,r,n,i)=>{if(e)return e;let l=t;if(r&&r.length>0)for(let a of r)a.code&&(a.code===n||n.startsWith(a.code+"-"))&&a[i]&&(l=a[i]);return l},A=e=>C(e).replaceAll("\n","<br>"),x="{{ product.id }}";if(!x||void 0===window.ShopifyAnalytics)return;let L=e=>"string"==typeof e&&""!==e?e:null,S=()=>{try{let e=JSON.parse(document.getElementById(`am-omnibus-texts-product-${x}`).textContent);return{label:L(e.label),popupIconText:L(e.popupIconText),promotionPeriod:L(e.promotionPeriod)}}catch(t){return console.error(t),{label:null,popupIconText:null,promotionPeriod:null}}},E=S(),I=Number("{{ localization.market.id }}"),j=Number("{{ customer.current_company.id }}"),k=`am-price-trends-${x}`,H=JSON.parse(`[{% for variant in product.variants %}{"id":"{{ variant.id }}","price":{{ variant.price | times: 0.01 }},"compare_at_price":{% if variant.compare_at_price %}{{ variant.compare_at_price | times: 0.01 }}{% else %}{{ variant.price | times: 0.01 }}{% endif %}}{% unless forloop.last %},{% endunless %}{% endfor %}]`),M="{{ product.selected_or_first_available_variant.price }}"*.01,N="{{ product.selected_or_first_available_variant.compare_at_price }}"*.01,O=e=>{if("null"!==e)try{return JSON.parse(e)}catch(t){console.error(t)}return null},P=O(`{{ shop.metafields["app--80349265921"].am_lowest_price_settings.value | json }}`),B=O(`{{ product.metafields["app--80349265921"].am_lowest_price.value | json }}`),Z=O(`{{ product.selected_or_first_available_variant.metafields["app--80349265921"].am_lowest_price.value | json }}`),z=P?.custom_font_url?"AmCustomFont_{{ shop.id }}":null;if(z){let F=document.createElement("style");F.textContent=`@font-face {font-family: ${z};src: url("${P.custom_font_url}");font-display: optional;}`,document.head.appendChild(F),"undefined"!=typeof FontFace&&new FontFace(z,`url("${P.custom_font_url}")`).load().then(e=>document.fonts.add(e)).catch(()=>{})}let R="{{ product.selected_or_first_available_variant.id }}",{page:U}=window.ShopifyAnalytics.meta,{pageType:D}=U;if("product"!==D)return;let W=null,q=null,V=null,K=!1,G=async e=>{let t=l?.active;if(!t)return null;let r=(e,t)=>{try{if(!t){localStorage.removeItem(e);return}let r={value:t,timestamp:Date.now()};localStorage.setItem(e,JSON.stringify(r))}catch(n){}},i=e=>{try{let t=localStorage.getItem(e);if(!t)return null;let{value:r,timestamp:n}=JSON.parse(t),i=Date.now();if(i-n<432e5)return r;return localStorage.removeItem(e),null}catch(l){return null}},a=`am_omnibus_rate_${t}_${e}`,o=i(a);if(o)return o;let s=await fetch("/apps/am-omnibus-price",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({shop:n,operation:"currency_conversion",currency:l,lowestCurrency:e})});if(!s.ok)return null;let{rate:c}=await s.json();return r(a,c),c},X=async(e,t)=>{if("object"!=typeof e)return;let r=(e,t)=>{if(!t)return e.settings;if(e.hasCustomSettings){for(let r in t)r in e.settings||(e.settings[r]=t[r]);return e.settings}return t},n=r(e,t);if(!n||"object"!=typeof n)return;let{show_lowest:l,display_mode:o,popup_content:p,display_only_at_discount:_,percentage_mode:d,multi_currency_display_mode:m,period:$,languages:f,translations:h,css:y,icon_size:b,shop_currency:g,positive_percentage_color:w,negative_percentage_color:v,excluded_market_ids:C,excluded_company_ids:L}=n;if(!l)return;if(j){if(L&&L instanceof Array&&(L.includes(j)||L.includes(""+j)))return}else if(I&&C&&C instanceof Array&&(C.includes(I)||C.includes(""+I)))return;let S=`am-omnibus-container-product-${x}`,H=document.getElementById(S);if(!H)return;let O=g||e.shopCurrency,P=window.Shopify?.currency,B=P?.active,Z=P?.rate,z,F,R,U,D=null,W=e.markets,q=null;j&&W?.companies?.[j]?q=W?.companies?.[j]:I?q=W?.markets?.[I]:a&&(q=W?.countries?.[a]);let V=q?q.prices:null,K=q?q.lowest:null;if(V&&K){let X=V&&B?V[B]?.original:null;if(X)z=X.amount,U=X.currency;else{if(!K.original?.amount)return;O===K.original?.currency?(z=K.original.amount*Z,U=B):(z=K.original.amount,U=K.original?.currency)}F=M,R=!!(N&&N>M)}else z=e.lowest_price,e.currency===B?(U=B,F=M,R=!!(N&&N>M)):(U=e.currency,F=e.price,R=!!e.at_discount);if(U&&U!==O){if(!P||"object"!=typeof P)return;if(B&&U===B)Z=1;else if(B&&O===B){if(z*=Z=P.rate,1==+Z&&U!==B)switch(m){case"hide":return;case"original":D=U;break;default:if(!(Z=await G(U)))return;z*=Z,Z=1}}else switch(m){case"hide":return;case"original":D=U;break;default:if(!(Z=await G(U)))return;z*=Z,Z=1}}if(null==z){"popup"===o&&"price_only"!==p&&Q(o).catch(),u(H,k,"");return}if(_&&!R){u(H,k,"");return}let J=y;if("popup"===o){let et=T(E.popupIconText,h.icon_text,f,i,"iconText");if(Y(H,p,y,b||20,et),"price_only"!==p){Q().catch();return}y=""}let er=F<z,en=F>z,ei="inherit",el="";if(en)el="+",ei=w||"rgb(214, 123, 123)";else if(er){el="-";let ea="rgb(110, 221, 168)";ei=v&&v!==ea?v:"popup"===o?"rgb(16, 172, 132)":ea}let eo=`color: ${ei}`,es,ec;0!==z?ec=` <span style="${eo}">(${el}${es=Math.abs(es=parseFloat(es=(F/z-1)*100).toFixed(2))}%)</span>`:(es=0,ec=""),("dont"===d||"positive"===d&&er||"zero_or_negative"===d&&en||0===es)&&(ec=""),D?B=D:B&&B!==O&&Z&&1!=+Z&&(z*=Z);let eu=(e,t,r,n)=>{let i={style:"currency",currency:n,numberingSystem:"latn"},l=new Intl.NumberFormat(r?`${t}-${r}`:t,i).format(e);return l.includes(n)&&(l=new Intl.NumberFormat(t,i).format(e)),"USD"!==n&&/(?<![A-Za-z])\$/.test(l)&&(l+=` ${n}`),l},ep=eu(z,s(i,a),a,B);ep||(ep=`${z} ${B}`);let e_=T(E.label,h.lowest,f,i,"text");e_||(e_=`The lowest price from last ${$} days: {lowest.price}`),e_.includes("{X}")&&(e_=e_.replaceAll("{X}",$)),e_=A(e_);let ed="",em=e.promotion;if(em&&!(em.ends_at&&new Date(em.ends_at)<=new Date)){let e3=T(E.promotionPeriod,h.promotion_period,f,i,"promotionPeriod");if(e3){let e$=e=>{let[t,r,n]=String(e).split("-").map(Number),l=new Date(Date.UTC(t,r-1,n));return new Intl.DateTimeFormat(i||void 0,{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"}).format(l)};e3=(e3=(e3=A(e3)).replaceAll("{start_date}",e$(em.start_date))).replaceAll("{end_date}",em.end_date?e$(em.end_date):"");let ef=c(J,{marginBottom:2});ed=`<p class="caption" style="${ef}">${e3}</p>`}}let e0=ed?c(y,{marginTop:0}):y,e5;e5=e_.includes("{lowest.price}")?`<p class="caption" style="${e0}">${e_=e_.replaceAll("{lowest.price}",`${ep}${ec}`)}</p>`:`<p class="caption" style="${e0}">${e_}: ${ep}${ec}</p>`,"popup"===o&&"price_only"===p?(ee(k,e5,p).catch(),u(H,k,ed)):H.innerHTML=ed+e5},J=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;async function Q(e){let t=`am-omnibus-container-product-${x}`,r=document.getElementById(t);if(!r)return;let o="/apps/am-omnibus-price",s=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({shop:n,productId:x,variantId:R,locale:i,currency:l,country:a,companyId:j,marketId:I,realPrice:M,realComparePrice:N,labelTemplate:E.label,popupIconTemplate:E.popupIconText,promotionTemplate:E.promotionPeriod})});if(!s.ok)return;let{lowestPriceHtml:c,displayMethod:p,popupContent:_,prices:d,plainCss:m,iconSize:$,iconText:f,chartColor:h,promotionHtml:y}=await s.json();if(null!=c){if(e&&(p=e),r=document.getElementById(t)){if(p&&"always_visible"!==p){if(!c){u(r,k,"");return}Y(r,_,m,$||20,f),u(r,k,y);let b=null;"chart"===_&&(b="https://cdn.shopify.com/extensions/01a1e9c5-bb5b-7b2b-a9d4-f0dc308bad26/omnibus-insight-price-tracker-28/assets/chart.js"),ee(k,c,_,d,b,h).catch()}else r.innerHTML=(y||"")+c,void 0===p&&!c&&W&&W.destroy()}}}function Y(e,t,r,n,i){if(e.querySelector(`#${k}`))return;let l=document.createElement("div"),a="#111111",o="12px",s="left";l.id=k,r&&(l.style.cssText=r,a=l.style.color,o=l.style.fontSize,s=l.style.textAlign),e.style.textAlign=s,l.style.display="inline-flex",l.style.alignItems="center";let c="default";"chart"===t&&(c="pointer"),l.style.cursor=c;let u=document.createElement("p");u.innerText=[void 0,null].includes(i)?"Price trends":i,u.style.margin="0 0 0 6px",u.style.borderBottom=`2px dotted ${a}`,u.style.fontSize=o,u.classList.add("caption");let p=ea(a,n),_=eo(a,n);l.appendChild(p),l.appendChild(_),l.appendChild(u),e.appendChild(l)}async function ee(e,t,r,n,l,o){if(W){W.update({lowestPriceHtml:t,tooltipContent:r,prices:n});return}let s=await et();(W=new s(e,t,r,n,l,o,a,i,z)).render()}async function et(){return V?Promise.resolve(V):q||(q=new Promise((e,t)=>{let r="am-tooltip-lib:loaded",n=i=>{let l=i.detail,{AmOmnibusTooltip:a}=l;document.removeEventListener(r,n),a?(V=a,e(a)):t(Error("Could not load AmTooltip lib"))};document.addEventListener(r,n),er()}))}function er(){en("https://cdn.shopify.com/extensions/01a1e9c5-bb5b-7b2b-a9d4-f0dc308bad26/omnibus-insight-price-tracker-28/assets/tooltip.js").catch()}async function en(e){try{let t=await fetch(e),r=await t.text(),n=document.createElement("script");n.textContent=r,document.head.appendChild(n)}catch(i){}}let ei=()=>{let e=new URLSearchParams(window.location.search),t=document.querySelector("[name=id]")?.value;return e.has("variant")&&(t=e.get("variant")),t},el=e=>{let t=ei();if(!t||+t==+R&&!e)return;let r=H.find(({id:e})=>e===t);r?(M=r.price,N=r.compare_at_price):(M=null,N=null),R=t,K||Q().catch()};function ea(e="#111111",t=20){let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("width",t),r.setAttribute("height",t),r.setAttribute("viewBox","0 1 16 14"),r.setAttribute("fill","none");let n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d","M6.5 3.5C6.5 3.08579 6.83579 2.75 7.25 2.75C7.66421 2.75 8 3.08579 8 3.5V3.75H8.75C9.16421 3.75 9.5 4.08579 9.5 4.5C9.5 4.91421 9.16421 5.25 8.75 5.25H6.5C6.22386 5.25 6 5.47386 6 5.75C6 6.02614 6.22386 6.25 6.5 6.25H7.5C8.60457 6.25 9.5 7.14543 9.5 8.25C9.5 9.35457 8.60457 10.25 7.5 10.25V10.5C7.5 10.9142 7.16421 11.25 6.75 11.25C6.33579 11.25 6 10.9142 6 10.5V10.25H5.25C4.83579 10.25 4.5 9.91421 4.5 9.5C4.5 9.08579 4.83579 8.75 5.25 8.75H7.5C7.77614 8.75 8 8.52614 8 8.25C8 7.97386 7.77614 7.75 7.5 7.75H6.5C5.39543 7.75 4.5 6.85457 4.5 5.75C4.5 4.64543 5.39543 3.75 6.5 3.75V3.5Z"),n.setAttribute("fill",e);let i=document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d","M14 7C14 10.866 10.866 14 7 14C3.13401 14 0 10.866 0 7C0 3.13401 3.13401 0 7 0C10.866 0 14 3.13401 14 7ZM12.5 7C12.5 10.0376 10.0376 12.5 7 12.5C3.96243 12.5 1.5 10.0376 1.5 7C1.5 3.96243 3.96243 1.5 7 1.5C10.0376 1.5 12.5 3.96243 12.5 7Z"),i.setAttribute("fill-rule","evenodd"),i.setAttribute("clip-rule","evenodd"),i.setAttribute("fill",e),r.appendChild(n),r.appendChild(i),r}function eo(e="#111111",t=20){let r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("width",t),r.setAttribute("height",t),r.setAttribute("viewBox","2 -4 14 18"),r.setAttribute("fill","none"),r.setAttribute("xmlns","http://www.w3.org/2000/svg");let n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("fill-rule","evenodd"),n.setAttribute("clip-rule","evenodd"),n.setAttribute("d","M5.44697 1.5C5.00114 1.5 4.61903 1.81867 4.53896 2.25725L3.53735 7.74387C3.2988 9.05057 2.16035 10 0.832058 10H0.75C0.335786 10 0 9.66421 0 9.25C0 8.83579 0.335786 8.5 0.75 8.5H0.832058C1.43583 8.5 1.95331 8.06844 2.06174 7.47448L3.06335 1.98787C3.27353 0.836541 4.27661 0 5.44697 0C6.71534 0 7.76907 0.978167 7.86328 2.24304L8.57919 11.8548C8.60629 12.2186 8.90939 12.5 9.27423 12.5C9.61494 12.5 9.90571 12.2537 9.96172 11.9176L10.4817 8.7979C10.7027 7.47189 11.8499 6.5 13.1943 6.5H15.25C15.6642 6.5 16 6.83579 16 7.25C16 7.66421 15.6642 8 15.25 8H13.1943C12.5832 8 12.0617 8.44177 11.9613 9.0445L11.4413 12.1642C11.2648 13.2236 10.3482 14 9.27423 14C8.12419 14 7.16876 13.1131 7.08334 11.9662L6.36743 2.35445C6.33154 1.87262 5.93013 1.5 5.44697 1.5Z"),n.setAttribute("fill",e),r.appendChild(n),r}"object"==typeof(e=P)&&e&&Object.keys(e).length>0&&Object.keys(P).some(e=>"custom_font_url"!==e)?R&&null!==Z&&"object"==typeof(t=Z)&&t&&Object.keys(t).length>0?X(Z,P).catch():null!==B&&"object"==typeof(r=B)&&r&&Object.keys(r).length>0?X(B,P).catch():Q().catch():Q().catch();let es=location.href,ec=new MutationObserver(e=>{let t=location.href;if(t!==es&&(es=t,el()),["Prestige","Kalles"].includes(window.Shopify?.theme?.schema_name)&&e)try{for(let r of e)if(r?.target?.tagName==="MAIN-PRODUCT"||r?.target?.hasAttribute("data-pr-price")){el(!0);break}}catch(n){console.log(n)}});ec.observe(document,{subtree:!0,childList:!0});let eu=`am-omnibus-container-product-${x}`,ep=document.getElementById(eu),e_=ep.parentElement.parentElement,ed=null;if("PRODUCT-INFO"===e_.tagName&&e_.getElementsByTagName("variant-radios").length>0){K=!0;let em=!1;(ed=new MutationObserver(()=>{if(em)return;let e=document.getElementById(eu);e&&""===e.innerHTML&&(em=!0,Q().catch().finally(()=>{em=!1}))})).observe(e_,{childList:!0,subtree:!0})}function e3(e){if(["complete","loaded","interactive"].includes(document.readyState)){e();return}window.document.addEventListener("DOMContentLoaded",function(){e()})}function e$({data:e}){e.variant&&e.variant.id&&(R=e.variant.id,Q().catch())}function ef(){"object"==typeof PUB_SUB_EVENTS&&"variantChange"in PUB_SUB_EVENTS&&"function"==typeof window.subscribe&&(window.subscribe(PUB_SUB_EVENTS.variantChange,e$),ec.disconnect(),ed&&ed.disconnect())}e3(ef)})();
</script>
```

**7. Open product-price.liquid**

In the left sidebar, find `product-price.liquid`.

**8. Add the render line**

Add the following line to the end of the code:

`{%- render 'product-page-lowest-price', product:product -%}`

![Render line added to product-price.liquid](https://guide.amasty.com/media/.renditions/wysiwyg/Shopify_Omnibus/2025-09-25-12-07-30.png)

**9. Save changes**

> [!NOTE]
>
> If none of these work, please contact us for assistance at [help-center@amasty.com](mailto:help-center@amasty.com).

Have questions? See the [Omnibus Insight FAQ](https://support.amasty.com/portal/en/kb/shopify-apps/omnibus-insight-price-tracker).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.