$product = {"id":7876181655651,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點","handle":"iphone-14-plus-mod-nx-magsafe-printable-em48","description":null,"published_at":"2025-09-04T09:10:22+08:00","created_at":"2025-09-03T12:23:01+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiaolaofu","device-iPhone 14 Plus","merge","reseller-xiaolaofu"],"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":43675748270179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416713859171,"product_id":7876181655651,"position":2,"created_at":"2025-09-03T12:23:05+08:00","updated_at":"2025-09-03T12:23:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b6b979b08f9a13610f5cae98fe1b4cf54314b6.webp?v=1756873387","variant_ids":[43675748270179]},"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-EM48","featured_media":{"alt":null,"id":25988988567651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b6b979b08f9a13610f5cae98fe1b4cf54314b6.webp?v=1756873387"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd8f9b6890c735e9c10b83c4da2af2123e2ddb8c.webp?v=1756873386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b6b979b08f9a13610f5cae98fe1b4cf54314b6.webp?v=1756873387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e850e0a07d48b38bda005c256938103d8326e1d.webp?v=1756873388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcea7d68d171947499695a52cb872bd0cf18651d.webp?v=1756873389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57da0d2e567d4c3f7a2f1f775c6d9ac435ffdba6.webp?v=1756873390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32c2f0ff9678e0ff84e951bbc47bbbf922bc555b.webp?v=1756873391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3243bb6e71da85e288f5de196455516a8b518f50.webp?v=1756873392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/597a5e80a16b653fb11f67f4144bb8c00d7f6376.webp?v=1756873392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69617e77cac4de38f9eb6883a9c76764fd4f7ebc.webp?v=1756873393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/544eaad8253891e60209034478729de0b01a6ba5.webp?v=1756873394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a772b2ddccd06881478854e4d1f283946f6aa327.webp?v=1756873395","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/723471174f9032773f80096e60f40502172eb5ea.webp?v=1756873396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd46d7aee2c641a21b09e00586718698d58a6bc3.webp?v=1756873396"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd8f9b6890c735e9c10b83c4da2af2123e2ddb8c.webp?v=1756873386","options":["color"],"media":[{"alt":null,"id":25988988371043,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd8f9b6890c735e9c10b83c4da2af2123e2ddb8c.webp?v=1756873386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd8f9b6890c735e9c10b83c4da2af2123e2ddb8c.webp?v=1756873386","width":2000},{"alt":null,"id":25988988567651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b6b979b08f9a13610f5cae98fe1b4cf54314b6.webp?v=1756873387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b6b979b08f9a13610f5cae98fe1b4cf54314b6.webp?v=1756873387","width":2000},{"alt":null,"id":25988988829795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e850e0a07d48b38bda005c256938103d8326e1d.webp?v=1756873388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e850e0a07d48b38bda005c256938103d8326e1d.webp?v=1756873388","width":2000},{"alt":null,"id":25988988993635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcea7d68d171947499695a52cb872bd0cf18651d.webp?v=1756873389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcea7d68d171947499695a52cb872bd0cf18651d.webp?v=1756873389","width":2000},{"alt":null,"id":25988989223011,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57da0d2e567d4c3f7a2f1f775c6d9ac435ffdba6.webp?v=1756873390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57da0d2e567d4c3f7a2f1f775c6d9ac435ffdba6.webp?v=1756873390","width":2000},{"alt":null,"id":25988989714531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32c2f0ff9678e0ff84e951bbc47bbbf922bc555b.webp?v=1756873391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32c2f0ff9678e0ff84e951bbc47bbbf922bc555b.webp?v=1756873391","width":2000},{"alt":null,"id":25988989878371,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3243bb6e71da85e288f5de196455516a8b518f50.webp?v=1756873392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3243bb6e71da85e288f5de196455516a8b518f50.webp?v=1756873392","width":2000},{"alt":null,"id":25988990173283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/597a5e80a16b653fb11f67f4144bb8c00d7f6376.webp?v=1756873392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/597a5e80a16b653fb11f67f4144bb8c00d7f6376.webp?v=1756873392","width":2000},{"alt":null,"id":25988990435427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69617e77cac4de38f9eb6883a9c76764fd4f7ebc.webp?v=1756873393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69617e77cac4de38f9eb6883a9c76764fd4f7ebc.webp?v=1756873393","width":2000},{"alt":null,"id":25988990664803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/544eaad8253891e60209034478729de0b01a6ba5.webp?v=1756873394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/544eaad8253891e60209034478729de0b01a6ba5.webp?v=1756873394","width":2000},{"alt":null,"id":25988990861411,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a772b2ddccd06881478854e4d1f283946f6aa327.webp?v=1756873395"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a772b2ddccd06881478854e4d1f283946f6aa327.webp?v=1756873395","width":2000},{"alt":null,"id":25988991156323,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/723471174f9032773f80096e60f40502172eb5ea.webp?v=1756873396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/723471174f9032773f80096e60f40502172eb5ea.webp?v=1756873396","width":2000},{"alt":null,"id":25988991320163,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd46d7aee2c641a21b09e00586718698d58a6bc3.webp?v=1756873396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd46d7aee2c641a21b09e00586718698d58a6bc3.webp?v=1756873396","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675748270179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416713859171,"product_id":7876181655651,"position":2,"created_at":"2025-09-03T12:23:05+08:00","updated_at":"2025-09-03T12:23:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b6b979b08f9a13610f5cae98fe1b4cf54314b6.webp?v=1756873387","variant_ids":[43675748270179]},"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-EM48","featured_media":{"alt":null,"id":25988988567651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b6b979b08f9a13610f5cae98fe1b4cf54314b6.webp?v=1756873387"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675748270179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416713859171,"product_id":7876181655651,"position":2,"created_at":"2025-09-03T12:23:05+08:00","updated_at":"2025-09-03T12:23:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b6b979b08f9a13610f5cae98fe1b4cf54314b6.webp?v=1756873387","variant_ids":[43675748270179]},"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-EM48","featured_media":{"alt":null,"id":25988988567651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b6b979b08f9a13610f5cae98fe1b4cf54314b6.webp?v=1756873387"}},"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: "停產" }