$product = {"id":7408134127715,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 絕地武士-光劍系列","handle":"iphone-13-pro-max-mod-nx-printable-pb71","description":null,"published_at":"2024-06-11T16:32:18+08:00","created_at":"2024-05-03T12:06:36+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":41883056799843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31471279079523,"product_id":7408134127715,"position":1,"created_at":"2024-05-03T12:06:38+08:00","updated_at":"2024-05-03T12:06:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198","variant_ids":[41883056799843]},"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-PB71","featured_media":{"alt":null,"id":23876184834147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883057127523,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31471281995875,"product_id":7408134127715,"position":7,"created_at":"2024-05-03T12:06:52+08:00","updated_at":"2024-05-03T12:06:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbd4027ddc9d7d8e9b40c63d6e39759750b9fa4_4434a61a-c1ba-4dda-b9f3-b0bccd75e506.webp?v=1714709212","variant_ids":[41883057127523]},"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-PB71","featured_media":{"alt":null,"id":23876187783267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbd4027ddc9d7d8e9b40c63d6e39759750b9fa4_4434a61a-c1ba-4dda-b9f3-b0bccd75e506.webp?v=1714709212"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0c0d4192f205a39e917623ab1793ad106a945_4dc011f9-daf0-4fc9-85a8-b1f6caa24083.webp?v=1714709200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d70563721900644a669897cbe66423753e9f81_4c066f39-ffa5-47d0-8fc6-5b61985af866.webp?v=1714709203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9aab94ffe81a04852670a5cbf5cac4aff6c4f05_1116e840-9d61-4da6-9897-704faf998883.webp?v=1714709205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c155aaf7f0a6100605a1240195df91e69b5c7e35_16357140-edb5-4a57-bfd3-6c8d212bd395.webp?v=1714709207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddc23937226e8feaea5279d5e319a9623d0eff51_0f865e1e-5410-424d-b269-98d2948cd7c7.webp?v=1714709209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbd4027ddc9d7d8e9b40c63d6e39759750b9fa4_4434a61a-c1ba-4dda-b9f3-b0bccd75e506.webp?v=1714709212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408431d07e737d545689e40925fe3937ed7867f2_f9e729c0-7574-4532-93c9-197d54d9a7c0.webp?v=1714709214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1f7087ae2f9bca09ef5b05823ba86f4a6686f50_8013519c-6e01-4d25-9ab9-b173a6acc341.webp?v=1714709216","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c900c18c00cb3d9b43aefa4710e29f6d051aca95_0a7cdfb5-d59c-4ecd-8506-f36f8b988606.webp?v=1714709219"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198","options":["color"],"media":[{"alt":null,"id":23876184834147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198","width":2000},{"alt":null,"id":23876185358435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0c0d4192f205a39e917623ab1793ad106a945_4dc011f9-daf0-4fc9-85a8-b1f6caa24083.webp?v=1714709200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82e0c0d4192f205a39e917623ab1793ad106a945_4dc011f9-daf0-4fc9-85a8-b1f6caa24083.webp?v=1714709200","width":2000},{"alt":null,"id":23876185751651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d70563721900644a669897cbe66423753e9f81_4c066f39-ffa5-47d0-8fc6-5b61985af866.webp?v=1714709203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3d70563721900644a669897cbe66423753e9f81_4c066f39-ffa5-47d0-8fc6-5b61985af866.webp?v=1714709203","width":2000},{"alt":null,"id":23876186275939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9aab94ffe81a04852670a5cbf5cac4aff6c4f05_1116e840-9d61-4da6-9897-704faf998883.webp?v=1714709205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9aab94ffe81a04852670a5cbf5cac4aff6c4f05_1116e840-9d61-4da6-9897-704faf998883.webp?v=1714709205","width":2000},{"alt":null,"id":23876186734691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c155aaf7f0a6100605a1240195df91e69b5c7e35_16357140-edb5-4a57-bfd3-6c8d212bd395.webp?v=1714709207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c155aaf7f0a6100605a1240195df91e69b5c7e35_16357140-edb5-4a57-bfd3-6c8d212bd395.webp?v=1714709207","width":2000},{"alt":null,"id":23876187291747,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddc23937226e8feaea5279d5e319a9623d0eff51_0f865e1e-5410-424d-b269-98d2948cd7c7.webp?v=1714709209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddc23937226e8feaea5279d5e319a9623d0eff51_0f865e1e-5410-424d-b269-98d2948cd7c7.webp?v=1714709209","width":2000},{"alt":null,"id":23876187783267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbd4027ddc9d7d8e9b40c63d6e39759750b9fa4_4434a61a-c1ba-4dda-b9f3-b0bccd75e506.webp?v=1714709212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbd4027ddc9d7d8e9b40c63d6e39759750b9fa4_4434a61a-c1ba-4dda-b9f3-b0bccd75e506.webp?v=1714709212","width":2000},{"alt":null,"id":23876188176483,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408431d07e737d545689e40925fe3937ed7867f2_f9e729c0-7574-4532-93c9-197d54d9a7c0.webp?v=1714709214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408431d07e737d545689e40925fe3937ed7867f2_f9e729c0-7574-4532-93c9-197d54d9a7c0.webp?v=1714709214","width":2000},{"alt":null,"id":23876188668003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1f7087ae2f9bca09ef5b05823ba86f4a6686f50_8013519c-6e01-4d25-9ab9-b173a6acc341.webp?v=1714709216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1f7087ae2f9bca09ef5b05823ba86f4a6686f50_8013519c-6e01-4d25-9ab9-b173a6acc341.webp?v=1714709216","width":2000},{"alt":null,"id":23876189126755,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c900c18c00cb3d9b43aefa4710e29f6d051aca95_0a7cdfb5-d59c-4ecd-8506-f36f8b988606.webp?v=1714709219"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c900c18c00cb3d9b43aefa4710e29f6d051aca95_0a7cdfb5-d59c-4ecd-8506-f36f8b988606.webp?v=1714709219","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883056799843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31471279079523,"product_id":7408134127715,"position":1,"created_at":"2024-05-03T12:06:38+08:00","updated_at":"2024-05-03T12:06:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198","variant_ids":[41883056799843]},"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-PB71","featured_media":{"alt":null,"id":23876184834147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883057127523,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31471281995875,"product_id":7408134127715,"position":7,"created_at":"2024-05-03T12:06:52+08:00","updated_at":"2024-05-03T12:06:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbd4027ddc9d7d8e9b40c63d6e39759750b9fa4_4434a61a-c1ba-4dda-b9f3-b0bccd75e506.webp?v=1714709212","variant_ids":[41883057127523]},"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-PB71","featured_media":{"alt":null,"id":23876187783267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfbd4027ddc9d7d8e9b40c63d6e39759750b9fa4_4434a61a-c1ba-4dda-b9f3-b0bccd75e506.webp?v=1714709212"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883056799843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB71","requires_shipping":true,"taxable":true,"featured_image":{"id":31471279079523,"product_id":7408134127715,"position":1,"created_at":"2024-05-03T12:06:38+08:00","updated_at":"2024-05-03T12:06:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198","variant_ids":[41883056799843]},"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-PB71","featured_media":{"alt":null,"id":23876184834147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf3f6c150cf0e3214eb8628963fc86bff5ba5b6_45398f51-aee6-426d-aa83-a34b6bcde2a9.webp?v=1714709198"}},"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: "停產" }