$product = {"id":7892083507299,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日","handle":"iphone-14-plus-mod-nx-magsafe-printable-fw57","description":null,"published_at":"2025-10-01T12:29:41+08:00","created_at":"2025-10-01T09:28:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 14 Plus","merge","reseller-xiuxiubear"],"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":43754424074339,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540695257187,"product_id":7892083507299,"position":11,"created_at":"2025-10-01T09:28:36+08:00","updated_at":"2025-10-01T09:28:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad8c102ee03cdcb459b6f169d6e64ddefdde0c.webp?v=1759282118","variant_ids":[43754424074339]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - 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-FW57","featured_media":{"alt":null,"id":26110462394467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad8c102ee03cdcb459b6f169d6e64ddefdde0c.webp?v=1759282118"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101dc80dad5edf1f2699932165c45d18bbdf684b.webp?v=1759282112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17c14b2fecc8772ae2ebe075d45e706ff4fb049e.webp?v=1759282112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21c8fc6b793bcd654ca6b06605b59c02d69c51f6.webp?v=1759282113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97cd6962cd5e4d65e61c18ad5f279191d3b2d151.webp?v=1759282113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e25c2b2c32d2b31874fb019eb862dda3c6825c.webp?v=1759282114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb83dfb3e401059b5e329da1894d6935facd7638.webp?v=1759282114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e32b493b59db9c207a01b9ad9a75aa7c833481d.webp?v=1759282115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f327fbd363ed84f7fb0be887b5d5c4a7f417bdac.webp?v=1759282115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45fbbb2b7e1a0496f83b4d7854548b74f8ef6d0.webp?v=1759282116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a9ba728274b62fde84a9741aeaedbce34d29a86.webp?v=1759282117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad8c102ee03cdcb459b6f169d6e64ddefdde0c.webp?v=1759282118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8320b4c1970f02a9f886f294bf653d01a616d52.webp?v=1759282118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e542dcafbc2428005a961655414de9c7a75d73de.webp?v=1759282119"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101dc80dad5edf1f2699932165c45d18bbdf684b.webp?v=1759282112","options":["color"],"media":[{"alt":null,"id":26110461083747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101dc80dad5edf1f2699932165c45d18bbdf684b.webp?v=1759282112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/101dc80dad5edf1f2699932165c45d18bbdf684b.webp?v=1759282112","width":2000},{"alt":null,"id":26110461247587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17c14b2fecc8772ae2ebe075d45e706ff4fb049e.webp?v=1759282112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17c14b2fecc8772ae2ebe075d45e706ff4fb049e.webp?v=1759282112","width":2000},{"alt":null,"id":26110461313123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21c8fc6b793bcd654ca6b06605b59c02d69c51f6.webp?v=1759282113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21c8fc6b793bcd654ca6b06605b59c02d69c51f6.webp?v=1759282113","width":2000},{"alt":null,"id":26110461378659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97cd6962cd5e4d65e61c18ad5f279191d3b2d151.webp?v=1759282113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97cd6962cd5e4d65e61c18ad5f279191d3b2d151.webp?v=1759282113","width":2000},{"alt":null,"id":26110461476963,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e25c2b2c32d2b31874fb019eb862dda3c6825c.webp?v=1759282114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14e25c2b2c32d2b31874fb019eb862dda3c6825c.webp?v=1759282114","width":2000},{"alt":null,"id":26110461608035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb83dfb3e401059b5e329da1894d6935facd7638.webp?v=1759282114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb83dfb3e401059b5e329da1894d6935facd7638.webp?v=1759282114","width":2000},{"alt":null,"id":26110461706339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e32b493b59db9c207a01b9ad9a75aa7c833481d.webp?v=1759282115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e32b493b59db9c207a01b9ad9a75aa7c833481d.webp?v=1759282115","width":2000},{"alt":null,"id":26110461739107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f327fbd363ed84f7fb0be887b5d5c4a7f417bdac.webp?v=1759282115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f327fbd363ed84f7fb0be887b5d5c4a7f417bdac.webp?v=1759282115","width":2000},{"alt":null,"id":26110461968483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45fbbb2b7e1a0496f83b4d7854548b74f8ef6d0.webp?v=1759282116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45fbbb2b7e1a0496f83b4d7854548b74f8ef6d0.webp?v=1759282116","width":2000},{"alt":null,"id":26110462165091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a9ba728274b62fde84a9741aeaedbce34d29a86.webp?v=1759282117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a9ba728274b62fde84a9741aeaedbce34d29a86.webp?v=1759282117","width":2000},{"alt":null,"id":26110462394467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad8c102ee03cdcb459b6f169d6e64ddefdde0c.webp?v=1759282118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad8c102ee03cdcb459b6f169d6e64ddefdde0c.webp?v=1759282118","width":2000},{"alt":null,"id":26110462591075,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8320b4c1970f02a9f886f294bf653d01a616d52.webp?v=1759282118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8320b4c1970f02a9f886f294bf653d01a616d52.webp?v=1759282118","width":2000},{"alt":null,"id":26110462754915,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e542dcafbc2428005a961655414de9c7a75d73de.webp?v=1759282119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e542dcafbc2428005a961655414de9c7a75d73de.webp?v=1759282119","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43754424074339,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540695257187,"product_id":7892083507299,"position":11,"created_at":"2025-10-01T09:28:36+08:00","updated_at":"2025-10-01T09:28:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad8c102ee03cdcb459b6f169d6e64ddefdde0c.webp?v=1759282118","variant_ids":[43754424074339]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - 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-FW57","featured_media":{"alt":null,"id":26110462394467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad8c102ee03cdcb459b6f169d6e64ddefdde0c.webp?v=1759282118"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43754424074339,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FW57","requires_shipping":true,"taxable":true,"featured_image":{"id":34540695257187,"product_id":7892083507299,"position":11,"created_at":"2025-10-01T09:28:36+08:00","updated_at":"2025-10-01T09:28:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad8c102ee03cdcb459b6f169d6e64ddefdde0c.webp?v=1759282118","variant_ids":[43754424074339]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 咻咻熊 蛋糕日 - 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-FW57","featured_media":{"alt":null,"id":26110462394467,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad8c102ee03cdcb459b6f169d6e64ddefdde0c.webp?v=1759282118"}},"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: "停產" }