$product = {"id":7189408514147,"title":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠","handle":"iphone-15-pro-max-jellytint-sb12","description":null,"published_at":"2024-02-27T15:12:01+08:00","created_at":"2024-02-23T17:59:53+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師JellyTint專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 15 Pro Max","merge","reseller-jellytint-batman","Top50","type-jellytint"],"price":118000,"price_min":118000,"price_max":118000,"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":41312215793763,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31585484439651,"product_id":7189408514147,"position":7,"created_at":"2024-05-21T16:27:28+08:00","updated_at":"2024-05-21T16:27:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","variant_ids":[41312215793763,41312215826531,41312215859299,41312215892067]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-SB12","featured_media":{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312215826531,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012980H-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31585484439651,"product_id":7189408514147,"position":7,"created_at":"2024-05-21T16:27:28+08:00","updated_at":"2024-05-21T16:27:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","variant_ids":[41312215793763,41312215826531,41312215859299,41312215892067]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980H-SB12","featured_media":{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312215859299,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31585484439651,"product_id":7189408514147,"position":7,"created_at":"2024-05-21T16:27:28+08:00","updated_at":"2024-05-21T16:27:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","variant_ids":[41312215793763,41312215826531,41312215859299,41312215892067]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-SB12","featured_media":{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312215892067,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31585484439651,"product_id":7189408514147,"position":7,"created_at":"2024-05-21T16:27:28+08:00","updated_at":"2024-05-21T16:27:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","variant_ids":[41312215793763,41312215826531,41312215859299,41312215892067]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-SB12","featured_media":{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e19bd2be55f267edded85d6776ecc35b7d78b1_d8080c73-6be3-46ed-b861-abb9d130352b.webp?v=1708682399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c065673dbedfca297e3efc9f35a34ff7552233_e3f57131-44ae-4bbe-9183-6e2450ed7922.webp?v=1708682401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d026b95ddce02e7aa02d43103a3232eafe70e042_c49eabce-5877-427e-b47d-c0bf31381c58.webp?v=1708682403","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc19260c2c7b7b00a71dd7bfbd9f883db24df772_8c0344b5-4303-48b4-938c-d377f5260575.webp?v=1708682408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba8860489790bdc5e67004e401da0b3ef153c80d_af92965d-c265-4bb0-baef-c4caa0d75a4d.webp?v=1708682410","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d83d97e756a106d9067a363bb70c062c25942443_1b4c1d34-94c6-4cb3-b245-9c91f00e036d.webp?v=1708682413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e19bd2be55f267edded85d6776ecc35b7d78b1_d8080c73-6be3-46ed-b861-abb9d130352b.webp?v=1708682399","options":["color"],"media":[{"alt":null,"id":23336991326307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e19bd2be55f267edded85d6776ecc35b7d78b1_d8080c73-6be3-46ed-b861-abb9d130352b.webp?v=1708682399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7e19bd2be55f267edded85d6776ecc35b7d78b1_d8080c73-6be3-46ed-b861-abb9d130352b.webp?v=1708682399","width":2000},{"alt":null,"id":23336991621219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c065673dbedfca297e3efc9f35a34ff7552233_e3f57131-44ae-4bbe-9183-6e2450ed7922.webp?v=1708682401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42c065673dbedfca297e3efc9f35a34ff7552233_e3f57131-44ae-4bbe-9183-6e2450ed7922.webp?v=1708682401","width":2000},{"alt":null,"id":23336991948899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d026b95ddce02e7aa02d43103a3232eafe70e042_c49eabce-5877-427e-b47d-c0bf31381c58.webp?v=1708682403"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d026b95ddce02e7aa02d43103a3232eafe70e042_c49eabce-5877-427e-b47d-c0bf31381c58.webp?v=1708682403","width":2000},{"alt":null,"id":23336993390691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc19260c2c7b7b00a71dd7bfbd9f883db24df772_8c0344b5-4303-48b4-938c-d377f5260575.webp?v=1708682408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc19260c2c7b7b00a71dd7bfbd9f883db24df772_8c0344b5-4303-48b4-938c-d377f5260575.webp?v=1708682408","width":2000},{"alt":null,"id":23336993849443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba8860489790bdc5e67004e401da0b3ef153c80d_af92965d-c265-4bb0-baef-c4caa0d75a4d.webp?v=1708682410"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba8860489790bdc5e67004e401da0b3ef153c80d_af92965d-c265-4bb0-baef-c4caa0d75a4d.webp?v=1708682410","width":2000},{"alt":null,"id":23336994963555,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d83d97e756a106d9067a363bb70c062c25942443_1b4c1d34-94c6-4cb3-b245-9c91f00e036d.webp?v=1708682413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d83d97e756a106d9067a363bb70c062c25942443_1b4c1d34-94c6-4cb3-b245-9c91f00e036d.webp?v=1708682413","width":2000},{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $bumper = null; $variants = [{"id":41312215793763,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31585484439651,"product_id":7189408514147,"position":7,"created_at":"2024-05-21T16:27:28+08:00","updated_at":"2024-05-21T16:27:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","variant_ids":[41312215793763,41312215826531,41312215859299,41312215892067]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-SB12","featured_media":{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312215826531,"title":"Moody Green","option1":"Moody Green","option2":null,"option3":null,"sku":"CCN012980H-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31585484439651,"product_id":7189408514147,"position":7,"created_at":"2024-05-21T16:27:28+08:00","updated_at":"2024-05-21T16:27:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","variant_ids":[41312215793763,41312215826531,41312215859299,41312215892067]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠 - Moody Green","public_title":"Moody Green","options":["Moody Green"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980H-SB12","featured_media":{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312215859299,"title":"Cyber Blue","option1":"Cyber Blue","option2":null,"option3":null,"sku":"CCN012980I-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31585484439651,"product_id":7189408514147,"position":7,"created_at":"2024-05-21T16:27:28+08:00","updated_at":"2024-05-21T16:27:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","variant_ids":[41312215793763,41312215826531,41312215859299,41312215892067]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠 - Cyber Blue","public_title":"Cyber Blue","options":["Cyber Blue"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980I-SB12","featured_media":{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41312215892067,"title":"Fancy Pink","option1":"Fancy Pink","option2":null,"option3":null,"sku":"CCN012980J-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31585484439651,"product_id":7189408514147,"position":7,"created_at":"2024-05-21T16:27:28+08:00","updated_at":"2024-05-21T16:27:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","variant_ids":[41312215793763,41312215826531,41312215859299,41312215892067]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠 - Fancy Pink","public_title":"Fancy Pink","options":["Fancy Pink"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980J-SB12","featured_media":{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41312215793763,"title":"Ash Black","option1":"Ash Black","option2":null,"option3":null,"sku":"CCN012980G-SB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31585484439651,"product_id":7189408514147,"position":7,"created_at":"2024-05-21T16:27:28+08:00","updated_at":"2024-05-21T16:27:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048","variant_ids":[41312215793763,41312215826531,41312215859299,41312215892067]},"available":true,"name":"犀牛盾Clear防摔背蓋手機殼 - iPhone 15 Pro Max - 【聯名設計款】 - Batman - 黑白畫風-蝙蝠俠 - Ash Black","public_title":"Ash Black","options":["Ash Black"],"price":118000,"weight":1180,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"CCN012980G-SB12","featured_media":{"alt":null,"id":23993858850915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c842d0ec4e33da39977434934b164e1ba65aef7_0738f06b-1559-42e0-8b62-f907f1459c78.webp?v=1716280048"}},"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: "停產" }