Hello support team,
I’ve created a custom solution that displays the variation price and a “⚡” icon for each variation that uses a shipping class containing “48h”. It works correctly on the product page by parsing a JSON map of prices, stock, and shipping class, then injecting the information visually inside the swatch buttons (.st-custom-attribute). Here is a simplified example of the script I use:
<!-- Maps injected as JSON -->
<script id="price-map" type="application/json">{...}</script>
<script id="shipping-class-map" type="application/json">{...}</script>
<script id="stock-map" type="application/json">{...}</script>
<!-- Swatch Enhancement Script -->
<script>
// Functions to inject price, shipping icon and stock limit into swatches
...
</script>
The system works fine on the regular product page (single-product), but it doesn’t work in the Quick View popup, even though the swatches render visually. I assume this is because the JSON