$product = {"id":7407717154915,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 復古漫畫插圖","handle":"iphone-14-plus-mod-nx-printable-sb08","description":null,"published_at":"2024-06-11T16:22:21+08:00","created_at":"2024-05-03T10:44:27+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":41878002729059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470267007075,"product_id":7407717154915,"position":9,"created_at":"2024-05-03T10:44:49+08:00","updated_at":"2024-05-03T10:44:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8750576e228c3e8c01e9e93c31d77df312143a4_2d96fe5c-9aa8-4280-92ae-45a111439c12.webp?v=1714704289","variant_ids":[41878002729059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 復古漫畫插圖 - 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-SB08","featured_media":{"alt":null,"id":23875170107491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8750576e228c3e8c01e9e93c31d77df312143a4_2d96fe5c-9aa8-4280-92ae-45a111439c12.webp?v=1714704289"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0d0850bde20119beab204c26dea8d09dfb4244_663e7450-5a63-4562-b966-4a24f4142b13.webp?v=1714704269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a451306f82543079d16ed78347d85b9fc5b5fe1_2ef93821-3982-45b4-b917-ce1251fc103f.webp?v=1714704272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae09588358e01bbe9b57bbc73595f9cfaf89c7c9_ff7f13e6-07fe-447f-91d1-60127c7defaa.webp?v=1714704274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8852fa61c561dff4537f9506ddba38b006fbdaf4_e976937b-34e5-4ce3-8a3f-29110af0bcf5.webp?v=1714704277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf860a0b659c56099dbaa844b81a9f795a4ae606_77d9d05e-0bc9-4ee2-bcdb-597cb7781460.webp?v=1714704279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d508ac2a15786555c56938bd3fad1226f5cb93b0_1319d26b-144c-4979-8d57-2c3377a4b29a.webp?v=1714704282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0952fde3a88362eee298689442004d481eabcba_4305d702-34ab-4da7-815f-a758d12def76.webp?v=1714704284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f4b8a695f9d869a045737fe9956a57f2bb3231_e5c5401a-29cd-4712-8f6f-b38ca3f4ea19.webp?v=1714704287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8750576e228c3e8c01e9e93c31d77df312143a4_2d96fe5c-9aa8-4280-92ae-45a111439c12.webp?v=1714704289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/384111021e8996f117a14b0070297359c0f352c5_93ac8082-9a79-481f-8d2d-910a9bb73d17.webp?v=1714704292"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0d0850bde20119beab204c26dea8d09dfb4244_663e7450-5a63-4562-b966-4a24f4142b13.webp?v=1714704269","options":["color"],"media":[{"alt":null,"id":23875164143715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0d0850bde20119beab204c26dea8d09dfb4244_663e7450-5a63-4562-b966-4a24f4142b13.webp?v=1714704269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e0d0850bde20119beab204c26dea8d09dfb4244_663e7450-5a63-4562-b966-4a24f4142b13.webp?v=1714704269","width":2000},{"alt":null,"id":23875164766307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a451306f82543079d16ed78347d85b9fc5b5fe1_2ef93821-3982-45b4-b917-ce1251fc103f.webp?v=1714704272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a451306f82543079d16ed78347d85b9fc5b5fe1_2ef93821-3982-45b4-b917-ce1251fc103f.webp?v=1714704272","width":2000},{"alt":null,"id":23875165519971,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae09588358e01bbe9b57bbc73595f9cfaf89c7c9_ff7f13e6-07fe-447f-91d1-60127c7defaa.webp?v=1714704274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae09588358e01bbe9b57bbc73595f9cfaf89c7c9_ff7f13e6-07fe-447f-91d1-60127c7defaa.webp?v=1714704274","width":2000},{"alt":null,"id":23875166077027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8852fa61c561dff4537f9506ddba38b006fbdaf4_e976937b-34e5-4ce3-8a3f-29110af0bcf5.webp?v=1714704277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8852fa61c561dff4537f9506ddba38b006fbdaf4_e976937b-34e5-4ce3-8a3f-29110af0bcf5.webp?v=1714704277","width":2000},{"alt":null,"id":23875167649891,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf860a0b659c56099dbaa844b81a9f795a4ae606_77d9d05e-0bc9-4ee2-bcdb-597cb7781460.webp?v=1714704279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf860a0b659c56099dbaa844b81a9f795a4ae606_77d9d05e-0bc9-4ee2-bcdb-597cb7781460.webp?v=1714704279","width":2000},{"alt":null,"id":23875168239715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d508ac2a15786555c56938bd3fad1226f5cb93b0_1319d26b-144c-4979-8d57-2c3377a4b29a.webp?v=1714704282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d508ac2a15786555c56938bd3fad1226f5cb93b0_1319d26b-144c-4979-8d57-2c3377a4b29a.webp?v=1714704282","width":2000},{"alt":null,"id":23875168829539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0952fde3a88362eee298689442004d481eabcba_4305d702-34ab-4da7-815f-a758d12def76.webp?v=1714704284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0952fde3a88362eee298689442004d481eabcba_4305d702-34ab-4da7-815f-a758d12def76.webp?v=1714704284","width":2000},{"alt":null,"id":23875169615971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f4b8a695f9d869a045737fe9956a57f2bb3231_e5c5401a-29cd-4712-8f6f-b38ca3f4ea19.webp?v=1714704287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6f4b8a695f9d869a045737fe9956a57f2bb3231_e5c5401a-29cd-4712-8f6f-b38ca3f4ea19.webp?v=1714704287","width":2000},{"alt":null,"id":23875170107491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8750576e228c3e8c01e9e93c31d77df312143a4_2d96fe5c-9aa8-4280-92ae-45a111439c12.webp?v=1714704289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8750576e228c3e8c01e9e93c31d77df312143a4_2d96fe5c-9aa8-4280-92ae-45a111439c12.webp?v=1714704289","width":2000},{"alt":null,"id":23875170697315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/384111021e8996f117a14b0070297359c0f352c5_93ac8082-9a79-481f-8d2d-910a9bb73d17.webp?v=1714704292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/384111021e8996f117a14b0070297359c0f352c5_93ac8082-9a79-481f-8d2d-910a9bb73d17.webp?v=1714704292","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878002729059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470267007075,"product_id":7407717154915,"position":9,"created_at":"2024-05-03T10:44:49+08:00","updated_at":"2024-05-03T10:44:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8750576e228c3e8c01e9e93c31d77df312143a4_2d96fe5c-9aa8-4280-92ae-45a111439c12.webp?v=1714704289","variant_ids":[41878002729059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 復古漫畫插圖 - 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-SB08","featured_media":{"alt":null,"id":23875170107491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8750576e228c3e8c01e9e93c31d77df312143a4_2d96fe5c-9aa8-4280-92ae-45a111439c12.webp?v=1714704289"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878002729059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470267007075,"product_id":7407717154915,"position":9,"created_at":"2024-05-03T10:44:49+08:00","updated_at":"2024-05-03T10:44:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8750576e228c3e8c01e9e93c31d77df312143a4_2d96fe5c-9aa8-4280-92ae-45a111439c12.webp?v=1714704289","variant_ids":[41878002729059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 復古漫畫插圖 - 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-SB08","featured_media":{"alt":null,"id":23875170107491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8750576e228c3e8c01e9e93c31d77df312143a4_2d96fe5c-9aa8-4280-92ae-45a111439c12.webp?v=1714704289"}},"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: "停產" }