$product = {"id":7416340217955,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 天行者路克-復古系列","handle":"iphone-8-mod-nx-printable-pb97","description":null,"published_at":"2024-06-11T16:56:21+08:00","created_at":"2024-05-06T14:37:50+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 8","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":41918678073443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31491889692771,"product_id":7416340217955,"position":8,"created_at":"2024-05-06T14:38:10+08:00","updated_at":"2024-05-06T14:38:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff702da7069c5d1946d891ffa4053aa0cfea8b7c_e07ed250-c34f-4615-a349-32b8d6a11ea9.webp?v=1714977490","variant_ids":[41918678073443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0105424-PB97","featured_media":{"alt":null,"id":23897302564963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff702da7069c5d1946d891ffa4053aa0cfea8b7c_e07ed250-c34f-4615-a349-32b8d6a11ea9.webp?v=1714977490"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e719db8634831e99bcee109c266ea63c8106540_4b336493-58de-4932-b4c3-19f056e153c2.webp?v=1714977473","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8a79bbe91d3b758d7f25e091b530baeadd4d4a_f53ce7a4-5918-4406-b66b-175a35e779f3.webp?v=1714977475","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b0d2f3d2c2ef14e4d5e403f70b965066a53edc_febc292b-86c4-463e-84a0-59a310a82dc3.webp?v=1714977477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a04c4be43f9cc807d36bd054f6b09c53488ee6_adadbd63-f73d-43aa-a3d0-ed0cb5d7265c.webp?v=1714977480","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e84e183b5ef21aab9deb02b281f4c6eaa50e9c9_f486cdae-bdf8-4054-9472-136b7836bb1e.webp?v=1714977482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4cd617d76d7a9edf40f03f674e5c5035e815c8c_4e11095d-d3fd-423c-a213-e89052d84ad9.webp?v=1714977485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486a6f5f584699d6772edd4d1b2b1bab90378176_3a62a577-0d4f-4056-9b7a-ea8073e8cefa.webp?v=1714977487","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff702da7069c5d1946d891ffa4053aa0cfea8b7c_e07ed250-c34f-4615-a349-32b8d6a11ea9.webp?v=1714977490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb4f86dfc62c6fa0998356729f46ebc7dc2986b1_379adbe9-cc27-42a3-99ca-e79cd3d2312c.webp?v=1714977492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25de9fc5af73edb72bb75384df4e9257ae092b73_2453f621-f6c4-4032-903d-edebd4133b3d.webp?v=1714977494"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e719db8634831e99bcee109c266ea63c8106540_4b336493-58de-4932-b4c3-19f056e153c2.webp?v=1714977473","options":["color"],"media":[{"alt":null,"id":23897298763875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e719db8634831e99bcee109c266ea63c8106540_4b336493-58de-4932-b4c3-19f056e153c2.webp?v=1714977473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e719db8634831e99bcee109c266ea63c8106540_4b336493-58de-4932-b4c3-19f056e153c2.webp?v=1714977473","width":2000},{"alt":null,"id":23897299452003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8a79bbe91d3b758d7f25e091b530baeadd4d4a_f53ce7a4-5918-4406-b66b-175a35e779f3.webp?v=1714977475"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5b8a79bbe91d3b758d7f25e091b530baeadd4d4a_f53ce7a4-5918-4406-b66b-175a35e779f3.webp?v=1714977475","width":2000},{"alt":null,"id":23897300009059,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b0d2f3d2c2ef14e4d5e403f70b965066a53edc_febc292b-86c4-463e-84a0-59a310a82dc3.webp?v=1714977477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b0d2f3d2c2ef14e4d5e403f70b965066a53edc_febc292b-86c4-463e-84a0-59a310a82dc3.webp?v=1714977477","width":2000},{"alt":null,"id":23897300598883,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a04c4be43f9cc807d36bd054f6b09c53488ee6_adadbd63-f73d-43aa-a3d0-ed0cb5d7265c.webp?v=1714977480"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a04c4be43f9cc807d36bd054f6b09c53488ee6_adadbd63-f73d-43aa-a3d0-ed0cb5d7265c.webp?v=1714977480","width":2000},{"alt":null,"id":23897300926563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e84e183b5ef21aab9deb02b281f4c6eaa50e9c9_f486cdae-bdf8-4054-9472-136b7836bb1e.webp?v=1714977482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e84e183b5ef21aab9deb02b281f4c6eaa50e9c9_f486cdae-bdf8-4054-9472-136b7836bb1e.webp?v=1714977482","width":2000},{"alt":null,"id":23897301712995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4cd617d76d7a9edf40f03f674e5c5035e815c8c_4e11095d-d3fd-423c-a213-e89052d84ad9.webp?v=1714977485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4cd617d76d7a9edf40f03f674e5c5035e815c8c_4e11095d-d3fd-423c-a213-e89052d84ad9.webp?v=1714977485","width":2000},{"alt":null,"id":23897302007907,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486a6f5f584699d6772edd4d1b2b1bab90378176_3a62a577-0d4f-4056-9b7a-ea8073e8cefa.webp?v=1714977487"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/486a6f5f584699d6772edd4d1b2b1bab90378176_3a62a577-0d4f-4056-9b7a-ea8073e8cefa.webp?v=1714977487","width":2000},{"alt":null,"id":23897302564963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff702da7069c5d1946d891ffa4053aa0cfea8b7c_e07ed250-c34f-4615-a349-32b8d6a11ea9.webp?v=1714977490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff702da7069c5d1946d891ffa4053aa0cfea8b7c_e07ed250-c34f-4615-a349-32b8d6a11ea9.webp?v=1714977490","width":2000},{"alt":null,"id":23897302990947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb4f86dfc62c6fa0998356729f46ebc7dc2986b1_379adbe9-cc27-42a3-99ca-e79cd3d2312c.webp?v=1714977492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb4f86dfc62c6fa0998356729f46ebc7dc2986b1_379adbe9-cc27-42a3-99ca-e79cd3d2312c.webp?v=1714977492","width":2000},{"alt":null,"id":23897303416931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25de9fc5af73edb72bb75384df4e9257ae092b73_2453f621-f6c4-4032-903d-edebd4133b3d.webp?v=1714977494"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25de9fc5af73edb72bb75384df4e9257ae092b73_2453f621-f6c4-4032-903d-edebd4133b3d.webp?v=1714977494","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918678073443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31491889692771,"product_id":7416340217955,"position":8,"created_at":"2024-05-06T14:38:10+08:00","updated_at":"2024-05-06T14:38:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff702da7069c5d1946d891ffa4053aa0cfea8b7c_e07ed250-c34f-4615-a349-32b8d6a11ea9.webp?v=1714977490","variant_ids":[41918678073443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0105424-PB97","featured_media":{"alt":null,"id":23897302564963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff702da7069c5d1946d891ffa4053aa0cfea8b7c_e07ed250-c34f-4615-a349-32b8d6a11ea9.webp?v=1714977490"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918678073443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB97","requires_shipping":true,"taxable":true,"featured_image":{"id":31491889692771,"product_id":7416340217955,"position":8,"created_at":"2024-05-06T14:38:10+08:00","updated_at":"2024-05-06T14:38:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff702da7069c5d1946d891ffa4053aa0cfea8b7c_e07ed250-c34f-4615-a349-32b8d6a11ea9.webp?v=1714977490","variant_ids":[41918678073443]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0105424-PB97","featured_media":{"alt":null,"id":23897302564963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff702da7069c5d1946d891ffa4053aa0cfea8b7c_e07ed250-c34f-4615-a349-32b8d6a11ea9.webp?v=1714977490"}},"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: "停產" }