$product = {"id":7407453306979,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern","handle":"iphone-15-plus-mod-nx-printable-pc03","description":null,"published_at":"2024-06-11T16:16:26+08:00","created_at":"2024-05-03T09:52:07+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 15 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":41875308511331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31469624459363,"product_id":7407453306979,"position":8,"created_at":"2024-05-03T09:52:29+08:00","updated_at":"2024-05-03T09:52:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd412649e32ae69e19c0004e2743efa34aebed0_6ba56123-3f75-48e5-848c-70400d92a7c3.webp?v=1714701149","variant_ids":[41875308511331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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":"NPB0129624-PC03","featured_media":{"alt":null,"id":23874525626467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd412649e32ae69e19c0004e2743efa34aebed0_6ba56123-3f75-48e5-848c-70400d92a7c3.webp?v=1714701149"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875308642403,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31469620363363,"product_id":7407453306979,"position":2,"created_at":"2024-05-03T09:52:12+08:00","updated_at":"2024-05-03T09:52:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97eda46a79bb8ac374da1f99be9ecb4973cc355_88217fb9-11d8-4964-9914-dacfcc5ca29a.webp?v=1714701132","variant_ids":[41875308642403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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":"NPB0129657-PC03","featured_media":{"alt":null,"id":23874521497699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97eda46a79bb8ac374da1f99be9ecb4973cc355_88217fb9-11d8-4964-9914-dacfcc5ca29a.webp?v=1714701132"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b60744cd05c92fa180823b85db0eadbf138641_49acf0fe-727d-4134-869b-d90ec152ee34.webp?v=1714701130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97eda46a79bb8ac374da1f99be9ecb4973cc355_88217fb9-11d8-4964-9914-dacfcc5ca29a.webp?v=1714701132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f8cf2d221a688b477fc2b419a34301e02638fe3_3e2dee95-c280-45ee-ac30-7f8d4c96925c.webp?v=1714701135","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a63bc2598469d58b5717380611d3d9127771cb8_63b7fb4a-dc11-413f-9674-823c9f715001.webp?v=1714701137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a17cfb0eb61a3ae0730bc300dac0f7083d38c229_6b86c15d-ac65-4a3a-a79c-0c6c6b8564d0.webp?v=1714701140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beaaf18f68927e90853797a5cc2e94dc8df38679_6814ed14-7b10-4a4a-9396-9605740c51a2.webp?v=1714701144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae913a546170fe6a9e566d7132d0a9cd43b17439_b53b4c99-3674-4a40-b934-8cd4ad6e4569.webp?v=1714701147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd412649e32ae69e19c0004e2743efa34aebed0_6ba56123-3f75-48e5-848c-70400d92a7c3.webp?v=1714701149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a1d3366bebf4eb24c45e09eb164987ea03bfe4_f95d0673-ad61-46f5-8697-67de9d5bfc94.webp?v=1714701152"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b60744cd05c92fa180823b85db0eadbf138641_49acf0fe-727d-4134-869b-d90ec152ee34.webp?v=1714701130","options":["color"],"media":[{"alt":null,"id":23874521104483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b60744cd05c92fa180823b85db0eadbf138641_49acf0fe-727d-4134-869b-d90ec152ee34.webp?v=1714701130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32b60744cd05c92fa180823b85db0eadbf138641_49acf0fe-727d-4134-869b-d90ec152ee34.webp?v=1714701130","width":2000},{"alt":null,"id":23874521497699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97eda46a79bb8ac374da1f99be9ecb4973cc355_88217fb9-11d8-4964-9914-dacfcc5ca29a.webp?v=1714701132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97eda46a79bb8ac374da1f99be9ecb4973cc355_88217fb9-11d8-4964-9914-dacfcc5ca29a.webp?v=1714701132","width":2000},{"alt":null,"id":23874522251363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f8cf2d221a688b477fc2b419a34301e02638fe3_3e2dee95-c280-45ee-ac30-7f8d4c96925c.webp?v=1714701135"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f8cf2d221a688b477fc2b419a34301e02638fe3_3e2dee95-c280-45ee-ac30-7f8d4c96925c.webp?v=1714701135","width":2000},{"alt":null,"id":23874522677347,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a63bc2598469d58b5717380611d3d9127771cb8_63b7fb4a-dc11-413f-9674-823c9f715001.webp?v=1714701137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a63bc2598469d58b5717380611d3d9127771cb8_63b7fb4a-dc11-413f-9674-823c9f715001.webp?v=1714701137","width":2000},{"alt":null,"id":23874523594851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a17cfb0eb61a3ae0730bc300dac0f7083d38c229_6b86c15d-ac65-4a3a-a79c-0c6c6b8564d0.webp?v=1714701140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a17cfb0eb61a3ae0730bc300dac0f7083d38c229_6b86c15d-ac65-4a3a-a79c-0c6c6b8564d0.webp?v=1714701140","width":2000},{"alt":null,"id":23874524676195,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beaaf18f68927e90853797a5cc2e94dc8df38679_6814ed14-7b10-4a4a-9396-9605740c51a2.webp?v=1714701144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beaaf18f68927e90853797a5cc2e94dc8df38679_6814ed14-7b10-4a4a-9396-9605740c51a2.webp?v=1714701144","width":2000},{"alt":null,"id":23874525134947,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae913a546170fe6a9e566d7132d0a9cd43b17439_b53b4c99-3674-4a40-b934-8cd4ad6e4569.webp?v=1714701147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae913a546170fe6a9e566d7132d0a9cd43b17439_b53b4c99-3674-4a40-b934-8cd4ad6e4569.webp?v=1714701147","width":2000},{"alt":null,"id":23874525626467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd412649e32ae69e19c0004e2743efa34aebed0_6ba56123-3f75-48e5-848c-70400d92a7c3.webp?v=1714701149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd412649e32ae69e19c0004e2743efa34aebed0_6ba56123-3f75-48e5-848c-70400d92a7c3.webp?v=1714701149","width":2000},{"alt":null,"id":23874526216291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a1d3366bebf4eb24c45e09eb164987ea03bfe4_f95d0673-ad61-46f5-8697-67de9d5bfc94.webp?v=1714701152"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84a1d3366bebf4eb24c45e09eb164987ea03bfe4_f95d0673-ad61-46f5-8697-67de9d5bfc94.webp?v=1714701152","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41875308511331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31469624459363,"product_id":7407453306979,"position":8,"created_at":"2024-05-03T09:52:29+08:00","updated_at":"2024-05-03T09:52:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd412649e32ae69e19c0004e2743efa34aebed0_6ba56123-3f75-48e5-848c-70400d92a7c3.webp?v=1714701149","variant_ids":[41875308511331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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":"NPB0129624-PC03","featured_media":{"alt":null,"id":23874525626467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd412649e32ae69e19c0004e2743efa34aebed0_6ba56123-3f75-48e5-848c-70400d92a7c3.webp?v=1714701149"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875308642403,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31469620363363,"product_id":7407453306979,"position":2,"created_at":"2024-05-03T09:52:12+08:00","updated_at":"2024-05-03T09:52:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97eda46a79bb8ac374da1f99be9ecb4973cc355_88217fb9-11d8-4964-9914-dacfcc5ca29a.webp?v=1714701132","variant_ids":[41875308642403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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":"NPB0129657-PC03","featured_media":{"alt":null,"id":23874521497699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c97eda46a79bb8ac374da1f99be9ecb4973cc355_88217fb9-11d8-4964-9914-dacfcc5ca29a.webp?v=1714701132"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41875308511331,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC03","requires_shipping":true,"taxable":true,"featured_image":{"id":31469624459363,"product_id":7407453306979,"position":8,"created_at":"2024-05-03T09:52:29+08:00","updated_at":"2024-05-03T09:52:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd412649e32ae69e19c0004e2743efa34aebed0_6ba56123-3f75-48e5-848c-70400d92a7c3.webp?v=1714701149","variant_ids":[41875308511331]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 經典幾何Pattern - 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":"NPB0129624-PC03","featured_media":{"alt":null,"id":23874525626467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fd412649e32ae69e19c0004e2743efa34aebed0_6ba56123-3f75-48e5-848c-70400d92a7c3.webp?v=1714701149"}},"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: "停產" }