$product = {"id":7411403358307,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 願傷疤開花(花蓮)","handle":"iphone-14-plus-mod-nx-magsafe-printable-ae02","description":null,"published_at":"2024-06-11T17:44:02+08:00","created_at":"2024-05-05T00:23:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 14 Plus","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe-chi-po-lin-series","Top50","type-Mod NX Printable MagSafe Printable"],"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":41898444685411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480338415715,"product_id":7411403358307,"position":1,"created_at":"2024-05-05T00:23:05+08:00","updated_at":"2024-05-05T00:23:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785","variant_ids":[41898444685411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 願傷疤開花(花蓮) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AE02","featured_media":{"alt":null,"id":23885590069347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9544ed3dba86d09bb8af9ca1479d3b7e6809ccb_086974e7-7947-417b-9766-3312430d2af5.webp?v=1714839787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a6c35e0eff276621ce497a679388c418fce81d_0403f54b-d46a-4374-a531-1f70c33338e6.webp?v=1714839790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0abc248773f62dc9dc4b517e3ec207821fae866b_5174e33e-13f4-4c9d-ad6b-a9ac6c096aed.webp?v=1714839792","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33261dd63cc95159c065cdc28e8f61813112780_bf10ea20-7630-44d6-8aa4-34401da1d9c7.webp?v=1714839795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9671b9686af666e4ab8e0dac21dd0dd7b5fc949_f303e2ed-46ac-436c-a4a1-617919e8b2f3.webp?v=1714839797","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e6c6c6d6755dfe0d943c46479abbbfc09e8f68_923c092f-deb5-4dae-9200-66fa007b2025.webp?v=1714839800","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace89c13826b3914e5eaf19312da0e682b79ffbe_bae02f39-8fc5-43b4-8f40-dbfbaa16f9f7.webp?v=1714839802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a964a80e32b89d7a5f5d8b8a6c72c739b626b2_39beae4a-bd14-4d02-bac1-861d951dbc67.webp?v=1714839804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55065611c746d2d496756b5ac3402776c181974a_e2f3c47d-25aa-434e-b705-3ec1460042be.webp?v=1714839807"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785","options":["color"],"media":[{"alt":null,"id":23885590069347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785","width":2000},{"alt":null,"id":23885590495331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9544ed3dba86d09bb8af9ca1479d3b7e6809ccb_086974e7-7947-417b-9766-3312430d2af5.webp?v=1714839787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9544ed3dba86d09bb8af9ca1479d3b7e6809ccb_086974e7-7947-417b-9766-3312430d2af5.webp?v=1714839787","width":2000},{"alt":null,"id":23885591150691,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a6c35e0eff276621ce497a679388c418fce81d_0403f54b-d46a-4374-a531-1f70c33338e6.webp?v=1714839790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53a6c35e0eff276621ce497a679388c418fce81d_0403f54b-d46a-4374-a531-1f70c33338e6.webp?v=1714839790","width":2000},{"alt":null,"id":23885591642211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0abc248773f62dc9dc4b517e3ec207821fae866b_5174e33e-13f4-4c9d-ad6b-a9ac6c096aed.webp?v=1714839792"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0abc248773f62dc9dc4b517e3ec207821fae866b_5174e33e-13f4-4c9d-ad6b-a9ac6c096aed.webp?v=1714839792","width":2000},{"alt":null,"id":23885592330339,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33261dd63cc95159c065cdc28e8f61813112780_bf10ea20-7630-44d6-8aa4-34401da1d9c7.webp?v=1714839795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d33261dd63cc95159c065cdc28e8f61813112780_bf10ea20-7630-44d6-8aa4-34401da1d9c7.webp?v=1714839795","width":2000},{"alt":null,"id":23885592821859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9671b9686af666e4ab8e0dac21dd0dd7b5fc949_f303e2ed-46ac-436c-a4a1-617919e8b2f3.webp?v=1714839797"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9671b9686af666e4ab8e0dac21dd0dd7b5fc949_f303e2ed-46ac-436c-a4a1-617919e8b2f3.webp?v=1714839797","width":2000},{"alt":null,"id":23885593313379,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e6c6c6d6755dfe0d943c46479abbbfc09e8f68_923c092f-deb5-4dae-9200-66fa007b2025.webp?v=1714839800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e6c6c6d6755dfe0d943c46479abbbfc09e8f68_923c092f-deb5-4dae-9200-66fa007b2025.webp?v=1714839800","width":2000},{"alt":null,"id":23885593772131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace89c13826b3914e5eaf19312da0e682b79ffbe_bae02f39-8fc5-43b4-8f40-dbfbaa16f9f7.webp?v=1714839802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ace89c13826b3914e5eaf19312da0e682b79ffbe_bae02f39-8fc5-43b4-8f40-dbfbaa16f9f7.webp?v=1714839802","width":2000},{"alt":null,"id":23885594230883,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a964a80e32b89d7a5f5d8b8a6c72c739b626b2_39beae4a-bd14-4d02-bac1-861d951dbc67.webp?v=1714839804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02a964a80e32b89d7a5f5d8b8a6c72c739b626b2_39beae4a-bd14-4d02-bac1-861d951dbc67.webp?v=1714839804","width":2000},{"alt":null,"id":23885594656867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55065611c746d2d496756b5ac3402776c181974a_e2f3c47d-25aa-434e-b705-3ec1460042be.webp?v=1714839807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55065611c746d2d496756b5ac3402776c181974a_e2f3c47d-25aa-434e-b705-3ec1460042be.webp?v=1714839807","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898444685411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480338415715,"product_id":7411403358307,"position":1,"created_at":"2024-05-05T00:23:05+08:00","updated_at":"2024-05-05T00:23:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785","variant_ids":[41898444685411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 願傷疤開花(花蓮) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AE02","featured_media":{"alt":null,"id":23885590069347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898444685411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-AE02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480338415715,"product_id":7411403358307,"position":1,"created_at":"2024-05-05T00:23:05+08:00","updated_at":"2024-05-05T00:23:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785","variant_ids":[41898444685411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 【獨家設計款】 - 願傷疤開花(花蓮) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-AE02","featured_media":{"alt":null,"id":23885590069347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44d2bd4dd9e2dd54c5f9d016beea1bb357dc22cd_3cc81497-1d4a-4059-ad52-3e14952400ac.webp?v=1714839785"}},"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: "停產" }