$product = {"id":7408422518883,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 小圖款-丘巴卡","handle":"iphone-12-pro-max-mod-nx-printable-pc07","description":null,"published_at":"2024-06-11T16:36:48+08:00","created_at":"2024-05-03T15:23:39+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 12 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":41885302718563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31472235511907,"product_id":7408422518883,"position":6,"created_at":"2024-05-03T15:23:53+08:00","updated_at":"2024-05-03T15:23:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7a210caeb055363a86c5220f2e34b27a6461b6_1d6d8ffc-2282-4576-b742-0d03fa0bb6a7.webp?v=1714721033","variant_ids":[41885302718563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PC07","featured_media":{"alt":null,"id":23877151621219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7a210caeb055363a86c5220f2e34b27a6461b6_1d6d8ffc-2282-4576-b742-0d03fa0bb6a7.webp?v=1714721033"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1a23c8b20921d1ec9b1b91a127b6a022213c8c4_3231ac33-305e-4403-80d6-eed16cdd0ffd.webp?v=1714721022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd09c36cb88a09e31c4e967cb86ea83728559d36_7d68518a-1ad4-43f2-9c8b-42ba2d11666d.webp?v=1714721024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe652669cfa28afcc21e00ee524d5b0d5161adc8_0abc70b0-f076-46d8-9741-d0fd3227893d.webp?v=1714721026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47ba18f4bd1e359de0fad85c73a3b2e9b108c167_3b9f7336-37e2-4ae0-a87e-1e89565bfbca.webp?v=1714721028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529ae5fcd26ffc7027afd0d61caaabf0cb789f00_6ea3be69-ac44-4d7e-87a5-3770e1a18485.webp?v=1714721030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7a210caeb055363a86c5220f2e34b27a6461b6_1d6d8ffc-2282-4576-b742-0d03fa0bb6a7.webp?v=1714721033","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17944163621790472ec61af85f4a1e4c6ce7609d_794257ce-1d4a-47be-8ca9-641d4d9a60c6.webp?v=1714721035","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47cf0150c1fff2d18d1cb1c7249a8ec38859aa9_0e9e818f-bed0-476c-b5c2-41aeed1f4303.webp?v=1714721037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b533cb63b775ec6d86afb629535f463d0e981140_60050198-2466-4e01-b076-63d195cf4d56.webp?v=1714721040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c81964679550cb91575ebcfc1d3aab5a4ba4f04_b4dac6d6-1371-4fc1-b8f1-4e2a410c8185.webp?v=1714721042"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1a23c8b20921d1ec9b1b91a127b6a022213c8c4_3231ac33-305e-4403-80d6-eed16cdd0ffd.webp?v=1714721022","options":["color"],"media":[{"alt":null,"id":23877149163619,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1a23c8b20921d1ec9b1b91a127b6a022213c8c4_3231ac33-305e-4403-80d6-eed16cdd0ffd.webp?v=1714721022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1a23c8b20921d1ec9b1b91a127b6a022213c8c4_3231ac33-305e-4403-80d6-eed16cdd0ffd.webp?v=1714721022","width":2000},{"alt":null,"id":23877149720675,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd09c36cb88a09e31c4e967cb86ea83728559d36_7d68518a-1ad4-43f2-9c8b-42ba2d11666d.webp?v=1714721024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd09c36cb88a09e31c4e967cb86ea83728559d36_7d68518a-1ad4-43f2-9c8b-42ba2d11666d.webp?v=1714721024","width":2000},{"alt":null,"id":23877150146659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe652669cfa28afcc21e00ee524d5b0d5161adc8_0abc70b0-f076-46d8-9741-d0fd3227893d.webp?v=1714721026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe652669cfa28afcc21e00ee524d5b0d5161adc8_0abc70b0-f076-46d8-9741-d0fd3227893d.webp?v=1714721026","width":2000},{"alt":null,"id":23877150670947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47ba18f4bd1e359de0fad85c73a3b2e9b108c167_3b9f7336-37e2-4ae0-a87e-1e89565bfbca.webp?v=1714721028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47ba18f4bd1e359de0fad85c73a3b2e9b108c167_3b9f7336-37e2-4ae0-a87e-1e89565bfbca.webp?v=1714721028","width":2000},{"alt":null,"id":23877151195235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529ae5fcd26ffc7027afd0d61caaabf0cb789f00_6ea3be69-ac44-4d7e-87a5-3770e1a18485.webp?v=1714721030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529ae5fcd26ffc7027afd0d61caaabf0cb789f00_6ea3be69-ac44-4d7e-87a5-3770e1a18485.webp?v=1714721030","width":2000},{"alt":null,"id":23877151621219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7a210caeb055363a86c5220f2e34b27a6461b6_1d6d8ffc-2282-4576-b742-0d03fa0bb6a7.webp?v=1714721033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7a210caeb055363a86c5220f2e34b27a6461b6_1d6d8ffc-2282-4576-b742-0d03fa0bb6a7.webp?v=1714721033","width":2000},{"alt":null,"id":23877152014435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17944163621790472ec61af85f4a1e4c6ce7609d_794257ce-1d4a-47be-8ca9-641d4d9a60c6.webp?v=1714721035"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17944163621790472ec61af85f4a1e4c6ce7609d_794257ce-1d4a-47be-8ca9-641d4d9a60c6.webp?v=1714721035","width":2000},{"alt":null,"id":23877152538723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47cf0150c1fff2d18d1cb1c7249a8ec38859aa9_0e9e818f-bed0-476c-b5c2-41aeed1f4303.webp?v=1714721037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b47cf0150c1fff2d18d1cb1c7249a8ec38859aa9_0e9e818f-bed0-476c-b5c2-41aeed1f4303.webp?v=1714721037","width":2000},{"alt":null,"id":23877153030243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b533cb63b775ec6d86afb629535f463d0e981140_60050198-2466-4e01-b076-63d195cf4d56.webp?v=1714721040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b533cb63b775ec6d86afb629535f463d0e981140_60050198-2466-4e01-b076-63d195cf4d56.webp?v=1714721040","width":2000},{"alt":null,"id":23877153423459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c81964679550cb91575ebcfc1d3aab5a4ba4f04_b4dac6d6-1371-4fc1-b8f1-4e2a410c8185.webp?v=1714721042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c81964679550cb91575ebcfc1d3aab5a4ba4f04_b4dac6d6-1371-4fc1-b8f1-4e2a410c8185.webp?v=1714721042","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885302718563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31472235511907,"product_id":7408422518883,"position":6,"created_at":"2024-05-03T15:23:53+08:00","updated_at":"2024-05-03T15:23:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7a210caeb055363a86c5220f2e34b27a6461b6_1d6d8ffc-2282-4576-b742-0d03fa0bb6a7.webp?v=1714721033","variant_ids":[41885302718563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PC07","featured_media":{"alt":null,"id":23877151621219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7a210caeb055363a86c5220f2e34b27a6461b6_1d6d8ffc-2282-4576-b742-0d03fa0bb6a7.webp?v=1714721033"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885302718563,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC07","requires_shipping":true,"taxable":true,"featured_image":{"id":31472235511907,"product_id":7408422518883,"position":6,"created_at":"2024-05-03T15:23:53+08:00","updated_at":"2024-05-03T15:23:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7a210caeb055363a86c5220f2e34b27a6461b6_1d6d8ffc-2282-4576-b742-0d03fa0bb6a7.webp?v=1714721033","variant_ids":[41885302718563]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PC07","featured_media":{"alt":null,"id":23877151621219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b7a210caeb055363a86c5220f2e34b27a6461b6_1d6d8ffc-2282-4576-b742-0d03fa0bb6a7.webp?v=1714721033"}},"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: "停產" }