$product = {"id":7769844613219,"title":"iPhone 13 Clear ilovedoodle Mooooody 乳牛","handle":"iphone-13-jellytint-xf04","description":null,"published_at":"2025-04-16T14:05:41+08:00","created_at":"2025-04-15T21:08:21+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 13","merge","reseller-ilovedoodle"],"price":108000,"price_min":108000,"price_max":108000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":43304198930531,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581096919139,"product_id":7769844613219,"position":9,"created_at":"2026-04-02T14:22:33+08:00","updated_at":"2026-04-02T14:22:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_3e1bcd47-892d-4ff0-b9e0-9cc5f535effb.webp?v=1775110955","variant_ids":[43304198930531]},"available":true,"name":"iPhone 13 Clear ilovedoodle Mooooody 乳牛 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-XF04","featured_media":{"alt":null,"id":27113717137507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_3e1bcd47-892d-4ff0-b9e0-9cc5f535effb.webp?v=1775110955"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304200798307,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012600H-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581096296547,"product_id":7769844613219,"position":7,"created_at":"2026-04-02T14:22:32+08:00","updated_at":"2026-04-02T14:22:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_4f88c45b-cb1f-4e8e-bce7-d2bc5c8f3ceb.webp?v=1775110954","variant_ids":[43304200798307]},"available":true,"name":"iPhone 13 Clear ilovedoodle Mooooody 乳牛 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600H-XF04","featured_media":{"alt":null,"id":27113716514915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_4f88c45b-cb1f-4e8e-bce7-d2bc5c8f3ceb.webp?v=1775110954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304200831075,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581096001635,"product_id":7769844613219,"position":6,"created_at":"2026-04-02T14:22:32+08:00","updated_at":"2026-04-02T14:22:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_6740e906-47b1-4268-b5e5-e735f8291286.webp?v=1775110954","variant_ids":[43304200831075]},"available":true,"name":"iPhone 13 Clear ilovedoodle Mooooody 乳牛 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-XF04","featured_media":{"alt":null,"id":27113716220003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_6740e906-47b1-4268-b5e5-e735f8291286.webp?v=1775110954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304200863843,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581096689763,"product_id":7769844613219,"position":8,"created_at":"2026-04-02T14:22:33+08:00","updated_at":"2026-04-02T14:22:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_d26d4b9f-5bcb-4908-9bf0-77ee86c7e5b6.webp?v=1775110955","variant_ids":[43304200863843]},"available":true,"name":"iPhone 13 Clear ilovedoodle Mooooody 乳牛 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-XF04","featured_media":{"alt":null,"id":27113716908131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_d26d4b9f-5bcb-4908-9bf0-77ee86c7e5b6.webp?v=1775110955"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208d4b2b1f6fc085747ae8b2ebbf11857ac20976_f222ed01-7499-4b2d-b3e3-eda53abf015c.webp?v=1744722508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5.webp?v=1774939440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb.webp?v=1774939440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640.webp?v=1774939441","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3.webp?v=1774939442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_6740e906-47b1-4268-b5e5-e735f8291286.webp?v=1775110954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_4f88c45b-cb1f-4e8e-bce7-d2bc5c8f3ceb.webp?v=1775110954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_d26d4b9f-5bcb-4908-9bf0-77ee86c7e5b6.webp?v=1775110955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_3e1bcd47-892d-4ff0-b9e0-9cc5f535effb.webp?v=1775110955"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208d4b2b1f6fc085747ae8b2ebbf11857ac20976_f222ed01-7499-4b2d-b3e3-eda53abf015c.webp?v=1744722508","options":["color"],"media":[{"alt":null,"id":25496353276003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208d4b2b1f6fc085747ae8b2ebbf11857ac20976_f222ed01-7499-4b2d-b3e3-eda53abf015c.webp?v=1744722508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/208d4b2b1f6fc085747ae8b2ebbf11857ac20976_f222ed01-7499-4b2d-b3e3-eda53abf015c.webp?v=1744722508","width":2000},{"alt":null,"id":27102291099747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5.webp?v=1774939440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5.webp?v=1774939440","width":2000},{"alt":null,"id":27102291394659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb.webp?v=1774939440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb.webp?v=1774939440","width":2000},{"alt":null,"id":27102291755107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640.webp?v=1774939441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640.webp?v=1774939441","width":2000},{"alt":null,"id":27102292017251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3.webp?v=1774939442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3.webp?v=1774939442","width":2000},{"alt":null,"id":27113716220003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_6740e906-47b1-4268-b5e5-e735f8291286.webp?v=1775110954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_6740e906-47b1-4268-b5e5-e735f8291286.webp?v=1775110954","width":2000},{"alt":null,"id":27113716514915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_4f88c45b-cb1f-4e8e-bce7-d2bc5c8f3ceb.webp?v=1775110954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_4f88c45b-cb1f-4e8e-bce7-d2bc5c8f3ceb.webp?v=1775110954","width":2000},{"alt":null,"id":27113716908131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_d26d4b9f-5bcb-4908-9bf0-77ee86c7e5b6.webp?v=1775110955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_d26d4b9f-5bcb-4908-9bf0-77ee86c7e5b6.webp?v=1775110955","width":2000},{"alt":null,"id":27113717137507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_3e1bcd47-892d-4ff0-b9e0-9cc5f535effb.webp?v=1775110955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_3e1bcd47-892d-4ff0-b9e0-9cc5f535effb.webp?v=1775110955","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":43304198930531,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581096919139,"product_id":7769844613219,"position":9,"created_at":"2026-04-02T14:22:33+08:00","updated_at":"2026-04-02T14:22:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_3e1bcd47-892d-4ff0-b9e0-9cc5f535effb.webp?v=1775110955","variant_ids":[43304198930531]},"available":true,"name":"iPhone 13 Clear ilovedoodle Mooooody 乳牛 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-XF04","featured_media":{"alt":null,"id":27113717137507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_3e1bcd47-892d-4ff0-b9e0-9cc5f535effb.webp?v=1775110955"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304200798307,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012600H-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581096296547,"product_id":7769844613219,"position":7,"created_at":"2026-04-02T14:22:32+08:00","updated_at":"2026-04-02T14:22:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_4f88c45b-cb1f-4e8e-bce7-d2bc5c8f3ceb.webp?v=1775110954","variant_ids":[43304200798307]},"available":true,"name":"iPhone 13 Clear ilovedoodle Mooooody 乳牛 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600H-XF04","featured_media":{"alt":null,"id":27113716514915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2cac59d04a734a3d464a73d6e99046c175d49e5_4f88c45b-cb1f-4e8e-bce7-d2bc5c8f3ceb.webp?v=1775110954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304200831075,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012600J-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581096001635,"product_id":7769844613219,"position":6,"created_at":"2026-04-02T14:22:32+08:00","updated_at":"2026-04-02T14:22:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_6740e906-47b1-4268-b5e5-e735f8291286.webp?v=1775110954","variant_ids":[43304200831075]},"available":true,"name":"iPhone 13 Clear ilovedoodle Mooooody 乳牛 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600J-XF04","featured_media":{"alt":null,"id":27113716220003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cdead4da7971ea7fecf0beb495cb7dc28d943d3_6740e906-47b1-4268-b5e5-e735f8291286.webp?v=1775110954"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43304200863843,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012600I-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581096689763,"product_id":7769844613219,"position":8,"created_at":"2026-04-02T14:22:33+08:00","updated_at":"2026-04-02T14:22:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_d26d4b9f-5bcb-4908-9bf0-77ee86c7e5b6.webp?v=1775110955","variant_ids":[43304200863843]},"available":true,"name":"iPhone 13 Clear ilovedoodle Mooooody 乳牛 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600I-XF04","featured_media":{"alt":null,"id":27113716908131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ed3eb3d44c027a1a07ae70e9073b0a3758f640_d26d4b9f-5bcb-4908-9bf0-77ee86c7e5b6.webp?v=1775110955"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43304198930531,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012600G-XF04","requires_shipping":true,"taxable":true,"featured_image":{"id":35581096919139,"product_id":7769844613219,"position":9,"created_at":"2026-04-02T14:22:33+08:00","updated_at":"2026-04-02T14:22:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_3e1bcd47-892d-4ff0-b9e0-9cc5f535effb.webp?v=1775110955","variant_ids":[43304198930531]},"available":true,"name":"iPhone 13 Clear ilovedoodle Mooooody 乳牛 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":108000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012600G-XF04","featured_media":{"alt":null,"id":27113717137507,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a17ab3a24f49e093c55626462772a5d534e5afb_3e1bcd47-892d-4ff0-b9e0-9cc5f535effb.webp?v=1775110955"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null var sellingStatus if ($bumper) { $(document).ready(function() { var productImg = $product.images[0] var bumperVariants = $bumper.variants; var bumperColors = new Object(); var currentVariant = ''; var productType = ''; bumperVariants.forEach(variant => { bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src; }); if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') { mergeImages( [productImg, bumperColors[currentVariant]], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } else { mergeImages( [bumperColors[currentVariant], productImg], { crossOrigin: 'anonymous' } ).then(mergedImg => { $('.merged-img').attr('src', mergedImg); }); } }); }; var sellingStatusData window.fetchSellingStatus().then(data => { try { sellingStatusData = data; } catch (error) { sellingStatusData = null console.error('Unable to parse selling status', error) } $(document).ready(function() { handleSellingStatus($defaultVariant.sku); }); }) function handleSellingStatus(currentSku) { if (!sellingStatusData) { console.error('No selling status available!') return } const sellingStatusElement = document.getElementById('selling-status') const addToCartButton = document.getElementById('AddToCart-product-template') const currentProductSku = currentSku.replace(/-(.*)$/, '-') if ($variants) { const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder] const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku) if (matchSellingStatusProduct.length > 0) { const isProductPending = matchSellingStatusProduct[0].status === 'pending' const matchDate = matchSellingStatusProduct[0].date sellingStatus = isProductPending ? "缺貨中" : "預購完成出貨日:" + matchDate sellingStatusElement.textContent = sellingStatus if (sellingStatus.includes("缺貨中")){ addToCartButton.disabled ='true'; addToCartButton.textContent = "缺貨中無法加入購物車" } else { addToCartButton.textContent = "加到購物車" } } else { sellingStatusElement.textContent = '' addToCartButton.textContent = "加到購物車" }; }; }; document.addEventListener('DOMContentLoaded', function () { var currentVariantSelect = document.getElementById('SingleOptionSelector-0') currentVariantSelect.addEventListener('change', function() { var currentSku = $('#current_sku').text() var skuElement = document.getElementById('current-sku') skuElement.textContent = currentSku handleSellingStatus(currentSku) }); });
// Override default values of shop.strings for each template. // Alternate product templates can change values of // add to cart button, sold out, and unavailable states here. theme.productStrings = { addToCart: "加到購物車", soldOut: "售完", unavailable: "停產" }