$product = {"id":7407930146915,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款","handle":"iphone-14-plus-mod-nx-printable-pb45","description":null,"published_at":"2024-06-11T16:26:50+08:00","created_at":"2024-05-03T11:18:05+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 14 Plus","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":41880669618275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470726512739,"product_id":7407930146915,"position":1,"created_at":"2024-05-03T11:18:07+08:00","updated_at":"2024-05-03T11:18:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287","variant_ids":[41880669618275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875630563427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee09f6893a2bc736678a5fe014eb180fbec2659a_84f23197-a506-4f26-b64f-38c11b6f4237.webp?v=1714706289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea0929a38c1cba0f58817493770cc9ead92aa2a0_0050b563-865e-4fda-8369-f8f651c219a6.webp?v=1714706292","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75129bffcf55bfb75ac1320fa189c3548a99d4_ec1ab3e7-39d5-4e96-9cd6-628e5c1f7b65.webp?v=1714706294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cf26ac5119b76d929aee70c00f2f82baa5327a3_a4ea8a2a-e727-4b45-a872-419ee14f618a.webp?v=1714706296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581251cc4025a69bbaa347a2d9a6453725541372_6badb393-d6bf-48d8-adb9-c362434f4ae0.webp?v=1714706298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea83a5654586c63b7c3bcb68f5b0aa49f4650049_8ebe0811-54c4-4cc4-ade1-9a33bd7d55a3.webp?v=1714706301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4628200820a52f6a3652c8fd639a1c5751d8a52e_080d5ece-b42b-4758-93ed-3838f0f6fb2d.webp?v=1714706303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22bdd18c689ba11a18daad5fd5f64d3b79aae4e3_3c04adc8-4eb7-43ba-a5e5-736a54717084.webp?v=1714706305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65382a4c9c78dcfe01b426100884e9e090976ecb_a3f1f8a5-9817-4eef-9864-10028af735bf.webp?v=1714706308"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287","options":["color"],"media":[{"alt":null,"id":23875630563427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287","width":2000},{"alt":null,"id":23875630989411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee09f6893a2bc736678a5fe014eb180fbec2659a_84f23197-a506-4f26-b64f-38c11b6f4237.webp?v=1714706289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee09f6893a2bc736678a5fe014eb180fbec2659a_84f23197-a506-4f26-b64f-38c11b6f4237.webp?v=1714706289","width":2000},{"alt":null,"id":23875631546467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea0929a38c1cba0f58817493770cc9ead92aa2a0_0050b563-865e-4fda-8369-f8f651c219a6.webp?v=1714706292"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea0929a38c1cba0f58817493770cc9ead92aa2a0_0050b563-865e-4fda-8369-f8f651c219a6.webp?v=1714706292","width":2000},{"alt":null,"id":23875632005219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75129bffcf55bfb75ac1320fa189c3548a99d4_ec1ab3e7-39d5-4e96-9cd6-628e5c1f7b65.webp?v=1714706294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e75129bffcf55bfb75ac1320fa189c3548a99d4_ec1ab3e7-39d5-4e96-9cd6-628e5c1f7b65.webp?v=1714706294","width":2000},{"alt":null,"id":23875632529507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cf26ac5119b76d929aee70c00f2f82baa5327a3_a4ea8a2a-e727-4b45-a872-419ee14f618a.webp?v=1714706296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cf26ac5119b76d929aee70c00f2f82baa5327a3_a4ea8a2a-e727-4b45-a872-419ee14f618a.webp?v=1714706296","width":2000},{"alt":null,"id":23875632857187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581251cc4025a69bbaa347a2d9a6453725541372_6badb393-d6bf-48d8-adb9-c362434f4ae0.webp?v=1714706298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/581251cc4025a69bbaa347a2d9a6453725541372_6badb393-d6bf-48d8-adb9-c362434f4ae0.webp?v=1714706298","width":2000},{"alt":null,"id":23875633348707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea83a5654586c63b7c3bcb68f5b0aa49f4650049_8ebe0811-54c4-4cc4-ade1-9a33bd7d55a3.webp?v=1714706301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea83a5654586c63b7c3bcb68f5b0aa49f4650049_8ebe0811-54c4-4cc4-ade1-9a33bd7d55a3.webp?v=1714706301","width":2000},{"alt":null,"id":23875633840227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4628200820a52f6a3652c8fd639a1c5751d8a52e_080d5ece-b42b-4758-93ed-3838f0f6fb2d.webp?v=1714706303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4628200820a52f6a3652c8fd639a1c5751d8a52e_080d5ece-b42b-4758-93ed-3838f0f6fb2d.webp?v=1714706303","width":2000},{"alt":null,"id":23875634364515,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22bdd18c689ba11a18daad5fd5f64d3b79aae4e3_3c04adc8-4eb7-43ba-a5e5-736a54717084.webp?v=1714706305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/22bdd18c689ba11a18daad5fd5f64d3b79aae4e3_3c04adc8-4eb7-43ba-a5e5-736a54717084.webp?v=1714706305","width":2000},{"alt":null,"id":23875634790499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65382a4c9c78dcfe01b426100884e9e090976ecb_a3f1f8a5-9817-4eef-9864-10028af735bf.webp?v=1714706308"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65382a4c9c78dcfe01b426100884e9e090976ecb_a3f1f8a5-9817-4eef-9864-10028af735bf.webp?v=1714706308","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880669618275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470726512739,"product_id":7407930146915,"position":1,"created_at":"2024-05-03T11:18:07+08:00","updated_at":"2024-05-03T11:18:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287","variant_ids":[41880669618275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875630563427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880669618275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB45","requires_shipping":true,"taxable":true,"featured_image":{"id":31470726512739,"product_id":7407930146915,"position":1,"created_at":"2024-05-03T11:18:07+08:00","updated_at":"2024-05-03T11:18:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287","variant_ids":[41880669618275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星戰Logo黑武士款 - 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-PB45","featured_media":{"alt":null,"id":23875630563427,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/272f8c4210bb94a9ea88291ade56a24fe71b5188_1a095619-468c-408a-93e2-63a975772cef.webp?v=1714706287"}},"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: "停產" }