$product = {"id":7407945646179,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭貓貓","handle":"iphone-14-plus-mod-nx-printable-hq01","description":null,"published_at":"2024-06-11T16:27:16+08:00","created_at":"2024-05-03T11:21:09+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-pixeljeff","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41880872779875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470769176675,"product_id":7407945646179,"position":6,"created_at":"2024-05-03T11:21:23+08:00","updated_at":"2024-05-03T11:21:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8950701b218057ee21617eaa7a0430dbd2b1264_35592d7d-0539-4966-b48f-c75050de0c29.webp?v=1714706483","variant_ids":[41880872779875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-HQ01","featured_media":{"alt":null,"id":23875673423971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8950701b218057ee21617eaa7a0430dbd2b1264_35592d7d-0539-4966-b48f-c75050de0c29.webp?v=1714706483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23ee04c0f6d557e9b11662332e878098f3f325_36090eb5-4bd9-4e46-a58a-e5339579a5c9.webp?v=1714706472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e6c37e557b5549a2d007da18c76f6c3a69a3b_e3292ce8-6e66-48b7-acd7-5de53f233e70.webp?v=1714706474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e829e6640364564ed55afcabe68e731b407aa77_70e87029-3db6-46b2-9228-628345c3d7a4.webp?v=1714706476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/956c915421bd929f469943b6c590226a0a1a9177_e1caa6eb-b6ff-46d1-bfbd-b7a70c53ea0c.webp?v=1714706479","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191136bdbe82eedf7d4270aa8ad11ff1a35fbf5e_ebbf1058-5367-451a-897d-566c6018ca4c.webp?v=1714706481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8950701b218057ee21617eaa7a0430dbd2b1264_35592d7d-0539-4966-b48f-c75050de0c29.webp?v=1714706483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4642930bf3634d530be9950f47b2713d653fb44b_d28fea1c-c519-4e38-9fc0-0b6f7894e0bd.webp?v=1714706485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10007cbefc6e4f553df3d128f61c6409ce07e675_472bf770-e24d-4935-a3ef-a37f4ddaf187.webp?v=1714706488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76287fc6dca82d63818ced85108b1e83b93d059_2e4e07df-517d-47f0-8c6e-642eb0f650a7.webp?v=1714706490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d00d62de59002e233989337c781cf11e5e0597_83492680-88cd-4551-a927-dee8fd7af6cb.webp?v=1714706493"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23ee04c0f6d557e9b11662332e878098f3f325_36090eb5-4bd9-4e46-a58a-e5339579a5c9.webp?v=1714706472","options":["color"],"media":[{"alt":null,"id":23875671228515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23ee04c0f6d557e9b11662332e878098f3f325_36090eb5-4bd9-4e46-a58a-e5339579a5c9.webp?v=1714706472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a23ee04c0f6d557e9b11662332e878098f3f325_36090eb5-4bd9-4e46-a58a-e5339579a5c9.webp?v=1714706472","width":2000},{"alt":null,"id":23875671785571,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e6c37e557b5549a2d007da18c76f6c3a69a3b_e3292ce8-6e66-48b7-acd7-5de53f233e70.webp?v=1714706474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af6e6c37e557b5549a2d007da18c76f6c3a69a3b_e3292ce8-6e66-48b7-acd7-5de53f233e70.webp?v=1714706474","width":2000},{"alt":null,"id":23875672014947,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e829e6640364564ed55afcabe68e731b407aa77_70e87029-3db6-46b2-9228-628345c3d7a4.webp?v=1714706476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e829e6640364564ed55afcabe68e731b407aa77_70e87029-3db6-46b2-9228-628345c3d7a4.webp?v=1714706476","width":2000},{"alt":null,"id":23875672572003,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/956c915421bd929f469943b6c590226a0a1a9177_e1caa6eb-b6ff-46d1-bfbd-b7a70c53ea0c.webp?v=1714706479"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/956c915421bd929f469943b6c590226a0a1a9177_e1caa6eb-b6ff-46d1-bfbd-b7a70c53ea0c.webp?v=1714706479","width":2000},{"alt":null,"id":23875672965219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191136bdbe82eedf7d4270aa8ad11ff1a35fbf5e_ebbf1058-5367-451a-897d-566c6018ca4c.webp?v=1714706481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191136bdbe82eedf7d4270aa8ad11ff1a35fbf5e_ebbf1058-5367-451a-897d-566c6018ca4c.webp?v=1714706481","width":2000},{"alt":null,"id":23875673423971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8950701b218057ee21617eaa7a0430dbd2b1264_35592d7d-0539-4966-b48f-c75050de0c29.webp?v=1714706483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8950701b218057ee21617eaa7a0430dbd2b1264_35592d7d-0539-4966-b48f-c75050de0c29.webp?v=1714706483","width":2000},{"alt":null,"id":23875673849955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4642930bf3634d530be9950f47b2713d653fb44b_d28fea1c-c519-4e38-9fc0-0b6f7894e0bd.webp?v=1714706485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4642930bf3634d530be9950f47b2713d653fb44b_d28fea1c-c519-4e38-9fc0-0b6f7894e0bd.webp?v=1714706485","width":2000},{"alt":null,"id":23875674439779,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10007cbefc6e4f553df3d128f61c6409ce07e675_472bf770-e24d-4935-a3ef-a37f4ddaf187.webp?v=1714706488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10007cbefc6e4f553df3d128f61c6409ce07e675_472bf770-e24d-4935-a3ef-a37f4ddaf187.webp?v=1714706488","width":2000},{"alt":null,"id":23875674865763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76287fc6dca82d63818ced85108b1e83b93d059_2e4e07df-517d-47f0-8c6e-642eb0f650a7.webp?v=1714706490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d76287fc6dca82d63818ced85108b1e83b93d059_2e4e07df-517d-47f0-8c6e-642eb0f650a7.webp?v=1714706490","width":2000},{"alt":null,"id":23875675324515,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d00d62de59002e233989337c781cf11e5e0597_83492680-88cd-4551-a927-dee8fd7af6cb.webp?v=1714706493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04d00d62de59002e233989337c781cf11e5e0597_83492680-88cd-4551-a927-dee8fd7af6cb.webp?v=1714706493","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880872779875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470769176675,"product_id":7407945646179,"position":6,"created_at":"2024-05-03T11:21:23+08:00","updated_at":"2024-05-03T11:21:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8950701b218057ee21617eaa7a0430dbd2b1264_35592d7d-0539-4966-b48f-c75050de0c29.webp?v=1714706483","variant_ids":[41880872779875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-HQ01","featured_media":{"alt":null,"id":23875673423971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8950701b218057ee21617eaa7a0430dbd2b1264_35592d7d-0539-4966-b48f-c75050de0c29.webp?v=1714706483"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880872779875,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31470769176675,"product_id":7407945646179,"position":6,"created_at":"2024-05-03T11:21:23+08:00","updated_at":"2024-05-03T11:21:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8950701b218057ee21617eaa7a0430dbd2b1264_35592d7d-0539-4966-b48f-c75050de0c29.webp?v=1714706483","variant_ids":[41880872779875]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-HQ01","featured_media":{"alt":null,"id":23875673423971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8950701b218057ee21617eaa7a0430dbd2b1264_35592d7d-0539-4966-b48f-c75050de0c29.webp?v=1714706483"}},"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: "停產" }