$product = {"id":7407965700195,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - Batman Logo","handle":"iphone-14-plus-mod-nx-printable-sb03","description":null,"published_at":"2024-06-11T16:27:49+08:00","created_at":"2024-05-03T11:25:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41881134301283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31470825406563,"product_id":7407965700195,"position":10,"created_at":"2024-05-03T11:25:23+08:00","updated_at":"2024-05-03T11:25:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9719b0f26d7412f2e6600d7c0bec1bcba8261c89_aaad9e54-6311-47f5-a5c3-37c3955b1caf.webp?v=1714706723","variant_ids":[41881134301283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - Batman Logo - 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":"NPB0126124-SB03","featured_media":{"alt":null,"id":23875729916003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9719b0f26d7412f2e6600d7c0bec1bcba8261c89_aaad9e54-6311-47f5-a5c3-37c3955b1caf.webp?v=1714706723"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad32b6bd5b68f100e1d7c6c1926eb2c6c2d8e9f_eb7bfefe-0a3b-4dc0-ace0-40e230a74f77.webp?v=1714706702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d964b1eed7ae59564385d5db74aeadc3609f38f_1bfb9252-d2c8-4591-8d9f-a07406f1706b.webp?v=1714706705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fccda01c4695393e333ce863c22e8b6344ccd1_8899a759-06bf-44ec-9ba2-655105e88437.webp?v=1714706707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c8b99a06195fd4cb05dcb646c6773498993f32_629cf0f2-9959-4000-9eff-3ccc2935de19.webp?v=1714706709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/848476b0a12085307b414ed8c084e8cf3574f9e8_1a52be12-46d9-4cb5-95bd-93b4501125fd.webp?v=1714706712","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8776dbf8eda87427c0b5ab37291d38e3de727888_2c4dbecf-a593-4719-8617-311991ff5a36.webp?v=1714706714","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce7b2a418c84147c452a1c31bc1c60e8ca8089a0_46297c3d-1ffa-45bb-85e6-53e236cabb22.webp?v=1714706716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ea805f9863e24450992d9e72c1fa0b045eef8e5_9d6c1cda-f4e0-42c1-8692-9c86ca6b8444.webp?v=1714706719","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2577a18c912ea4d5b4805c84e0cfe359888b7c20_0680b6a7-7517-4504-a0be-8c82de20a13e.webp?v=1714706721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9719b0f26d7412f2e6600d7c0bec1bcba8261c89_aaad9e54-6311-47f5-a5c3-37c3955b1caf.webp?v=1714706723"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad32b6bd5b68f100e1d7c6c1926eb2c6c2d8e9f_eb7bfefe-0a3b-4dc0-ace0-40e230a74f77.webp?v=1714706702","options":["color"],"media":[{"alt":null,"id":23875725525091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad32b6bd5b68f100e1d7c6c1926eb2c6c2d8e9f_eb7bfefe-0a3b-4dc0-ace0-40e230a74f77.webp?v=1714706702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ad32b6bd5b68f100e1d7c6c1926eb2c6c2d8e9f_eb7bfefe-0a3b-4dc0-ace0-40e230a74f77.webp?v=1714706702","width":2000},{"alt":null,"id":23875726147683,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d964b1eed7ae59564385d5db74aeadc3609f38f_1bfb9252-d2c8-4591-8d9f-a07406f1706b.webp?v=1714706705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d964b1eed7ae59564385d5db74aeadc3609f38f_1bfb9252-d2c8-4591-8d9f-a07406f1706b.webp?v=1714706705","width":2000},{"alt":null,"id":23875726704739,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fccda01c4695393e333ce863c22e8b6344ccd1_8899a759-06bf-44ec-9ba2-655105e88437.webp?v=1714706707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20fccda01c4695393e333ce863c22e8b6344ccd1_8899a759-06bf-44ec-9ba2-655105e88437.webp?v=1714706707","width":2000},{"alt":null,"id":23875727163491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c8b99a06195fd4cb05dcb646c6773498993f32_629cf0f2-9959-4000-9eff-3ccc2935de19.webp?v=1714706709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c8b99a06195fd4cb05dcb646c6773498993f32_629cf0f2-9959-4000-9eff-3ccc2935de19.webp?v=1714706709","width":2000},{"alt":null,"id":23875727720547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/848476b0a12085307b414ed8c084e8cf3574f9e8_1a52be12-46d9-4cb5-95bd-93b4501125fd.webp?v=1714706712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/848476b0a12085307b414ed8c084e8cf3574f9e8_1a52be12-46d9-4cb5-95bd-93b4501125fd.webp?v=1714706712","width":2000},{"alt":null,"id":23875728179299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8776dbf8eda87427c0b5ab37291d38e3de727888_2c4dbecf-a593-4719-8617-311991ff5a36.webp?v=1714706714"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8776dbf8eda87427c0b5ab37291d38e3de727888_2c4dbecf-a593-4719-8617-311991ff5a36.webp?v=1714706714","width":2000},{"alt":null,"id":23875728605283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce7b2a418c84147c452a1c31bc1c60e8ca8089a0_46297c3d-1ffa-45bb-85e6-53e236cabb22.webp?v=1714706716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce7b2a418c84147c452a1c31bc1c60e8ca8089a0_46297c3d-1ffa-45bb-85e6-53e236cabb22.webp?v=1714706716","width":2000},{"alt":null,"id":23875729031267,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ea805f9863e24450992d9e72c1fa0b045eef8e5_9d6c1cda-f4e0-42c1-8692-9c86ca6b8444.webp?v=1714706719"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ea805f9863e24450992d9e72c1fa0b045eef8e5_9d6c1cda-f4e0-42c1-8692-9c86ca6b8444.webp?v=1714706719","width":2000},{"alt":null,"id":23875729424483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2577a18c912ea4d5b4805c84e0cfe359888b7c20_0680b6a7-7517-4504-a0be-8c82de20a13e.webp?v=1714706721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2577a18c912ea4d5b4805c84e0cfe359888b7c20_0680b6a7-7517-4504-a0be-8c82de20a13e.webp?v=1714706721","width":2000},{"alt":null,"id":23875729916003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9719b0f26d7412f2e6600d7c0bec1bcba8261c89_aaad9e54-6311-47f5-a5c3-37c3955b1caf.webp?v=1714706723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9719b0f26d7412f2e6600d7c0bec1bcba8261c89_aaad9e54-6311-47f5-a5c3-37c3955b1caf.webp?v=1714706723","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881134301283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31470825406563,"product_id":7407965700195,"position":10,"created_at":"2024-05-03T11:25:23+08:00","updated_at":"2024-05-03T11:25:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9719b0f26d7412f2e6600d7c0bec1bcba8261c89_aaad9e54-6311-47f5-a5c3-37c3955b1caf.webp?v=1714706723","variant_ids":[41881134301283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - Batman Logo - 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":"NPB0126124-SB03","featured_media":{"alt":null,"id":23875729916003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9719b0f26d7412f2e6600d7c0bec1bcba8261c89_aaad9e54-6311-47f5-a5c3-37c3955b1caf.webp?v=1714706723"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881134301283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31470825406563,"product_id":7407965700195,"position":10,"created_at":"2024-05-03T11:25:23+08:00","updated_at":"2024-05-03T11:25:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9719b0f26d7412f2e6600d7c0bec1bcba8261c89_aaad9e54-6311-47f5-a5c3-37c3955b1caf.webp?v=1714706723","variant_ids":[41881134301283]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - Batman Logo - 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":"NPB0126124-SB03","featured_media":{"alt":null,"id":23875729916003,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9719b0f26d7412f2e6600d7c0bec1bcba8261c89_aaad9e54-6311-47f5-a5c3-37c3955b1caf.webp?v=1714706723"}},"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: "停產" }