You can send your questions to my email to get faster answer in 24 hours (free).
Buy me a coffee

26-08-2025 (02)

<script>
document.addEventListener('DOMContentLoaded', function() {
    const currentUrl = window.location.pathname;
    
    fetch(currentUrl + '?format=json-pretty')
        .then(response => response.json())
        .then(data => {
            if (data.item && data.item.structuredContent && data.item.structuredContent.variants) {
                const sku = data.item.structuredContent.variants[0].sku;
                const productPrice = document.querySelector('.product-price');
                
                if (productPrice && sku) {
                    const skuDiv = document.createElement('div');
                    skuDiv.className = 'product-sku';
                    skuDiv.style.cssText = `
                        margin-top: 15px;
                        padding: 8px 0;
                        font-size: 14px;
                        color: #666;
                    `;
                    skuDiv.innerHTML = '<strong>SKU:</strong> ' + sku;
                    
                    productPrice.insertAdjacentElement('afterend', skuDiv);
                }
            }
        })
        .catch(error => console.error('Error:', error));
});
</script>