$product = {"id":7369151545443,"title":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 曬太陽","handle":"iphone-11-pro-max-mod-nx-printable-pl63","description":"","published_at":"2024-06-11T16:13:21+08:00","created_at":"2024-04-23T15:34:16+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 11 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-snoopy","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":41793067155555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386922877027,"product_id":7369151545443,"position":5,"created_at":"2024-04-23T15:34:32+08:00","updated_at":"2025-01-22T15:00:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/762919537333a0e316c0603263fbf81b7d9ddd5d_dd471a4c-a453-4d8b-a2ea-3b681870f846.webp?v=1737529257","variant_ids":[41793067155555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 曬太陽 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-PL63","featured_media":{"alt":null,"id":23789160890467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/762919537333a0e316c0603263fbf81b7d9ddd5d_dd471a4c-a453-4d8b-a2ea-3b681870f846.webp?v=1737529257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd1d15d0f54c022cf8fc69f31e75fe18969e6c62_a1d4b27c-9498-4a47-bfa6-27821f68cd8d.webp?v=1737529257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a74ccc7816ca39954894e5f4761ec26f8a243c_32c334e0-dbb0-4f1c-99a6-91d82c55ddbb.webp?v=1737529257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79288e407f0692aade5b3a99e3f91d9d36002c79_a390e937-bffd-437a-a661-973b8c70d0e6.webp?v=1737529257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9de0c994df07941e4003786b6fb80385da431c26_4d3996e7-25d2-4799-85fa-d6cd4f6e3eac.webp?v=1737529257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/762919537333a0e316c0603263fbf81b7d9ddd5d_dd471a4c-a453-4d8b-a2ea-3b681870f846.webp?v=1737529257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7341a9dd2f70284be2eeba9679abe5abe8feb7f9_49f9ab9e-8dc8-4e6b-96f6-3a57da80fa3d.webp?v=1737529257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87aa89f95c74ab3689d4682e995da6592a2b4979_aa76f461-a124-4dbd-87d7-47e1c4decf4a.webp?v=1737529257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ff297049cf17cb22e4b1a4fd5f02dd009feebc6_37e5c33c-2dd1-46b6-8896-9a321de2b9de.webp?v=1737529257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b102b3c2e93c5329710e19865090f02aac354a_e1fd2e1d-0b56-4fae-b72a-cd1c2ce7015e.webp?v=1737529257"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd1d15d0f54c022cf8fc69f31e75fe18969e6c62_a1d4b27c-9498-4a47-bfa6-27821f68cd8d.webp?v=1737529257","options":["color"],"media":[{"alt":null,"id":23789157220451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd1d15d0f54c022cf8fc69f31e75fe18969e6c62_a1d4b27c-9498-4a47-bfa6-27821f68cd8d.webp?v=1737529257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd1d15d0f54c022cf8fc69f31e75fe18969e6c62_a1d4b27c-9498-4a47-bfa6-27821f68cd8d.webp?v=1737529257","width":2000},{"alt":null,"id":23789158072419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a74ccc7816ca39954894e5f4761ec26f8a243c_32c334e0-dbb0-4f1c-99a6-91d82c55ddbb.webp?v=1737529257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a74ccc7816ca39954894e5f4761ec26f8a243c_32c334e0-dbb0-4f1c-99a6-91d82c55ddbb.webp?v=1737529257","width":2000},{"alt":null,"id":23789158989923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79288e407f0692aade5b3a99e3f91d9d36002c79_a390e937-bffd-437a-a661-973b8c70d0e6.webp?v=1737529257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79288e407f0692aade5b3a99e3f91d9d36002c79_a390e937-bffd-437a-a661-973b8c70d0e6.webp?v=1737529257","width":2000},{"alt":null,"id":23789159710819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9de0c994df07941e4003786b6fb80385da431c26_4d3996e7-25d2-4799-85fa-d6cd4f6e3eac.webp?v=1737529257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9de0c994df07941e4003786b6fb80385da431c26_4d3996e7-25d2-4799-85fa-d6cd4f6e3eac.webp?v=1737529257","width":2000},{"alt":null,"id":23789160890467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/762919537333a0e316c0603263fbf81b7d9ddd5d_dd471a4c-a453-4d8b-a2ea-3b681870f846.webp?v=1737529257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/762919537333a0e316c0603263fbf81b7d9ddd5d_dd471a4c-a453-4d8b-a2ea-3b681870f846.webp?v=1737529257","width":2000},{"alt":null,"id":23789162299491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7341a9dd2f70284be2eeba9679abe5abe8feb7f9_49f9ab9e-8dc8-4e6b-96f6-3a57da80fa3d.webp?v=1737529257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7341a9dd2f70284be2eeba9679abe5abe8feb7f9_49f9ab9e-8dc8-4e6b-96f6-3a57da80fa3d.webp?v=1737529257","width":2000},{"alt":null,"id":23789162922083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87aa89f95c74ab3689d4682e995da6592a2b4979_aa76f461-a124-4dbd-87d7-47e1c4decf4a.webp?v=1737529257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87aa89f95c74ab3689d4682e995da6592a2b4979_aa76f461-a124-4dbd-87d7-47e1c4decf4a.webp?v=1737529257","width":2000},{"alt":null,"id":25221969117283,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ff297049cf17cb22e4b1a4fd5f02dd009feebc6_37e5c33c-2dd1-46b6-8896-9a321de2b9de.webp?v=1737529257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ff297049cf17cb22e4b1a4fd5f02dd009feebc6_37e5c33c-2dd1-46b6-8896-9a321de2b9de.webp?v=1737529257","width":2000},{"alt":null,"id":23789163741283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b102b3c2e93c5329710e19865090f02aac354a_e1fd2e1d-0b56-4fae-b72a-cd1c2ce7015e.webp?v=1737529257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b102b3c2e93c5329710e19865090f02aac354a_e1fd2e1d-0b56-4fae-b72a-cd1c2ce7015e.webp?v=1737529257","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":""}; $isMerge = null; $variants = [{"id":41793067155555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386922877027,"product_id":7369151545443,"position":5,"created_at":"2024-04-23T15:34:32+08:00","updated_at":"2025-01-22T15:00:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/762919537333a0e316c0603263fbf81b7d9ddd5d_dd471a4c-a453-4d8b-a2ea-3b681870f846.webp?v=1737529257","variant_ids":[41793067155555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 曬太陽 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-PL63","featured_media":{"alt":null,"id":23789160890467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/762919537333a0e316c0603263fbf81b7d9ddd5d_dd471a4c-a453-4d8b-a2ea-3b681870f846.webp?v=1737529257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41793067155555,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0114924-PL63","requires_shipping":true,"taxable":true,"featured_image":{"id":31386922877027,"product_id":7369151545443,"position":5,"created_at":"2024-04-23T15:34:32+08:00","updated_at":"2025-01-22T15:00:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/762919537333a0e316c0603263fbf81b7d9ddd5d_dd471a4c-a453-4d8b-a2ea-3b681870f846.webp?v=1737529257","variant_ids":[41793067155555]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 11 Pro Max - 【聯名設計款】 - Snoopy 史努比 - 曬太陽 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0114924-PL63","featured_media":{"alt":null,"id":23789160890467,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/762919537333a0e316c0603263fbf81b7d9ddd5d_dd471a4c-a453-4d8b-a2ea-3b681870f846.webp?v=1737529257"}},"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: "停產" }