$product = {"id":7408212901987,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-printable-pb37","description":null,"published_at":"2024-06-11T16:34:24+08:00","created_at":"2024-05-03T12:21:59+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":41883920007267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471489613923,"product_id":7408212901987,"position":8,"created_at":"2024-05-03T12:22:17+08:00","updated_at":"2024-05-03T12:22:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44b928afa2189e1b950ababaf7764e4a5b9cf99f_29d9948b-f39f-4651-aab2-cb6b335aba34.webp?v=1714710137","variant_ids":[41883920007267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23876396089443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44b928afa2189e1b950ababaf7764e4a5b9cf99f_29d9948b-f39f-4651-aab2-cb6b335aba34.webp?v=1714710137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883920302179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471487975523,"product_id":7408212901987,"position":5,"created_at":"2024-05-03T12:22:11+08:00","updated_at":"2024-05-03T12:22:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a7343725cc42f7949ed1a93b266b17fce2a479_9e7581a3-dcd9-4775-b628-ad16b7f847e2.webp?v=1714710131","variant_ids":[41883920302179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23876394385507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a7343725cc42f7949ed1a93b266b17fce2a479_9e7581a3-dcd9-4775-b628-ad16b7f847e2.webp?v=1714710131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8bb58e33b0b20368209345bc0bc9b0e6e5386c7_2fa5a057-6cc9-4175-aca8-2387620352e3.webp?v=1714710121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ff56d036dc71eac3d2ec9f9de3490b93b95e269_2a478fb6-388a-43ff-8510-95a55b61060a.webp?v=1714710124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c86e8cc89098f81e6d209a645d7a97e03d18f2a_9173ba32-82d6-4f1c-a5a2-ddce635a2067.webp?v=1714710126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d441a4a7f9222bc8cc6e968b138d51e14deb67cd_ba351857-cbcd-421d-b0b6-729b817fe7c2.webp?v=1714710128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a7343725cc42f7949ed1a93b266b17fce2a479_9e7581a3-dcd9-4775-b628-ad16b7f847e2.webp?v=1714710131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d06377dfa8d68ab32c27ac5d09cb7132325040c3_13542513-42ae-49bd-a8e0-73d1c5c43bc5.webp?v=1714710133","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83bbd2e45f0ef6e5dc519673ce0b0df8a66d66f3_3bc3c252-26b3-4494-83cf-61964ee3c58f.webp?v=1714710135","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44b928afa2189e1b950ababaf7764e4a5b9cf99f_29d9948b-f39f-4651-aab2-cb6b335aba34.webp?v=1714710137","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e58906873e276f992064c8af614660679f468e0_bc246d28-335b-40c2-a00e-b5e3f5aaf980.webp?v=1714710140","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b61f04eaa2cce06a174ebf60d7a4316f9c037d3_436fbc17-0896-4a79-b3d7-1be467ca999c.webp?v=1714710142"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8bb58e33b0b20368209345bc0bc9b0e6e5386c7_2fa5a057-6cc9-4175-aca8-2387620352e3.webp?v=1714710121","options":["color"],"media":[{"alt":null,"id":23876392484963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8bb58e33b0b20368209345bc0bc9b0e6e5386c7_2fa5a057-6cc9-4175-aca8-2387620352e3.webp?v=1714710121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8bb58e33b0b20368209345bc0bc9b0e6e5386c7_2fa5a057-6cc9-4175-aca8-2387620352e3.webp?v=1714710121","width":2000},{"alt":null,"id":23876393009251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ff56d036dc71eac3d2ec9f9de3490b93b95e269_2a478fb6-388a-43ff-8510-95a55b61060a.webp?v=1714710124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ff56d036dc71eac3d2ec9f9de3490b93b95e269_2a478fb6-388a-43ff-8510-95a55b61060a.webp?v=1714710124","width":2000},{"alt":null,"id":23876393500771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c86e8cc89098f81e6d209a645d7a97e03d18f2a_9173ba32-82d6-4f1c-a5a2-ddce635a2067.webp?v=1714710126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c86e8cc89098f81e6d209a645d7a97e03d18f2a_9173ba32-82d6-4f1c-a5a2-ddce635a2067.webp?v=1714710126","width":2000},{"alt":null,"id":23876393926755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d441a4a7f9222bc8cc6e968b138d51e14deb67cd_ba351857-cbcd-421d-b0b6-729b817fe7c2.webp?v=1714710128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d441a4a7f9222bc8cc6e968b138d51e14deb67cd_ba351857-cbcd-421d-b0b6-729b817fe7c2.webp?v=1714710128","width":2000},{"alt":null,"id":23876394385507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a7343725cc42f7949ed1a93b266b17fce2a479_9e7581a3-dcd9-4775-b628-ad16b7f847e2.webp?v=1714710131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a7343725cc42f7949ed1a93b266b17fce2a479_9e7581a3-dcd9-4775-b628-ad16b7f847e2.webp?v=1714710131","width":2000},{"alt":null,"id":23876394844259,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d06377dfa8d68ab32c27ac5d09cb7132325040c3_13542513-42ae-49bd-a8e0-73d1c5c43bc5.webp?v=1714710133"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d06377dfa8d68ab32c27ac5d09cb7132325040c3_13542513-42ae-49bd-a8e0-73d1c5c43bc5.webp?v=1714710133","width":2000},{"alt":null,"id":23876395303011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83bbd2e45f0ef6e5dc519673ce0b0df8a66d66f3_3bc3c252-26b3-4494-83cf-61964ee3c58f.webp?v=1714710135"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83bbd2e45f0ef6e5dc519673ce0b0df8a66d66f3_3bc3c252-26b3-4494-83cf-61964ee3c58f.webp?v=1714710135","width":2000},{"alt":null,"id":23876396089443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44b928afa2189e1b950ababaf7764e4a5b9cf99f_29d9948b-f39f-4651-aab2-cb6b335aba34.webp?v=1714710137"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44b928afa2189e1b950ababaf7764e4a5b9cf99f_29d9948b-f39f-4651-aab2-cb6b335aba34.webp?v=1714710137","width":2000},{"alt":null,"id":23876396515427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e58906873e276f992064c8af614660679f468e0_bc246d28-335b-40c2-a00e-b5e3f5aaf980.webp?v=1714710140"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e58906873e276f992064c8af614660679f468e0_bc246d28-335b-40c2-a00e-b5e3f5aaf980.webp?v=1714710140","width":2000},{"alt":null,"id":23876397105251,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b61f04eaa2cce06a174ebf60d7a4316f9c037d3_436fbc17-0896-4a79-b3d7-1be467ca999c.webp?v=1714710142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1b61f04eaa2cce06a174ebf60d7a4316f9c037d3_436fbc17-0896-4a79-b3d7-1be467ca999c.webp?v=1714710142","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883920007267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471489613923,"product_id":7408212901987,"position":8,"created_at":"2024-05-03T12:22:17+08:00","updated_at":"2024-05-03T12:22:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44b928afa2189e1b950ababaf7764e4a5b9cf99f_29d9948b-f39f-4651-aab2-cb6b335aba34.webp?v=1714710137","variant_ids":[41883920007267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23876396089443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44b928afa2189e1b950ababaf7764e4a5b9cf99f_29d9948b-f39f-4651-aab2-cb6b335aba34.webp?v=1714710137"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883920302179,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471487975523,"product_id":7408212901987,"position":5,"created_at":"2024-05-03T12:22:11+08:00","updated_at":"2024-05-03T12:22:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a7343725cc42f7949ed1a93b266b17fce2a479_9e7581a3-dcd9-4775-b628-ad16b7f847e2.webp?v=1714710131","variant_ids":[41883920302179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23876394385507,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5a7343725cc42f7949ed1a93b266b17fce2a479_9e7581a3-dcd9-4775-b628-ad16b7f847e2.webp?v=1714710131"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883920007267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB37","requires_shipping":true,"taxable":true,"featured_image":{"id":31471489613923,"product_id":7408212901987,"position":8,"created_at":"2024-05-03T12:22:17+08:00","updated_at":"2024-05-03T12:22:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44b928afa2189e1b950ababaf7764e4a5b9cf99f_29d9948b-f39f-4651-aab2-cb6b335aba34.webp?v=1714710137","variant_ids":[41883920007267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人1-塗鴉藝術 - 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-PB37","featured_media":{"alt":null,"id":23876396089443,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44b928afa2189e1b950ababaf7764e4a5b9cf99f_29d9948b-f39f-4651-aab2-cb6b335aba34.webp?v=1714710137"}},"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: "停產" }