$product = {"id":7407611379811,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 鈦戰機","handle":"iphone-15-plus-mod-nx-printable-pb73","description":null,"published_at":"2024-06-11T16:20:32+08:00","created_at":"2024-05-03T10:20:00+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":41876770226275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31470031011939,"product_id":7407611379811,"position":5,"created_at":"2024-05-03T10:20:13+08:00","updated_at":"2024-05-03T10:20:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb82ca01e59e088575c61b22e5f78764590b8b0_c2586f4b-b2f7-492e-9144-9c48f0c9a27a.webp?v=1714702813","variant_ids":[41876770226275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB73","featured_media":{"alt":null,"id":23874933194851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb82ca01e59e088575c61b22e5f78764590b8b0_c2586f4b-b2f7-492e-9144-9c48f0c9a27a.webp?v=1714702813"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876770357347,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31470030061667,"product_id":7407611379811,"position":3,"created_at":"2024-05-03T10:20:08+08:00","updated_at":"2024-05-03T10:20:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa2598f93d8db337ef588d0ac2608cb59a1e2af0_9d668c4f-3b7d-4ba9-8443-477a04676ff4.webp?v=1714702808","variant_ids":[41876770357347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PB73","featured_media":{"alt":null,"id":23874932244579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa2598f93d8db337ef588d0ac2608cb59a1e2af0_9d668c4f-3b7d-4ba9-8443-477a04676ff4.webp?v=1714702808"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25280a2199795908ad2a891fbc6e01bc7f7b1045_3f1c4fea-0c8c-4597-b730-76c52c27e018.webp?v=1714702803","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99fbc852abdb9513b609de460474d208c421bf82_6594edfb-6b2d-4da1-8b76-0cca786fcca2.webp?v=1714702806","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa2598f93d8db337ef588d0ac2608cb59a1e2af0_9d668c4f-3b7d-4ba9-8443-477a04676ff4.webp?v=1714702808","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc01e158acbaef4b6ca90d84c94906704fa50660_fec3a01f-96e5-4b60-b536-be448ee19ab7.webp?v=1714702811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb82ca01e59e088575c61b22e5f78764590b8b0_c2586f4b-b2f7-492e-9144-9c48f0c9a27a.webp?v=1714702813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02125f635b878f03a27a5281fcf0a35b1b50ba0b_9a5d2bd7-e5b5-4995-b249-369d34e3f984.webp?v=1714702818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4106432137e06d9c0d5e063577b35a90d1ed0165_a91c607a-6fbb-474e-859d-3400fd652ec0.webp?v=1714702821","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eae0640b736bedd2498962b6c41d0a0ed053b8a_e2d33877-c11c-4a1d-bd07-ea357047ac73.webp?v=1714702823","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cbc830e42fc0bf9c23e5928cc965a07daec94bf_7e0a7fb8-56ce-486f-ad8d-07899ae18256.webp?v=1714702826"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25280a2199795908ad2a891fbc6e01bc7f7b1045_3f1c4fea-0c8c-4597-b730-76c52c27e018.webp?v=1714702803","options":["color"],"media":[{"alt":null,"id":23874929328227,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25280a2199795908ad2a891fbc6e01bc7f7b1045_3f1c4fea-0c8c-4597-b730-76c52c27e018.webp?v=1714702803"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25280a2199795908ad2a891fbc6e01bc7f7b1045_3f1c4fea-0c8c-4597-b730-76c52c27e018.webp?v=1714702803","width":2000},{"alt":null,"id":23874931621987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99fbc852abdb9513b609de460474d208c421bf82_6594edfb-6b2d-4da1-8b76-0cca786fcca2.webp?v=1714702806"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99fbc852abdb9513b609de460474d208c421bf82_6594edfb-6b2d-4da1-8b76-0cca786fcca2.webp?v=1714702806","width":2000},{"alt":null,"id":23874932244579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa2598f93d8db337ef588d0ac2608cb59a1e2af0_9d668c4f-3b7d-4ba9-8443-477a04676ff4.webp?v=1714702808"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa2598f93d8db337ef588d0ac2608cb59a1e2af0_9d668c4f-3b7d-4ba9-8443-477a04676ff4.webp?v=1714702808","width":2000},{"alt":null,"id":23874932637795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc01e158acbaef4b6ca90d84c94906704fa50660_fec3a01f-96e5-4b60-b536-be448ee19ab7.webp?v=1714702811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc01e158acbaef4b6ca90d84c94906704fa50660_fec3a01f-96e5-4b60-b536-be448ee19ab7.webp?v=1714702811","width":2000},{"alt":null,"id":23874933194851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb82ca01e59e088575c61b22e5f78764590b8b0_c2586f4b-b2f7-492e-9144-9c48f0c9a27a.webp?v=1714702813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb82ca01e59e088575c61b22e5f78764590b8b0_c2586f4b-b2f7-492e-9144-9c48f0c9a27a.webp?v=1714702813","width":2000},{"alt":null,"id":23874934571107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02125f635b878f03a27a5281fcf0a35b1b50ba0b_9a5d2bd7-e5b5-4995-b249-369d34e3f984.webp?v=1714702818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02125f635b878f03a27a5281fcf0a35b1b50ba0b_9a5d2bd7-e5b5-4995-b249-369d34e3f984.webp?v=1714702818","width":2000},{"alt":null,"id":23874935128163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4106432137e06d9c0d5e063577b35a90d1ed0165_a91c607a-6fbb-474e-859d-3400fd652ec0.webp?v=1714702821"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4106432137e06d9c0d5e063577b35a90d1ed0165_a91c607a-6fbb-474e-859d-3400fd652ec0.webp?v=1714702821","width":2000},{"alt":null,"id":23874935816291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eae0640b736bedd2498962b6c41d0a0ed053b8a_e2d33877-c11c-4a1d-bd07-ea357047ac73.webp?v=1714702823"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eae0640b736bedd2498962b6c41d0a0ed053b8a_e2d33877-c11c-4a1d-bd07-ea357047ac73.webp?v=1714702823","width":2000},{"alt":null,"id":23874936406115,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cbc830e42fc0bf9c23e5928cc965a07daec94bf_7e0a7fb8-56ce-486f-ad8d-07899ae18256.webp?v=1714702826"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cbc830e42fc0bf9c23e5928cc965a07daec94bf_7e0a7fb8-56ce-486f-ad8d-07899ae18256.webp?v=1714702826","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876770226275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31470031011939,"product_id":7407611379811,"position":5,"created_at":"2024-05-03T10:20:13+08:00","updated_at":"2024-05-03T10:20:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb82ca01e59e088575c61b22e5f78764590b8b0_c2586f4b-b2f7-492e-9144-9c48f0c9a27a.webp?v=1714702813","variant_ids":[41876770226275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB73","featured_media":{"alt":null,"id":23874933194851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb82ca01e59e088575c61b22e5f78764590b8b0_c2586f4b-b2f7-492e-9144-9c48f0c9a27a.webp?v=1714702813"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876770357347,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31470030061667,"product_id":7407611379811,"position":3,"created_at":"2024-05-03T10:20:08+08:00","updated_at":"2024-05-03T10:20:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa2598f93d8db337ef588d0ac2608cb59a1e2af0_9d668c4f-3b7d-4ba9-8443-477a04676ff4.webp?v=1714702808","variant_ids":[41876770357347]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PB73","featured_media":{"alt":null,"id":23874932244579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa2598f93d8db337ef588d0ac2608cb59a1e2af0_9d668c4f-3b7d-4ba9-8443-477a04676ff4.webp?v=1714702808"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876770226275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB73","requires_shipping":true,"taxable":true,"featured_image":{"id":31470031011939,"product_id":7407611379811,"position":5,"created_at":"2024-05-03T10:20:13+08:00","updated_at":"2024-05-03T10:20:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb82ca01e59e088575c61b22e5f78764590b8b0_c2586f4b-b2f7-492e-9144-9c48f0c9a27a.webp?v=1714702813","variant_ids":[41876770226275]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB73","featured_media":{"alt":null,"id":23874933194851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beb82ca01e59e088575c61b22e5f78764590b8b0_c2586f4b-b2f7-492e-9144-9c48f0c9a27a.webp?v=1714702813"}},"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: "停產" }