If you're using Headless Hydrogen themes, you need to implement the following changes so that the Fast Bundle App's widgets can load and display on your site.
Here is a code that you must add to your theme, and it should be available on all of your shop's pages:
window.Shopify = {"shop": <myshopify domain>, "currency": {"active": <currency code>, "rate": <rate>}, "locale": <language code>, "routes": {"root": "/"}}
Please be aware that variables must be included in the window, the way that your codes let the script run on every page. To check, you can run "Shopify" in console and see whether you get a response or not.
Also, when loading on product pages, please import the following code as well because our app needs to read the product ID when loading on a product page:
window.pid = <product id>
Next, please implement this script and import it into your new theme's code in the <head> section.
<script src="https://api.fastbundle.co/scripts/script_tag.js" async type="application/javascript"></script>
If you've completed the previous steps, now you must check if the API in domain/cart.js
has been implemented, as shown in the following shopify document.
We are done here and everything must work as expected but, if you have any other questions, please don't hesitate to contact our support team via our online chat widget or email: support@fastbundle.co.
Good Luck!