$product = {"id":7921982799971,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 草莓聖代貓","handle":"iphone-14-plus-mod-nx-magsafe-toc04","description":null,"published_at":"2025-11-14T08:18:34+08:00","created_at":"2025-11-13T10:23:55+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-tocorocomugi","device-iPhone 14 Plus","merge","reseller-tocorocomugi"],"price":110000,"price_min":110000,"price_max":110000,"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":43834787168355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794200301667,"product_id":7921982799971,"position":11,"created_at":"2025-11-13T10:24:02+08:00","updated_at":"2025-11-13T10:24:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee1f7fc9e84a9b2180b35a44430519f0c75385e.webp?v=1763000644","variant_ids":[43834787168355]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 草莓聖代貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-TOC04","featured_media":{"alt":null,"id":26359619879011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee1f7fc9e84a9b2180b35a44430519f0c75385e.webp?v=1763000644"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e987190a2e353603307eb78239780e40a34a5f.webp?v=1763000638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb86d2495044db44f3e958c595cdaf95001a028b.webp?v=1763000638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c35b235674742db388d121eb8874323eaf3a8fb1.webp?v=1763000639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cdc0f7ee2497cf4af103cd8919d6775b63cdef.webp?v=1763000640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad5a0906086836e053ddc16f468420eb085f55c6.webp?v=1763000640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa42462191873ec8d83860ebf59dbd9d41d6c48.webp?v=1763000641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2f4fcbdbc85e166c3633b5f1805a4bc57b98627.webp?v=1763000641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f04035ae1497961b0f2ea33cc2e76808a9cf2e9.webp?v=1763000642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593a2c23d2773ed32e9388ba14b9c7b817b54c06.webp?v=1763000643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eaf7ab355cae4ca4b02114f3f030dff682a57ed.webp?v=1763000644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee1f7fc9e84a9b2180b35a44430519f0c75385e.webp?v=1763000644","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d3641fb8f7f2c05d7a4f8565346e76019376792.webp?v=1763000645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d272b8d7ec9356ca07e090b19b21bd569a882d0e.webp?v=1763000646"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e987190a2e353603307eb78239780e40a34a5f.webp?v=1763000638","options":["color"],"media":[{"alt":null,"id":26359617388643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e987190a2e353603307eb78239780e40a34a5f.webp?v=1763000638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87e987190a2e353603307eb78239780e40a34a5f.webp?v=1763000638","width":2000},{"alt":null,"id":26359617519715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb86d2495044db44f3e958c595cdaf95001a028b.webp?v=1763000638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb86d2495044db44f3e958c595cdaf95001a028b.webp?v=1763000638","width":2000},{"alt":null,"id":26359617650787,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c35b235674742db388d121eb8874323eaf3a8fb1.webp?v=1763000639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c35b235674742db388d121eb8874323eaf3a8fb1.webp?v=1763000639","width":2000},{"alt":null,"id":26359617880163,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cdc0f7ee2497cf4af103cd8919d6775b63cdef.webp?v=1763000640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46cdc0f7ee2497cf4af103cd8919d6775b63cdef.webp?v=1763000640","width":2000},{"alt":null,"id":26359618175075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad5a0906086836e053ddc16f468420eb085f55c6.webp?v=1763000640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad5a0906086836e053ddc16f468420eb085f55c6.webp?v=1763000640","width":2000},{"alt":null,"id":26359618404451,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa42462191873ec8d83860ebf59dbd9d41d6c48.webp?v=1763000641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/baa42462191873ec8d83860ebf59dbd9d41d6c48.webp?v=1763000641","width":2000},{"alt":null,"id":26359618633827,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2f4fcbdbc85e166c3633b5f1805a4bc57b98627.webp?v=1763000641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2f4fcbdbc85e166c3633b5f1805a4bc57b98627.webp?v=1763000641","width":2000},{"alt":null,"id":26359618830435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f04035ae1497961b0f2ea33cc2e76808a9cf2e9.webp?v=1763000642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f04035ae1497961b0f2ea33cc2e76808a9cf2e9.webp?v=1763000642","width":2000},{"alt":null,"id":26359619190883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593a2c23d2773ed32e9388ba14b9c7b817b54c06.webp?v=1763000643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593a2c23d2773ed32e9388ba14b9c7b817b54c06.webp?v=1763000643","width":2000},{"alt":null,"id":26359619551331,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eaf7ab355cae4ca4b02114f3f030dff682a57ed.webp?v=1763000644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eaf7ab355cae4ca4b02114f3f030dff682a57ed.webp?v=1763000644","width":2000},{"alt":null,"id":26359619879011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee1f7fc9e84a9b2180b35a44430519f0c75385e.webp?v=1763000644"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee1f7fc9e84a9b2180b35a44430519f0c75385e.webp?v=1763000644","width":2000},{"alt":null,"id":26359620141155,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d3641fb8f7f2c05d7a4f8565346e76019376792.webp?v=1763000645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d3641fb8f7f2c05d7a4f8565346e76019376792.webp?v=1763000645","width":2000},{"alt":null,"id":26359620436067,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d272b8d7ec9356ca07e090b19b21bd569a882d0e.webp?v=1763000646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d272b8d7ec9356ca07e090b19b21bd569a882d0e.webp?v=1763000646","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43834787168355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794200301667,"product_id":7921982799971,"position":11,"created_at":"2025-11-13T10:24:02+08:00","updated_at":"2025-11-13T10:24:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee1f7fc9e84a9b2180b35a44430519f0c75385e.webp?v=1763000644","variant_ids":[43834787168355]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 草莓聖代貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-TOC04","featured_media":{"alt":null,"id":26359619879011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee1f7fc9e84a9b2180b35a44430519f0c75385e.webp?v=1763000644"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43834787168355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-TOC04","requires_shipping":true,"taxable":true,"featured_image":{"id":34794200301667,"product_id":7921982799971,"position":11,"created_at":"2025-11-13T10:24:02+08:00","updated_at":"2025-11-13T10:24:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee1f7fc9e84a9b2180b35a44430519f0c75385e.webp?v=1763000644","variant_ids":[43834787168355]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) TOCOROCOMUGI 草莓聖代貓 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-TOC04","featured_media":{"alt":null,"id":26359619879011,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ee1f7fc9e84a9b2180b35a44430519f0c75385e.webp?v=1763000644"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $brand_handle = null; $type = ""; var sellingStatus // 只有設計款(SKU 含 '-')才需要合圖 if ($isMerge && $defaultVariant.sku.includes('-')) { $(document).ready(function() { var productImg = $product.images[0]; var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]); var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate') ? [productImg, bumperImg] : [bumperImg, productImg]; window.mergeProductImages(layers).then(function (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: "停產" }