$product = {"id":7408029466723,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕","handle":"iphone-13-pro-max-mod-nx-printable-pb70","description":null,"published_at":"2024-06-11T16:29:31+08:00","created_at":"2024-05-03T11:44:49+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":41881893929059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31471013429347,"product_id":7408029466723,"position":5,"created_at":"2024-05-03T11:45:01+08:00","updated_at":"2024-05-03T11:45:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2247f0f4ac510a681015bc64c135ac29594ac301_27faf070-e85b-4847-a202-aecec223d993.webp?v=1714707901","variant_ids":[41881893929059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0123224-PB70","featured_media":{"alt":null,"id":23875918463075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2247f0f4ac510a681015bc64c135ac29594ac301_27faf070-e85b-4847-a202-aecec223d993.webp?v=1714707901"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881894256739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31471011790947,"product_id":7408029466723,"position":3,"created_at":"2024-05-03T11:44:56+08:00","updated_at":"2024-05-03T11:44:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf612d4a13be2a338acccdc0b10013c90e6293_ba088371-8f2b-491e-b39a-787d89c60102.webp?v=1714707896","variant_ids":[41881894256739]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01232J5-PB70","featured_media":{"alt":null,"id":23875916791907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf612d4a13be2a338acccdc0b10013c90e6293_ba088371-8f2b-491e-b39a-787d89c60102.webp?v=1714707896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef2bf10722334b2843ac446917f197a2d9053f2_94379d83-acc1-4c8b-9bc4-98bb47d30366.webp?v=1714707891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6d5eb8f76a44865bfd1caa8e39741c06f5c038_9460ae67-b329-4810-b635-fcf0dfc2b91a.webp?v=1714707893","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf612d4a13be2a338acccdc0b10013c90e6293_ba088371-8f2b-491e-b39a-787d89c60102.webp?v=1714707896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662d26dd5c88c7a65c89b46363dbc1bc143c281e_4b27554d-0f79-440a-9076-c095932763c8.webp?v=1714707898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2247f0f4ac510a681015bc64c135ac29594ac301_27faf070-e85b-4847-a202-aecec223d993.webp?v=1714707901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b840120ae515df16f0aa596733f7e92444b75e35_69819257-0c8f-4928-abe4-c7518205b1e9.webp?v=1714707904","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c2d08c6cb5c611cf6584a920cde90cda5057af7_1569481a-858a-4515-839e-80a186ea703a.webp?v=1714707906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65cd7c50ca8a2b8e59f176151720f2d94183eab5_1da70281-2010-4ffa-8b49-d88fcdd4ddb0.webp?v=1714707908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d54792f9563fb9f1180a1ee9044cc6d8772ec6_ece70b5d-ac45-4632-85b4-1eaa720ae97b.webp?v=1714707911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad92b5bc74353fbeda5d78664b1ccf0f3e79c5a6_b80066a4-537e-4e9c-88ac-e8d51d8b1071.webp?v=1714707913"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef2bf10722334b2843ac446917f197a2d9053f2_94379d83-acc1-4c8b-9bc4-98bb47d30366.webp?v=1714707891","options":["color"],"media":[{"alt":null,"id":23875916071011,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef2bf10722334b2843ac446917f197a2d9053f2_94379d83-acc1-4c8b-9bc4-98bb47d30366.webp?v=1714707891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ef2bf10722334b2843ac446917f197a2d9053f2_94379d83-acc1-4c8b-9bc4-98bb47d30366.webp?v=1714707891","width":2000},{"alt":null,"id":23875916398691,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6d5eb8f76a44865bfd1caa8e39741c06f5c038_9460ae67-b329-4810-b635-fcf0dfc2b91a.webp?v=1714707893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c6d5eb8f76a44865bfd1caa8e39741c06f5c038_9460ae67-b329-4810-b635-fcf0dfc2b91a.webp?v=1714707893","width":2000},{"alt":null,"id":23875916791907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf612d4a13be2a338acccdc0b10013c90e6293_ba088371-8f2b-491e-b39a-787d89c60102.webp?v=1714707896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf612d4a13be2a338acccdc0b10013c90e6293_ba088371-8f2b-491e-b39a-787d89c60102.webp?v=1714707896","width":2000},{"alt":null,"id":23875917217891,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662d26dd5c88c7a65c89b46363dbc1bc143c281e_4b27554d-0f79-440a-9076-c095932763c8.webp?v=1714707898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/662d26dd5c88c7a65c89b46363dbc1bc143c281e_4b27554d-0f79-440a-9076-c095932763c8.webp?v=1714707898","width":2000},{"alt":null,"id":23875918463075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2247f0f4ac510a681015bc64c135ac29594ac301_27faf070-e85b-4847-a202-aecec223d993.webp?v=1714707901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2247f0f4ac510a681015bc64c135ac29594ac301_27faf070-e85b-4847-a202-aecec223d993.webp?v=1714707901","width":2000},{"alt":null,"id":23875919183971,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b840120ae515df16f0aa596733f7e92444b75e35_69819257-0c8f-4928-abe4-c7518205b1e9.webp?v=1714707904"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b840120ae515df16f0aa596733f7e92444b75e35_69819257-0c8f-4928-abe4-c7518205b1e9.webp?v=1714707904","width":2000},{"alt":null,"id":23875919642723,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c2d08c6cb5c611cf6584a920cde90cda5057af7_1569481a-858a-4515-839e-80a186ea703a.webp?v=1714707906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c2d08c6cb5c611cf6584a920cde90cda5057af7_1569481a-858a-4515-839e-80a186ea703a.webp?v=1714707906","width":2000},{"alt":null,"id":23875920134243,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65cd7c50ca8a2b8e59f176151720f2d94183eab5_1da70281-2010-4ffa-8b49-d88fcdd4ddb0.webp?v=1714707908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65cd7c50ca8a2b8e59f176151720f2d94183eab5_1da70281-2010-4ffa-8b49-d88fcdd4ddb0.webp?v=1714707908","width":2000},{"alt":null,"id":23875920756835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d54792f9563fb9f1180a1ee9044cc6d8772ec6_ece70b5d-ac45-4632-85b4-1eaa720ae97b.webp?v=1714707911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20d54792f9563fb9f1180a1ee9044cc6d8772ec6_ece70b5d-ac45-4632-85b4-1eaa720ae97b.webp?v=1714707911","width":2000},{"alt":null,"id":23875921510499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad92b5bc74353fbeda5d78664b1ccf0f3e79c5a6_b80066a4-537e-4e9c-88ac-e8d51d8b1071.webp?v=1714707913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad92b5bc74353fbeda5d78664b1ccf0f3e79c5a6_b80066a4-537e-4e9c-88ac-e8d51d8b1071.webp?v=1714707913","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881893929059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31471013429347,"product_id":7408029466723,"position":5,"created_at":"2024-05-03T11:45:01+08:00","updated_at":"2024-05-03T11:45:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2247f0f4ac510a681015bc64c135ac29594ac301_27faf070-e85b-4847-a202-aecec223d993.webp?v=1714707901","variant_ids":[41881893929059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0123224-PB70","featured_media":{"alt":null,"id":23875918463075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2247f0f4ac510a681015bc64c135ac29594ac301_27faf070-e85b-4847-a202-aecec223d993.webp?v=1714707901"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881894256739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31471011790947,"product_id":7408029466723,"position":3,"created_at":"2024-05-03T11:44:56+08:00","updated_at":"2024-05-03T11:44:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf612d4a13be2a338acccdc0b10013c90e6293_ba088371-8f2b-491e-b39a-787d89c60102.webp?v=1714707896","variant_ids":[41881894256739]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB01232J5-PB70","featured_media":{"alt":null,"id":23875916791907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf612d4a13be2a338acccdc0b10013c90e6293_ba088371-8f2b-491e-b39a-787d89c60102.webp?v=1714707896"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881893929059,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31471013429347,"product_id":7408029466723,"position":5,"created_at":"2024-05-03T11:45:01+08:00","updated_at":"2024-05-03T11:45:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2247f0f4ac510a681015bc64c135ac29594ac301_27faf070-e85b-4847-a202-aecec223d993.webp?v=1714707901","variant_ids":[41881893929059]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0123224-PB70","featured_media":{"alt":null,"id":23875918463075,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2247f0f4ac510a681015bc64c135ac29594ac301_27faf070-e85b-4847-a202-aecec223d993.webp?v=1714707901"}},"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: "停產" }