$product = {"id":7407549612131,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列","handle":"iphone-15-plus-mod-nx-printable-pb62","description":null,"published_at":"2024-06-11T16:18:55+08:00","created_at":"2024-05-03T10:08:54+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":41876204028003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31469872316515,"product_id":7407549612131,"position":4,"created_at":"2024-05-03T10:09:04+08:00","updated_at":"2024-05-03T10:09:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3557106c41549fa706d3ab4843bc8bfe72a429_3aae62a9-c67e-4cb4-a748-b53a8c980397.webp?v=1714702144","variant_ids":[41876204028003]},"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-PB62","featured_media":{"alt":null,"id":23874774007907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3557106c41549fa706d3ab4843bc8bfe72a429_3aae62a9-c67e-4cb4-a748-b53a8c980397.webp?v=1714702144"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876204159075,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31469870973027,"product_id":7407549612131,"position":2,"created_at":"2024-05-03T10:08:59+08:00","updated_at":"2024-05-03T10:08:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8b9ecc9e8acba03b4a6c462e08e9dca51fe228_bfd66d5b-1684-4d0f-b54d-47b77b0198b9.webp?v=1714702139","variant_ids":[41876204159075]},"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-PB62","featured_media":{"alt":null,"id":23874772566115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8b9ecc9e8acba03b4a6c462e08e9dca51fe228_bfd66d5b-1684-4d0f-b54d-47b77b0198b9.webp?v=1714702139"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d50c78a9b56f26606bb9707da088b845b30b2b8_b7c88b2f-a6ae-4d7e-9563-7ccf1ba72dc7.webp?v=1714702137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8b9ecc9e8acba03b4a6c462e08e9dca51fe228_bfd66d5b-1684-4d0f-b54d-47b77b0198b9.webp?v=1714702139","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77c9550f75c7f78159fce77e82d81e9ded9f2f7f_27de6f0c-ce90-470b-b33f-15ca60c3132d.webp?v=1714702141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3557106c41549fa706d3ab4843bc8bfe72a429_3aae62a9-c67e-4cb4-a748-b53a8c980397.webp?v=1714702144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5e492469c0bd596d3662433adf53c8b4188efe_56d5f4f6-732b-443c-9d55-fa5cd19ab094.webp?v=1714702146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e071e1c7c6f58633f6529252bbc540becd22acc0_793adf78-4aca-4c66-8bcd-e96237f2d61a.webp?v=1714702148","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7573f1af9d1e778e19a2d606ab7109b7b57e7b97_a3f2e670-ffb8-4803-8f19-1776a2ab286c.webp?v=1714702150","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca5773641434b25ab4fe85837b04f72473ef091_0022a20f-76bd-4ea2-83cf-2eaf992ed33d.webp?v=1714702153","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8437207ca95ab6649df313ff64d0b2cf00c70f6_66ec3aba-a158-4641-9a9a-04f2c33b94da.webp?v=1714702155","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2df6226c44f7e845e208c4ae32bf190f6a0c7b1_ff2e803a-6205-4745-8618-be270dec0a65.webp?v=1714702157"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d50c78a9b56f26606bb9707da088b845b30b2b8_b7c88b2f-a6ae-4d7e-9563-7ccf1ba72dc7.webp?v=1714702137","options":["color"],"media":[{"alt":null,"id":23874772140131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d50c78a9b56f26606bb9707da088b845b30b2b8_b7c88b2f-a6ae-4d7e-9563-7ccf1ba72dc7.webp?v=1714702137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d50c78a9b56f26606bb9707da088b845b30b2b8_b7c88b2f-a6ae-4d7e-9563-7ccf1ba72dc7.webp?v=1714702137","width":2000},{"alt":null,"id":23874772566115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8b9ecc9e8acba03b4a6c462e08e9dca51fe228_bfd66d5b-1684-4d0f-b54d-47b77b0198b9.webp?v=1714702139"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8b9ecc9e8acba03b4a6c462e08e9dca51fe228_bfd66d5b-1684-4d0f-b54d-47b77b0198b9.webp?v=1714702139","width":2000},{"alt":null,"id":23874772959331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77c9550f75c7f78159fce77e82d81e9ded9f2f7f_27de6f0c-ce90-470b-b33f-15ca60c3132d.webp?v=1714702141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77c9550f75c7f78159fce77e82d81e9ded9f2f7f_27de6f0c-ce90-470b-b33f-15ca60c3132d.webp?v=1714702141","width":2000},{"alt":null,"id":23874774007907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3557106c41549fa706d3ab4843bc8bfe72a429_3aae62a9-c67e-4cb4-a748-b53a8c980397.webp?v=1714702144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3557106c41549fa706d3ab4843bc8bfe72a429_3aae62a9-c67e-4cb4-a748-b53a8c980397.webp?v=1714702144","width":2000},{"alt":null,"id":23874774368355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5e492469c0bd596d3662433adf53c8b4188efe_56d5f4f6-732b-443c-9d55-fa5cd19ab094.webp?v=1714702146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d5e492469c0bd596d3662433adf53c8b4188efe_56d5f4f6-732b-443c-9d55-fa5cd19ab094.webp?v=1714702146","width":2000},{"alt":null,"id":23874774892643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e071e1c7c6f58633f6529252bbc540becd22acc0_793adf78-4aca-4c66-8bcd-e96237f2d61a.webp?v=1714702148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e071e1c7c6f58633f6529252bbc540becd22acc0_793adf78-4aca-4c66-8bcd-e96237f2d61a.webp?v=1714702148","width":2000},{"alt":null,"id":23874775416931,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7573f1af9d1e778e19a2d606ab7109b7b57e7b97_a3f2e670-ffb8-4803-8f19-1776a2ab286c.webp?v=1714702150"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7573f1af9d1e778e19a2d606ab7109b7b57e7b97_a3f2e670-ffb8-4803-8f19-1776a2ab286c.webp?v=1714702150","width":2000},{"alt":null,"id":23874776039523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca5773641434b25ab4fe85837b04f72473ef091_0022a20f-76bd-4ea2-83cf-2eaf992ed33d.webp?v=1714702153"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca5773641434b25ab4fe85837b04f72473ef091_0022a20f-76bd-4ea2-83cf-2eaf992ed33d.webp?v=1714702153","width":2000},{"alt":null,"id":23874776858723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8437207ca95ab6649df313ff64d0b2cf00c70f6_66ec3aba-a158-4641-9a9a-04f2c33b94da.webp?v=1714702155"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8437207ca95ab6649df313ff64d0b2cf00c70f6_66ec3aba-a158-4641-9a9a-04f2c33b94da.webp?v=1714702155","width":2000},{"alt":null,"id":23874777383011,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2df6226c44f7e845e208c4ae32bf190f6a0c7b1_ff2e803a-6205-4745-8618-be270dec0a65.webp?v=1714702157"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2df6226c44f7e845e208c4ae32bf190f6a0c7b1_ff2e803a-6205-4745-8618-be270dec0a65.webp?v=1714702157","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876204028003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31469872316515,"product_id":7407549612131,"position":4,"created_at":"2024-05-03T10:09:04+08:00","updated_at":"2024-05-03T10:09:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3557106c41549fa706d3ab4843bc8bfe72a429_3aae62a9-c67e-4cb4-a748-b53a8c980397.webp?v=1714702144","variant_ids":[41876204028003]},"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-PB62","featured_media":{"alt":null,"id":23874774007907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3557106c41549fa706d3ab4843bc8bfe72a429_3aae62a9-c67e-4cb4-a748-b53a8c980397.webp?v=1714702144"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876204159075,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31469870973027,"product_id":7407549612131,"position":2,"created_at":"2024-05-03T10:08:59+08:00","updated_at":"2024-05-03T10:08:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8b9ecc9e8acba03b4a6c462e08e9dca51fe228_bfd66d5b-1684-4d0f-b54d-47b77b0198b9.webp?v=1714702139","variant_ids":[41876204159075]},"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-PB62","featured_media":{"alt":null,"id":23874772566115,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc8b9ecc9e8acba03b4a6c462e08e9dca51fe228_bfd66d5b-1684-4d0f-b54d-47b77b0198b9.webp?v=1714702139"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876204028003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31469872316515,"product_id":7407549612131,"position":4,"created_at":"2024-05-03T10:09:04+08:00","updated_at":"2024-05-03T10:09:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3557106c41549fa706d3ab4843bc8bfe72a429_3aae62a9-c67e-4cb4-a748-b53a8c980397.webp?v=1714702144","variant_ids":[41876204028003]},"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-PB62","featured_media":{"alt":null,"id":23874774007907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a3557106c41549fa706d3ab4843bc8bfe72a429_3aae62a9-c67e-4cb4-a748-b53a8c980397.webp?v=1714702144"}},"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: "停產" }