$product = {"id":7407838527587,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 小丑與蝙蝠俠撲克牌","handle":"iphone-14-plus-mod-nx-printable-sb15","description":null,"published_at":"2024-06-11T16:24:16+08:00","created_at":"2024-05-03T10:59:59+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":41879463329891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31470495596643,"product_id":7407838527587,"position":5,"created_at":"2024-05-03T11:00:11+08:00","updated_at":"2024-05-03T11:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b88fe4f3598728a7434f076601128aa4e0726f_ceed54a9-9e30-473a-a33f-5a7f02c0d5b4.webp?v=1714705211","variant_ids":[41879463329891]},"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-SB15","featured_media":{"alt":null,"id":23875399352419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b88fe4f3598728a7434f076601128aa4e0726f_ceed54a9-9e30-473a-a33f-5a7f02c0d5b4.webp?v=1714705211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7f8353914f9d24a9cabb328b24d565742635b70_4025254c-16ba-42f9-b7bc-da6d853db97b.webp?v=1714705201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74d139892a8761b8908b12dec6a136f0a8ad5bef_63084d38-781d-4de1-a769-459e157e7cbb.webp?v=1714705203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb99450605a724828b5e6c8212674db2f6751cd_baeb1e76-dd7d-49f8-a4f5-c1ddb2cc9d74.webp?v=1714705206","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd555b9febe8a380cdd8372d73cf0a5bcf6e1ca4_b8b22121-d55b-4077-8ead-5d5bf371df71.webp?v=1714705208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b88fe4f3598728a7434f076601128aa4e0726f_ceed54a9-9e30-473a-a33f-5a7f02c0d5b4.webp?v=1714705211","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66386737546dfbec5f148b850fed5edb410deb19_90026614-45e2-4dc4-ac6f-b6f709abfb37.webp?v=1714705213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd735b3e93568673e08d0167a2507a8317ceaeb7_42a0bd5f-0df3-4417-a1ec-3646ed303382.webp?v=1714705216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f64149ab000fa99eaa34bbd71ea179872a167d_994303a4-2f57-4624-b75d-8d221093e723.webp?v=1714705218","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403edb7216e38f503c41a8feed2c156efce43639_6f2bb17f-7c3a-4344-a07f-1ec7bf4f3565.webp?v=1714705221","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c790eca9cd36eff95c470d70a235afb42c61c137_e8018ec6-bfe6-46ad-95cc-55831babe251.webp?v=1714705223"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7f8353914f9d24a9cabb328b24d565742635b70_4025254c-16ba-42f9-b7bc-da6d853db97b.webp?v=1714705201","options":["color"],"media":[{"alt":null,"id":23875397288035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7f8353914f9d24a9cabb328b24d565742635b70_4025254c-16ba-42f9-b7bc-da6d853db97b.webp?v=1714705201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7f8353914f9d24a9cabb328b24d565742635b70_4025254c-16ba-42f9-b7bc-da6d853db97b.webp?v=1714705201","width":2000},{"alt":null,"id":23875397714019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74d139892a8761b8908b12dec6a136f0a8ad5bef_63084d38-781d-4de1-a769-459e157e7cbb.webp?v=1714705203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74d139892a8761b8908b12dec6a136f0a8ad5bef_63084d38-781d-4de1-a769-459e157e7cbb.webp?v=1714705203","width":2000},{"alt":null,"id":23875398369379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb99450605a724828b5e6c8212674db2f6751cd_baeb1e76-dd7d-49f8-a4f5-c1ddb2cc9d74.webp?v=1714705206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eeb99450605a724828b5e6c8212674db2f6751cd_baeb1e76-dd7d-49f8-a4f5-c1ddb2cc9d74.webp?v=1714705206","width":2000},{"alt":null,"id":23875398893667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd555b9febe8a380cdd8372d73cf0a5bcf6e1ca4_b8b22121-d55b-4077-8ead-5d5bf371df71.webp?v=1714705208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd555b9febe8a380cdd8372d73cf0a5bcf6e1ca4_b8b22121-d55b-4077-8ead-5d5bf371df71.webp?v=1714705208","width":2000},{"alt":null,"id":23875399352419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b88fe4f3598728a7434f076601128aa4e0726f_ceed54a9-9e30-473a-a33f-5a7f02c0d5b4.webp?v=1714705211"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b88fe4f3598728a7434f076601128aa4e0726f_ceed54a9-9e30-473a-a33f-5a7f02c0d5b4.webp?v=1714705211","width":2000},{"alt":null,"id":23875399811171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66386737546dfbec5f148b850fed5edb410deb19_90026614-45e2-4dc4-ac6f-b6f709abfb37.webp?v=1714705213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66386737546dfbec5f148b850fed5edb410deb19_90026614-45e2-4dc4-ac6f-b6f709abfb37.webp?v=1714705213","width":2000},{"alt":null,"id":23875400433763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd735b3e93568673e08d0167a2507a8317ceaeb7_42a0bd5f-0df3-4417-a1ec-3646ed303382.webp?v=1714705216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd735b3e93568673e08d0167a2507a8317ceaeb7_42a0bd5f-0df3-4417-a1ec-3646ed303382.webp?v=1714705216","width":2000},{"alt":null,"id":23875400794211,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f64149ab000fa99eaa34bbd71ea179872a167d_994303a4-2f57-4624-b75d-8d221093e723.webp?v=1714705218"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f64149ab000fa99eaa34bbd71ea179872a167d_994303a4-2f57-4624-b75d-8d221093e723.webp?v=1714705218","width":2000},{"alt":null,"id":23875401252963,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403edb7216e38f503c41a8feed2c156efce43639_6f2bb17f-7c3a-4344-a07f-1ec7bf4f3565.webp?v=1714705221"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/403edb7216e38f503c41a8feed2c156efce43639_6f2bb17f-7c3a-4344-a07f-1ec7bf4f3565.webp?v=1714705221","width":2000},{"alt":null,"id":23875401711715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c790eca9cd36eff95c470d70a235afb42c61c137_e8018ec6-bfe6-46ad-95cc-55831babe251.webp?v=1714705223"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c790eca9cd36eff95c470d70a235afb42c61c137_e8018ec6-bfe6-46ad-95cc-55831babe251.webp?v=1714705223","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879463329891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31470495596643,"product_id":7407838527587,"position":5,"created_at":"2024-05-03T11:00:11+08:00","updated_at":"2024-05-03T11:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b88fe4f3598728a7434f076601128aa4e0726f_ceed54a9-9e30-473a-a33f-5a7f02c0d5b4.webp?v=1714705211","variant_ids":[41879463329891]},"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-SB15","featured_media":{"alt":null,"id":23875399352419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b88fe4f3598728a7434f076601128aa4e0726f_ceed54a9-9e30-473a-a33f-5a7f02c0d5b4.webp?v=1714705211"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879463329891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB15","requires_shipping":true,"taxable":true,"featured_image":{"id":31470495596643,"product_id":7407838527587,"position":5,"created_at":"2024-05-03T11:00:11+08:00","updated_at":"2024-05-03T11:00:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b88fe4f3598728a7434f076601128aa4e0726f_ceed54a9-9e30-473a-a33f-5a7f02c0d5b4.webp?v=1714705211","variant_ids":[41879463329891]},"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-SB15","featured_media":{"alt":null,"id":23875399352419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5b88fe4f3598728a7434f076601128aa4e0726f_ceed54a9-9e30-473a-a33f-5a7f02c0d5b4.webp?v=1714705211"}},"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: "停產" }