$product = {"id":7408541794403,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-噴漆白","handle":"iphone-12-pro-max-mod-nx-printable-pb04","description":null,"published_at":"2024-06-11T16:40:10+08:00","created_at":"2024-05-03T15:46:58+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":41886661476451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472544874595,"product_id":7408541794403,"position":8,"created_at":"2024-05-03T15:47:16+08:00","updated_at":"2024-05-03T15:47:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463da2dacf587f751edad0f83fab26cedbe16c7e_5faac706-ce2e-41a1-a565-e92d30a838d3.webp?v=1714722436","variant_ids":[41886661476451]},"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-PB04","featured_media":{"alt":null,"id":23877462196323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463da2dacf587f751edad0f83fab26cedbe16c7e_5faac706-ce2e-41a1-a565-e92d30a838d3.webp?v=1714722436"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34725b7dd0b9c2e05615857934057532a8fa8cb7_17d37200-b263-46d1-ae9f-3268526b4fd6.webp?v=1714722420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da2912860152b3f5e1665069a9c2a0da6aec5ee_58151987-2867-40e0-8280-804c8ae9d0d7.webp?v=1714722422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7c8862b7613e586bd434f4c09753184f4f4cb_88a7b230-71b7-47e6-a478-656e096748a8.webp?v=1714722425","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a1d322a48f10fd3dd6ce4ea0129338d5b1912a4_62c5ccd8-b0a4-4037-834c-f0a6930cf1f2.webp?v=1714722427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57500db7f3c44f5ced16be4f242c6035a2d22bb1_59967cd7-1847-4b0d-8a51-8843e1753871.webp?v=1714722429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6773cf4a1bb189783bdcc7cd919149737a5fefb_1954f145-67f2-4f56-b711-574faf2fce34.webp?v=1714722432","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e60a3ae4c8e8527fd74a44cc3015a27fedc3847a_37a366bc-7eab-4e84-8f31-0c8c124180ee.webp?v=1714722434","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463da2dacf587f751edad0f83fab26cedbe16c7e_5faac706-ce2e-41a1-a565-e92d30a838d3.webp?v=1714722436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd011f0ebd2f6d3f6e9d47b349990a3ba3c72b55_677d1b32-64d3-4e35-8186-673ba0b7bfa2.webp?v=1714722439","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18eb02499f13d6ec23e71724d84bef6b19ea984e_2d1a6cb7-0e97-4883-95b8-7accac4a3e15.webp?v=1714722441"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34725b7dd0b9c2e05615857934057532a8fa8cb7_17d37200-b263-46d1-ae9f-3268526b4fd6.webp?v=1714722420","options":["color"],"media":[{"alt":null,"id":23877458428003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34725b7dd0b9c2e05615857934057532a8fa8cb7_17d37200-b263-46d1-ae9f-3268526b4fd6.webp?v=1714722420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34725b7dd0b9c2e05615857934057532a8fa8cb7_17d37200-b263-46d1-ae9f-3268526b4fd6.webp?v=1714722420","width":2000},{"alt":null,"id":23877458952291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da2912860152b3f5e1665069a9c2a0da6aec5ee_58151987-2867-40e0-8280-804c8ae9d0d7.webp?v=1714722422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da2912860152b3f5e1665069a9c2a0da6aec5ee_58151987-2867-40e0-8280-804c8ae9d0d7.webp?v=1714722422","width":2000},{"alt":null,"id":23877459705955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7c8862b7613e586bd434f4c09753184f4f4cb_88a7b230-71b7-47e6-a478-656e096748a8.webp?v=1714722425"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da7c8862b7613e586bd434f4c09753184f4f4cb_88a7b230-71b7-47e6-a478-656e096748a8.webp?v=1714722425","width":2000},{"alt":null,"id":23877460263011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a1d322a48f10fd3dd6ce4ea0129338d5b1912a4_62c5ccd8-b0a4-4037-834c-f0a6930cf1f2.webp?v=1714722427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a1d322a48f10fd3dd6ce4ea0129338d5b1912a4_62c5ccd8-b0a4-4037-834c-f0a6930cf1f2.webp?v=1714722427","width":2000},{"alt":null,"id":23877460754531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57500db7f3c44f5ced16be4f242c6035a2d22bb1_59967cd7-1847-4b0d-8a51-8843e1753871.webp?v=1714722429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/57500db7f3c44f5ced16be4f242c6035a2d22bb1_59967cd7-1847-4b0d-8a51-8843e1753871.webp?v=1714722429","width":2000},{"alt":null,"id":23877461246051,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6773cf4a1bb189783bdcc7cd919149737a5fefb_1954f145-67f2-4f56-b711-574faf2fce34.webp?v=1714722432"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6773cf4a1bb189783bdcc7cd919149737a5fefb_1954f145-67f2-4f56-b711-574faf2fce34.webp?v=1714722432","width":2000},{"alt":null,"id":23877461672035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e60a3ae4c8e8527fd74a44cc3015a27fedc3847a_37a366bc-7eab-4e84-8f31-0c8c124180ee.webp?v=1714722434"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e60a3ae4c8e8527fd74a44cc3015a27fedc3847a_37a366bc-7eab-4e84-8f31-0c8c124180ee.webp?v=1714722434","width":2000},{"alt":null,"id":23877462196323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463da2dacf587f751edad0f83fab26cedbe16c7e_5faac706-ce2e-41a1-a565-e92d30a838d3.webp?v=1714722436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463da2dacf587f751edad0f83fab26cedbe16c7e_5faac706-ce2e-41a1-a565-e92d30a838d3.webp?v=1714722436","width":2000},{"alt":null,"id":23877463048291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd011f0ebd2f6d3f6e9d47b349990a3ba3c72b55_677d1b32-64d3-4e35-8186-673ba0b7bfa2.webp?v=1714722439"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd011f0ebd2f6d3f6e9d47b349990a3ba3c72b55_677d1b32-64d3-4e35-8186-673ba0b7bfa2.webp?v=1714722439","width":2000},{"alt":null,"id":23877463572579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18eb02499f13d6ec23e71724d84bef6b19ea984e_2d1a6cb7-0e97-4883-95b8-7accac4a3e15.webp?v=1714722441"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18eb02499f13d6ec23e71724d84bef6b19ea984e_2d1a6cb7-0e97-4883-95b8-7accac4a3e15.webp?v=1714722441","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886661476451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472544874595,"product_id":7408541794403,"position":8,"created_at":"2024-05-03T15:47:16+08:00","updated_at":"2024-05-03T15:47:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463da2dacf587f751edad0f83fab26cedbe16c7e_5faac706-ce2e-41a1-a565-e92d30a838d3.webp?v=1714722436","variant_ids":[41886661476451]},"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-PB04","featured_media":{"alt":null,"id":23877462196323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463da2dacf587f751edad0f83fab26cedbe16c7e_5faac706-ce2e-41a1-a565-e92d30a838d3.webp?v=1714722436"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886661476451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472544874595,"product_id":7408541794403,"position":8,"created_at":"2024-05-03T15:47:16+08:00","updated_at":"2024-05-03T15:47:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463da2dacf587f751edad0f83fab26cedbe16c7e_5faac706-ce2e-41a1-a565-e92d30a838d3.webp?v=1714722436","variant_ids":[41886661476451]},"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-PB04","featured_media":{"alt":null,"id":23877462196323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/463da2dacf587f751edad0f83fab26cedbe16c7e_5faac706-ce2e-41a1-a565-e92d30a838d3.webp?v=1714722436"}},"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: "停產" }