$product = {"id":7876112842851,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 愛了愛了","handle":"iphone-14-plus-mod-nx-magsafe-printable-ea107","description":null,"published_at":"2025-09-04T09:43:05+08:00","created_at":"2025-09-03T12:04:28+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-songsongmeow","device-iPhone 14 Plus","merge","reseller-songsongmeow"],"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":43675464433763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416424222819,"product_id":7876112842851,"position":7,"created_at":"2025-09-03T12:04:38+08:00","updated_at":"2025-09-03T12:04:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da7b5cf3422cc113c3df0324030a54671c86b9a.webp?v=1756872279","variant_ids":[43675464433763]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 愛了愛了 - 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-EA107","featured_media":{"alt":null,"id":25988698701923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da7b5cf3422cc113c3df0324030a54671c86b9a.webp?v=1756872279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12830184d60defb90a012d4d9568f60d6315b58f.webp?v=1756872275","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b308e588e950a7e546fe936bfe07acff24e7b8d7.webp?v=1756872276","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea3be020218f9bd48390ac2e2566bffa401b333.webp?v=1756872277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99424f625d0af04d27630352c056c9c35eadc5dd.webp?v=1756872277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf334dd5a34132c7a7a59f2977d65cdb43f4ded.webp?v=1756872278","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701806be16e3db0bd4809a930a578650a3badbd.webp?v=1756872279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da7b5cf3422cc113c3df0324030a54671c86b9a.webp?v=1756872279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d14e6438c3b99c34d3fd67819f5d0730d1e2016.webp?v=1756872280","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89d3fac4306d13e3196f5b726f68b40f1e70a317.webp?v=1756872281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b31910402ab859687544b08b0453e36f17a84284.webp?v=1756872282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ebbaa35659b9183009254f1c3b756c14319632a.webp?v=1756872283","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dea4a1a2b03d4f2d6f2c949a6041462335796eba.webp?v=1756872284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420fd45e693da0240f5ce7e3e327d57f431093ec.webp?v=1756872284"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12830184d60defb90a012d4d9568f60d6315b58f.webp?v=1756872275","options":["color"],"media":[{"alt":null,"id":25988697194595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12830184d60defb90a012d4d9568f60d6315b58f.webp?v=1756872275"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12830184d60defb90a012d4d9568f60d6315b58f.webp?v=1756872275","width":2000},{"alt":null,"id":25988697423971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b308e588e950a7e546fe936bfe07acff24e7b8d7.webp?v=1756872276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b308e588e950a7e546fe936bfe07acff24e7b8d7.webp?v=1756872276","width":2000},{"alt":null,"id":25988697620579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea3be020218f9bd48390ac2e2566bffa401b333.webp?v=1756872277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea3be020218f9bd48390ac2e2566bffa401b333.webp?v=1756872277","width":2000},{"alt":null,"id":25988697948259,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99424f625d0af04d27630352c056c9c35eadc5dd.webp?v=1756872277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99424f625d0af04d27630352c056c9c35eadc5dd.webp?v=1756872277","width":2000},{"alt":null,"id":25988698243171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf334dd5a34132c7a7a59f2977d65cdb43f4ded.webp?v=1756872278"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddf334dd5a34132c7a7a59f2977d65cdb43f4ded.webp?v=1756872278","width":2000},{"alt":null,"id":25988698505315,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701806be16e3db0bd4809a930a578650a3badbd.webp?v=1756872279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5701806be16e3db0bd4809a930a578650a3badbd.webp?v=1756872279","width":2000},{"alt":null,"id":25988698701923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da7b5cf3422cc113c3df0324030a54671c86b9a.webp?v=1756872279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da7b5cf3422cc113c3df0324030a54671c86b9a.webp?v=1756872279","width":2000},{"alt":null,"id":25988698931299,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d14e6438c3b99c34d3fd67819f5d0730d1e2016.webp?v=1756872280"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d14e6438c3b99c34d3fd67819f5d0730d1e2016.webp?v=1756872280","width":2000},{"alt":null,"id":25988699127907,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89d3fac4306d13e3196f5b726f68b40f1e70a317.webp?v=1756872281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89d3fac4306d13e3196f5b726f68b40f1e70a317.webp?v=1756872281","width":2000},{"alt":null,"id":25988699258979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b31910402ab859687544b08b0453e36f17a84284.webp?v=1756872282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b31910402ab859687544b08b0453e36f17a84284.webp?v=1756872282","width":2000},{"alt":null,"id":25988699521123,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ebbaa35659b9183009254f1c3b756c14319632a.webp?v=1756872283"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ebbaa35659b9183009254f1c3b756c14319632a.webp?v=1756872283","width":2000},{"alt":null,"id":25988699783267,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dea4a1a2b03d4f2d6f2c949a6041462335796eba.webp?v=1756872284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dea4a1a2b03d4f2d6f2c949a6041462335796eba.webp?v=1756872284","width":2000},{"alt":null,"id":25988699881571,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420fd45e693da0240f5ce7e3e327d57f431093ec.webp?v=1756872284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/420fd45e693da0240f5ce7e3e327d57f431093ec.webp?v=1756872284","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":43675464433763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416424222819,"product_id":7876112842851,"position":7,"created_at":"2025-09-03T12:04:38+08:00","updated_at":"2025-09-03T12:04:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da7b5cf3422cc113c3df0324030a54671c86b9a.webp?v=1756872279","variant_ids":[43675464433763]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 愛了愛了 - 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-EA107","featured_media":{"alt":null,"id":25988698701923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da7b5cf3422cc113c3df0324030a54671c86b9a.webp?v=1756872279"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":43675464433763,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-EA107","requires_shipping":true,"taxable":true,"featured_image":{"id":34416424222819,"product_id":7876112842851,"position":7,"created_at":"2025-09-03T12:04:38+08:00","updated_at":"2025-09-03T12:04:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da7b5cf3422cc113c3df0324030a54671c86b9a.webp?v=1756872279","variant_ids":[43675464433763]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 爽爽貓 by SECOND 愛了愛了 - 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-EA107","featured_media":{"alt":null,"id":25988698701923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2da7b5cf3422cc113c3df0324030a54671c86b9a.webp?v=1756872279"}},"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: "停產" }