$product = {"id":7415960928355,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - Batman - 高譚守護者","handle":"iphone-xs-max-mod-nx-printable-sb20","description":null,"published_at":"2024-06-11T16:49:00+08:00","created_at":"2024-05-06T12:32:31+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 XS Max","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":41915958460515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31490845245539,"product_id":7415960928355,"position":10,"created_at":"2024-05-06T12:32:55+08:00","updated_at":"2024-05-06T12:32:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a46fcac4ed089731d53cfef5bcb23edfc522c2_2c3d0b65-3aaf-44f2-801a-220b2a136eba.webp?v=1714969975","variant_ids":[41915958460515]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 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":"NPB0108624-SB20","featured_media":{"alt":null,"id":23896252088419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a46fcac4ed089731d53cfef5bcb23edfc522c2_2c3d0b65-3aaf-44f2-801a-220b2a136eba.webp?v=1714969975"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59837efd9624f7e2038b3710346354ff5d16ec1d_ef6c5335-0ca9-4951-ba15-dc7a78b8c9e3.webp?v=1714969953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11b1ae6698aade019cd15e7e84f8214d58c49527_a4deedd0-dae8-41fa-b293-0fbd9fec59df.webp?v=1714969955","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221151991d22003af59b7c9fe8c6dfe7a27a568a_10bf00ad-d53b-4d1e-9074-766d639336e2.webp?v=1714969958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c45c6b1506ee8ba1f1a48599db5cade915875f0c_ced61c1f-10a5-446c-b03a-67b0d09251e8.webp?v=1714969960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/212e97dabb2ffb18fcbb26e98e0c7cf0fdf67f97_ebbd912e-5048-4d4c-b7e7-1bbf5cd5c8f1.webp?v=1714969963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1730166d48d77b7733dc9858dc32bc235fbe49d2_9f8fd345-671f-4f7a-ab69-62edcb09ba6f.webp?v=1714969965","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcbfb0cb22499872c8be4539469208ac956ae4a1_1b91d9a1-5fde-4ce3-a6bb-0fe7bd9c25f4.webp?v=1714969967","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c6222de0bccdf3cde86c10b4abf9ed499eb41b_981d01e5-1286-4b27-bc94-15520a14dcd0.webp?v=1714969969","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/197c3d4f08e908892a43df248e6fdfb98397c578_2f764e1c-e194-43d6-9b70-dac9917e131b.webp?v=1714969972","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a46fcac4ed089731d53cfef5bcb23edfc522c2_2c3d0b65-3aaf-44f2-801a-220b2a136eba.webp?v=1714969975"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59837efd9624f7e2038b3710346354ff5d16ec1d_ef6c5335-0ca9-4951-ba15-dc7a78b8c9e3.webp?v=1714969953","options":["color"],"media":[{"alt":null,"id":23896247599203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59837efd9624f7e2038b3710346354ff5d16ec1d_ef6c5335-0ca9-4951-ba15-dc7a78b8c9e3.webp?v=1714969953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59837efd9624f7e2038b3710346354ff5d16ec1d_ef6c5335-0ca9-4951-ba15-dc7a78b8c9e3.webp?v=1714969953","width":2000},{"alt":null,"id":23896248057955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11b1ae6698aade019cd15e7e84f8214d58c49527_a4deedd0-dae8-41fa-b293-0fbd9fec59df.webp?v=1714969955"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11b1ae6698aade019cd15e7e84f8214d58c49527_a4deedd0-dae8-41fa-b293-0fbd9fec59df.webp?v=1714969955","width":2000},{"alt":null,"id":23896248451171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221151991d22003af59b7c9fe8c6dfe7a27a568a_10bf00ad-d53b-4d1e-9074-766d639336e2.webp?v=1714969958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/221151991d22003af59b7c9fe8c6dfe7a27a568a_10bf00ad-d53b-4d1e-9074-766d639336e2.webp?v=1714969958","width":2000},{"alt":null,"id":23896249401443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c45c6b1506ee8ba1f1a48599db5cade915875f0c_ced61c1f-10a5-446c-b03a-67b0d09251e8.webp?v=1714969960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c45c6b1506ee8ba1f1a48599db5cade915875f0c_ced61c1f-10a5-446c-b03a-67b0d09251e8.webp?v=1714969960","width":2000},{"alt":null,"id":23896249794659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/212e97dabb2ffb18fcbb26e98e0c7cf0fdf67f97_ebbd912e-5048-4d4c-b7e7-1bbf5cd5c8f1.webp?v=1714969963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/212e97dabb2ffb18fcbb26e98e0c7cf0fdf67f97_ebbd912e-5048-4d4c-b7e7-1bbf5cd5c8f1.webp?v=1714969963","width":2000},{"alt":null,"id":23896250253411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1730166d48d77b7733dc9858dc32bc235fbe49d2_9f8fd345-671f-4f7a-ab69-62edcb09ba6f.webp?v=1714969965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1730166d48d77b7733dc9858dc32bc235fbe49d2_9f8fd345-671f-4f7a-ab69-62edcb09ba6f.webp?v=1714969965","width":2000},{"alt":null,"id":23896250777699,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcbfb0cb22499872c8be4539469208ac956ae4a1_1b91d9a1-5fde-4ce3-a6bb-0fe7bd9c25f4.webp?v=1714969967"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dcbfb0cb22499872c8be4539469208ac956ae4a1_1b91d9a1-5fde-4ce3-a6bb-0fe7bd9c25f4.webp?v=1714969967","width":2000},{"alt":null,"id":23896251236451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c6222de0bccdf3cde86c10b4abf9ed499eb41b_981d01e5-1286-4b27-bc94-15520a14dcd0.webp?v=1714969969"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9c6222de0bccdf3cde86c10b4abf9ed499eb41b_981d01e5-1286-4b27-bc94-15520a14dcd0.webp?v=1714969969","width":2000},{"alt":null,"id":23896251629667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/197c3d4f08e908892a43df248e6fdfb98397c578_2f764e1c-e194-43d6-9b70-dac9917e131b.webp?v=1714969972"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/197c3d4f08e908892a43df248e6fdfb98397c578_2f764e1c-e194-43d6-9b70-dac9917e131b.webp?v=1714969972","width":2000},{"alt":null,"id":23896252088419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a46fcac4ed089731d53cfef5bcb23edfc522c2_2c3d0b65-3aaf-44f2-801a-220b2a136eba.webp?v=1714969975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a46fcac4ed089731d53cfef5bcb23edfc522c2_2c3d0b65-3aaf-44f2-801a-220b2a136eba.webp?v=1714969975","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41915958460515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31490845245539,"product_id":7415960928355,"position":10,"created_at":"2024-05-06T12:32:55+08:00","updated_at":"2024-05-06T12:32:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a46fcac4ed089731d53cfef5bcb23edfc522c2_2c3d0b65-3aaf-44f2-801a-220b2a136eba.webp?v=1714969975","variant_ids":[41915958460515]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 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":"NPB0108624-SB20","featured_media":{"alt":null,"id":23896252088419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a46fcac4ed089731d53cfef5bcb23edfc522c2_2c3d0b65-3aaf-44f2-801a-220b2a136eba.webp?v=1714969975"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41915958460515,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31490845245539,"product_id":7415960928355,"position":10,"created_at":"2024-05-06T12:32:55+08:00","updated_at":"2024-05-06T12:32:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a46fcac4ed089731d53cfef5bcb23edfc522c2_2c3d0b65-3aaf-44f2-801a-220b2a136eba.webp?v=1714969975","variant_ids":[41915958460515]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【聯名設計款】 - 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":"NPB0108624-SB20","featured_media":{"alt":null,"id":23896252088419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98a46fcac4ed089731d53cfef5bcb23edfc522c2_2c3d0b65-3aaf-44f2-801a-220b2a136eba.webp?v=1714969975"}},"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: "停產" }