$product = {"id":7408083566691,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列","handle":"iphone-13-pro-max-mod-nx-printable-pb54","description":null,"published_at":"2024-06-11T16:30:56+08:00","created_at":"2024-05-03T11:56:27+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 13 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":41882487029859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31471148400739,"product_id":7408083566691,"position":1,"created_at":"2024-05-03T11:56:29+08:00","updated_at":"2024-05-03T11:56:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589","variant_ids":[41882487029859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB0123224-PB54","featured_media":{"alt":null,"id":23876053663843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882487324771,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31471148695651,"product_id":7408083566691,"position":2,"created_at":"2024-05-03T11:56:31+08:00","updated_at":"2024-05-03T11:56:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa8d682b99a4edf53a7c63787922ba93119061_72f1b63a-9da6-4959-8570-3092cce96c3a.webp?v=1714708591","variant_ids":[41882487324771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB01232J5-PB54","featured_media":{"alt":null,"id":23876053925987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa8d682b99a4edf53a7c63787922ba93119061_72f1b63a-9da6-4959-8570-3092cce96c3a.webp?v=1714708591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa8d682b99a4edf53a7c63787922ba93119061_72f1b63a-9da6-4959-8570-3092cce96c3a.webp?v=1714708591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/358c9e64eb0a0d68eea4620f1dc864deed094340_99fdbe14-99cc-4675-87cf-ef3f3024b5f5.webp?v=1714708594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83df7d07b69e8b77995400d71af08ef33741a06f_59084882-234b-444d-86ac-0e60aedf5105.webp?v=1714708596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b093835a0acba9b42d8c0f0d026c97b1dd789da2_145d5c67-706e-418e-81a6-4abdcbe05182.webp?v=1714708598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffaa37a14136003a0f06b3a2dee18987ec9ae869_a3e60997-dd29-4f0e-aa29-e7da2f4855e8.webp?v=1714708601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ccb3cf7c77fe719023c1db11de20ecbe52a1f0c_83ffb810-f515-434f-8fc2-2d0d7cc6f810.webp?v=1714708603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7291c65f0298309d93b6a71e75a1954fb5a6e40f_506b2c5a-c659-428a-856f-cb56438b6bc6.webp?v=1714708605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83f6e67f334145e165dee52bc274de603076e57b_35f9583c-f09a-4238-ba0e-ddfd9e566ac2.webp?v=1714708608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a78a3a061038f861b83a708dbe20ac7dba5f82d_3ee9936e-4e6f-4f9f-9f2e-dde11ca93b6a.webp?v=1714708610"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589","options":["color"],"media":[{"alt":null,"id":23876053663843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589","width":2000},{"alt":null,"id":23876053925987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa8d682b99a4edf53a7c63787922ba93119061_72f1b63a-9da6-4959-8570-3092cce96c3a.webp?v=1714708591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa8d682b99a4edf53a7c63787922ba93119061_72f1b63a-9da6-4959-8570-3092cce96c3a.webp?v=1714708591","width":2000},{"alt":null,"id":23876054450275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/358c9e64eb0a0d68eea4620f1dc864deed094340_99fdbe14-99cc-4675-87cf-ef3f3024b5f5.webp?v=1714708594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/358c9e64eb0a0d68eea4620f1dc864deed094340_99fdbe14-99cc-4675-87cf-ef3f3024b5f5.webp?v=1714708594","width":2000},{"alt":null,"id":23876054810723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83df7d07b69e8b77995400d71af08ef33741a06f_59084882-234b-444d-86ac-0e60aedf5105.webp?v=1714708596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83df7d07b69e8b77995400d71af08ef33741a06f_59084882-234b-444d-86ac-0e60aedf5105.webp?v=1714708596","width":2000},{"alt":null,"id":23876055400547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b093835a0acba9b42d8c0f0d026c97b1dd789da2_145d5c67-706e-418e-81a6-4abdcbe05182.webp?v=1714708598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b093835a0acba9b42d8c0f0d026c97b1dd789da2_145d5c67-706e-418e-81a6-4abdcbe05182.webp?v=1714708598","width":2000},{"alt":null,"id":23876055924835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffaa37a14136003a0f06b3a2dee18987ec9ae869_a3e60997-dd29-4f0e-aa29-e7da2f4855e8.webp?v=1714708601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffaa37a14136003a0f06b3a2dee18987ec9ae869_a3e60997-dd29-4f0e-aa29-e7da2f4855e8.webp?v=1714708601","width":2000},{"alt":null,"id":23876056318051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ccb3cf7c77fe719023c1db11de20ecbe52a1f0c_83ffb810-f515-434f-8fc2-2d0d7cc6f810.webp?v=1714708603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ccb3cf7c77fe719023c1db11de20ecbe52a1f0c_83ffb810-f515-434f-8fc2-2d0d7cc6f810.webp?v=1714708603","width":2000},{"alt":null,"id":23876056809571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7291c65f0298309d93b6a71e75a1954fb5a6e40f_506b2c5a-c659-428a-856f-cb56438b6bc6.webp?v=1714708605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7291c65f0298309d93b6a71e75a1954fb5a6e40f_506b2c5a-c659-428a-856f-cb56438b6bc6.webp?v=1714708605","width":2000},{"alt":null,"id":23876057497699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83f6e67f334145e165dee52bc274de603076e57b_35f9583c-f09a-4238-ba0e-ddfd9e566ac2.webp?v=1714708608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83f6e67f334145e165dee52bc274de603076e57b_35f9583c-f09a-4238-ba0e-ddfd9e566ac2.webp?v=1714708608","width":2000},{"alt":null,"id":23876059136099,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a78a3a061038f861b83a708dbe20ac7dba5f82d_3ee9936e-4e6f-4f9f-9f2e-dde11ca93b6a.webp?v=1714708610"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a78a3a061038f861b83a708dbe20ac7dba5f82d_3ee9936e-4e6f-4f9f-9f2e-dde11ca93b6a.webp?v=1714708610","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41882487029859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31471148400739,"product_id":7408083566691,"position":1,"created_at":"2024-05-03T11:56:29+08:00","updated_at":"2024-05-03T11:56:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589","variant_ids":[41882487029859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB0123224-PB54","featured_media":{"alt":null,"id":23876053663843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882487324771,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31471148695651,"product_id":7408083566691,"position":2,"created_at":"2024-05-03T11:56:31+08:00","updated_at":"2024-05-03T11:56:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa8d682b99a4edf53a7c63787922ba93119061_72f1b63a-9da6-4959-8570-3092cce96c3a.webp?v=1714708591","variant_ids":[41882487324771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB01232J5-PB54","featured_media":{"alt":null,"id":23876053925987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8fa8d682b99a4edf53a7c63787922ba93119061_72f1b63a-9da6-4959-8570-3092cce96c3a.webp?v=1714708591"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41882487029859,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31471148400739,"product_id":7408083566691,"position":1,"created_at":"2024-05-03T11:56:29+08:00","updated_at":"2024-05-03T11:56:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589","variant_ids":[41882487029859]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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":"NPB0123224-PB54","featured_media":{"alt":null,"id":23876053663843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9f86fc412a548b5d2f334d245d334b92e835c6d_526853de-bf53-477e-8132-a9fc96d782a7.webp?v=1714708589"}},"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: "停產" }