$product = {"id":7408543236195,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白","handle":"iphone-12-pro-max-mod-nx-printable-pb18","description":null,"published_at":"2024-06-11T16:40:13+08:00","created_at":"2024-05-03T15:47:17+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41886684446819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31472550445155,"product_id":7408543236195,"position":10,"created_at":"2024-05-03T15:47:41+08:00","updated_at":"2024-05-03T15:47:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e61ec345dc81f1166711c398886cd1690ee62b_6d4fc2a6-aec4-4a07-9aec-9f1cec108c2b.webp?v=1714722461","variant_ids":[41886684446819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - 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":"NPB0118724-PB18","featured_media":{"alt":null,"id":23877467734115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e61ec345dc81f1166711c398886cd1690ee62b_6d4fc2a6-aec4-4a07-9aec-9f1cec108c2b.webp?v=1714722461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5860c63c5e0a33fb6c656a5a8ffd2b9fb65cf86a_ded9a59e-5e5b-49b9-9230-aebb6a4c5403.webp?v=1714722440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df396f90b63cabe95f05e478792d832db3b1352_3ac4fb76-b545-4f3f-87bb-502d7e2538a0.webp?v=1714722442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5147eb156b6b58c94e99d27c759c1ac25df7b788_1a8b0037-2090-44c9-b73b-246e7038e20a.webp?v=1714722444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ac9286d549058c73eabe7245cf40d54c466d05d_545cde58-bd70-4fd9-8bd1-dc4dba37d7ec.webp?v=1714722447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19b825c60c6ac8b3ad0e5a8308e7d94c6e9a89b2_0e351ec4-7e42-4a91-95db-e5b1305ca6cd.webp?v=1714722449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0051aaf1938bc3a1504f57a841d4ba98cfff3a1_07749e45-f731-40bb-9451-e769ac1f2914.webp?v=1714722452","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e73a6a3c2374639366a2b0eaccf0baecef1afc_661a16db-8bf7-4715-a6bf-703ee786c321.webp?v=1714722454","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73a3ceaa7d56c298fe4df9fd9861fef1ac2e3caf_c52ea85b-c530-4402-86a8-ed60f65919ea.webp?v=1714722456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a162ccc1186d689de6cb0a96c606b58664358c_8bc3df0f-7932-4bc1-b8de-728f8e78b1ed.webp?v=1714722459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e61ec345dc81f1166711c398886cd1690ee62b_6d4fc2a6-aec4-4a07-9aec-9f1cec108c2b.webp?v=1714722461"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5860c63c5e0a33fb6c656a5a8ffd2b9fb65cf86a_ded9a59e-5e5b-49b9-9230-aebb6a4c5403.webp?v=1714722440","options":["color"],"media":[{"alt":null,"id":23877463310435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5860c63c5e0a33fb6c656a5a8ffd2b9fb65cf86a_ded9a59e-5e5b-49b9-9230-aebb6a4c5403.webp?v=1714722440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5860c63c5e0a33fb6c656a5a8ffd2b9fb65cf86a_ded9a59e-5e5b-49b9-9230-aebb6a4c5403.webp?v=1714722440","width":2000},{"alt":null,"id":23877463736419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df396f90b63cabe95f05e478792d832db3b1352_3ac4fb76-b545-4f3f-87bb-502d7e2538a0.webp?v=1714722442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df396f90b63cabe95f05e478792d832db3b1352_3ac4fb76-b545-4f3f-87bb-502d7e2538a0.webp?v=1714722442","width":2000},{"alt":null,"id":23877464326243,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5147eb156b6b58c94e99d27c759c1ac25df7b788_1a8b0037-2090-44c9-b73b-246e7038e20a.webp?v=1714722444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5147eb156b6b58c94e99d27c759c1ac25df7b788_1a8b0037-2090-44c9-b73b-246e7038e20a.webp?v=1714722444","width":2000},{"alt":null,"id":23877464916067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ac9286d549058c73eabe7245cf40d54c466d05d_545cde58-bd70-4fd9-8bd1-dc4dba37d7ec.webp?v=1714722447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ac9286d549058c73eabe7245cf40d54c466d05d_545cde58-bd70-4fd9-8bd1-dc4dba37d7ec.webp?v=1714722447","width":2000},{"alt":null,"id":23877465473123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19b825c60c6ac8b3ad0e5a8308e7d94c6e9a89b2_0e351ec4-7e42-4a91-95db-e5b1305ca6cd.webp?v=1714722449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19b825c60c6ac8b3ad0e5a8308e7d94c6e9a89b2_0e351ec4-7e42-4a91-95db-e5b1305ca6cd.webp?v=1714722449","width":2000},{"alt":null,"id":23877466030179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0051aaf1938bc3a1504f57a841d4ba98cfff3a1_07749e45-f731-40bb-9451-e769ac1f2914.webp?v=1714722452"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0051aaf1938bc3a1504f57a841d4ba98cfff3a1_07749e45-f731-40bb-9451-e769ac1f2914.webp?v=1714722452","width":2000},{"alt":null,"id":23877466488931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e73a6a3c2374639366a2b0eaccf0baecef1afc_661a16db-8bf7-4715-a6bf-703ee786c321.webp?v=1714722454"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e73a6a3c2374639366a2b0eaccf0baecef1afc_661a16db-8bf7-4715-a6bf-703ee786c321.webp?v=1714722454","width":2000},{"alt":null,"id":23877466783843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73a3ceaa7d56c298fe4df9fd9861fef1ac2e3caf_c52ea85b-c530-4402-86a8-ed60f65919ea.webp?v=1714722456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73a3ceaa7d56c298fe4df9fd9861fef1ac2e3caf_c52ea85b-c530-4402-86a8-ed60f65919ea.webp?v=1714722456","width":2000},{"alt":null,"id":23877467340899,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a162ccc1186d689de6cb0a96c606b58664358c_8bc3df0f-7932-4bc1-b8de-728f8e78b1ed.webp?v=1714722459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a162ccc1186d689de6cb0a96c606b58664358c_8bc3df0f-7932-4bc1-b8de-728f8e78b1ed.webp?v=1714722459","width":2000},{"alt":null,"id":23877467734115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e61ec345dc81f1166711c398886cd1690ee62b_6d4fc2a6-aec4-4a07-9aec-9f1cec108c2b.webp?v=1714722461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e61ec345dc81f1166711c398886cd1690ee62b_6d4fc2a6-aec4-4a07-9aec-9f1cec108c2b.webp?v=1714722461","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886684446819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31472550445155,"product_id":7408543236195,"position":10,"created_at":"2024-05-03T15:47:41+08:00","updated_at":"2024-05-03T15:47:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e61ec345dc81f1166711c398886cd1690ee62b_6d4fc2a6-aec4-4a07-9aec-9f1cec108c2b.webp?v=1714722461","variant_ids":[41886684446819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - 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":"NPB0118724-PB18","featured_media":{"alt":null,"id":23877467734115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e61ec345dc81f1166711c398886cd1690ee62b_6d4fc2a6-aec4-4a07-9aec-9f1cec108c2b.webp?v=1714722461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886684446819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB18","requires_shipping":true,"taxable":true,"featured_image":{"id":31472550445155,"product_id":7408543236195,"position":10,"created_at":"2024-05-03T15:47:41+08:00","updated_at":"2024-05-03T15:47:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e61ec345dc81f1166711c398886cd1690ee62b_6d4fc2a6-aec4-4a07-9aec-9f1cec108c2b.webp?v=1714722461","variant_ids":[41886684446819]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機-線條白 - 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":"NPB0118724-PB18","featured_media":{"alt":null,"id":23877467734115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74e61ec345dc81f1166711c398886cd1690ee62b_6d4fc2a6-aec4-4a07-9aec-9f1cec108c2b.webp?v=1714722461"}},"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: "停產" }