$product = {"id":7848021295203,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Selfie Time","handle":"iphone-14-plus-mod-nx-magsafe-bumper-crossover-design-fv66","description":null,"published_at":"2025-08-07T09:23:16+08:00","created_at":"2025-08-05T09:35:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-hijohnnn","device-iPhone 14 Plus","merge","reseller-hijohnnn"],"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":43562786848867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FV66","requires_shipping":true,"taxable":true,"featured_image":{"id":34287644180579,"product_id":7848021295203,"position":3,"created_at":"2025-08-05T09:35:58+08:00","updated_at":"2025-08-05T09:36:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a739ca066d1be1a6e2a46df155d7a0fda5a5ceb.webp?v=1754357760","variant_ids":[43562786848867]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Selfie Time - 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-FV66","featured_media":{"alt":null,"id":25888771014755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a739ca066d1be1a6e2a46df155d7a0fda5a5ceb.webp?v=1754357760"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6cd7df7ff24f9a37dec63685c0f0ac703859a3.webp?v=1754357759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c151e950e8b6812de1d0cfe9f7b4504327ac963.webp?v=1754357759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a739ca066d1be1a6e2a46df155d7a0fda5a5ceb.webp?v=1754357760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5600addacb1c42cd782edac2cb5a97863b9e08c7.webp?v=1754357760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/817680663f01f7e02eafef424fcdca44d67b97aa.webp?v=1754357761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ba6c1a8b62339d8d46cdc1e3ab8a91e4ff57f21.webp?v=1754357761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ec8a8d6321a4025045a43ec30d84ce66ae847f.webp?v=1754357762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2c28e7ef8890a344cf3b3d6842f66bdf74c106.webp?v=1754357762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7f5eea0a5106c86e04d91b23e4d6bc71e3673af.webp?v=1754357763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f46af31c84db484516523128f2d894a1d82c4b9.webp?v=1754357766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afd06aa9703f58d8d4ede59911d546d4864793c9.webp?v=1754357765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090a1283c7c000a7864b2146b2b9d204dcb8c3b6.webp?v=1754357765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ee082009a8523fb3e9f771422e719c28bdf7e17.webp?v=1754357766"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6cd7df7ff24f9a37dec63685c0f0ac703859a3.webp?v=1754357759","options":["color"],"media":[{"alt":null,"id":25888770654307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6cd7df7ff24f9a37dec63685c0f0ac703859a3.webp?v=1754357759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c6cd7df7ff24f9a37dec63685c0f0ac703859a3.webp?v=1754357759","width":2000},{"alt":null,"id":25888770818147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c151e950e8b6812de1d0cfe9f7b4504327ac963.webp?v=1754357759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c151e950e8b6812de1d0cfe9f7b4504327ac963.webp?v=1754357759","width":2000},{"alt":null,"id":25888771014755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a739ca066d1be1a6e2a46df155d7a0fda5a5ceb.webp?v=1754357760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a739ca066d1be1a6e2a46df155d7a0fda5a5ceb.webp?v=1754357760","width":2000},{"alt":null,"id":25888771244131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5600addacb1c42cd782edac2cb5a97863b9e08c7.webp?v=1754357760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5600addacb1c42cd782edac2cb5a97863b9e08c7.webp?v=1754357760","width":2000},{"alt":null,"id":25888771440739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/817680663f01f7e02eafef424fcdca44d67b97aa.webp?v=1754357761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/817680663f01f7e02eafef424fcdca44d67b97aa.webp?v=1754357761","width":2000},{"alt":null,"id":25888771539043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ba6c1a8b62339d8d46cdc1e3ab8a91e4ff57f21.webp?v=1754357761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ba6c1a8b62339d8d46cdc1e3ab8a91e4ff57f21.webp?v=1754357761","width":2000},{"alt":null,"id":25888771702883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ec8a8d6321a4025045a43ec30d84ce66ae847f.webp?v=1754357762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54ec8a8d6321a4025045a43ec30d84ce66ae847f.webp?v=1754357762","width":2000},{"alt":null,"id":25888771965027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2c28e7ef8890a344cf3b3d6842f66bdf74c106.webp?v=1754357762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea2c28e7ef8890a344cf3b3d6842f66bdf74c106.webp?v=1754357762","width":2000},{"alt":null,"id":25888772194403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7f5eea0a5106c86e04d91b23e4d6bc71e3673af.webp?v=1754357763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7f5eea0a5106c86e04d91b23e4d6bc71e3673af.webp?v=1754357763","width":2000},{"alt":null,"id":25888772391011,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f46af31c84db484516523128f2d894a1d82c4b9.webp?v=1754357766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f46af31c84db484516523128f2d894a1d82c4b9.webp?v=1754357766","width":2000},{"alt":null,"id":25888772554851,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afd06aa9703f58d8d4ede59911d546d4864793c9.webp?v=1754357765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afd06aa9703f58d8d4ede59911d546d4864793c9.webp?v=1754357765","width":2000},{"alt":null,"id":25888772718691,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090a1283c7c000a7864b2146b2b9d204dcb8c3b6.webp?v=1754357765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/090a1283c7c000a7864b2146b2b9d204dcb8c3b6.webp?v=1754357765","width":2000},{"alt":null,"id":25888772980835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ee082009a8523fb3e9f771422e719c28bdf7e17.webp?v=1754357766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ee082009a8523fb3e9f771422e719c28bdf7e17.webp?v=1754357766","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43562786848867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FV66","requires_shipping":true,"taxable":true,"featured_image":{"id":34287644180579,"product_id":7848021295203,"position":3,"created_at":"2025-08-05T09:35:58+08:00","updated_at":"2025-08-05T09:36:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a739ca066d1be1a6e2a46df155d7a0fda5a5ceb.webp?v=1754357760","variant_ids":[43562786848867]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Selfie Time - 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-FV66","featured_media":{"alt":null,"id":25888771014755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a739ca066d1be1a6e2a46df155d7a0fda5a5ceb.webp?v=1754357760"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43562786848867,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-FV66","requires_shipping":true,"taxable":true,"featured_image":{"id":34287644180579,"product_id":7848021295203,"position":3,"created_at":"2025-08-05T09:35:58+08:00","updated_at":"2025-08-05T09:36:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a739ca066d1be1a6e2a46df155d7a0fda5a5ceb.webp?v=1754357760","variant_ids":[43562786848867]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 嗨小強 Selfie Time - 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-FV66","featured_media":{"alt":null,"id":25888771014755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a739ca066d1be1a6e2a46df155d7a0fda5a5ceb.webp?v=1754357760"}},"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: "停產" }