$product = {"id":7408390373475,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-全白設計","handle":"iphone-12-pro-max-mod-nx-printable-pb103","description":null,"published_at":"2024-06-11T16:35:56+08:00","created_at":"2024-05-03T15:17:07+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":41884947316835,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31472140845155,"product_id":7408390373475,"position":10,"created_at":"2024-05-03T15:17:31+08:00","updated_at":"2024-05-03T15:17:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77202b462f27a38028f373a8166017888a736fc6_237da87f-ae9e-455a-8a5a-734fbf48c6c6.webp?v=1714720651","variant_ids":[41884947316835]},"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-PB103","featured_media":{"alt":null,"id":23877056397411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77202b462f27a38028f373a8166017888a736fc6_237da87f-ae9e-455a-8a5a-734fbf48c6c6.webp?v=1714720651"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e203f7412e200792d9b6db34f1b2259ec16d6f9_82912c0c-1474-45ae-9e60-8989aceb76d0.webp?v=1714720629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c626a4145f062fe56f25222cc9c29b732e90782_5cef925e-8fde-42e0-8f85-464839c62467.webp?v=1714720632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb592b1fb9b465c3aee36dddc42417bcc072255_c4f825d9-8c61-480f-aaef-bf5e7af22405.webp?v=1714720634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122e18b658d2a0fbf051af3608bf30329c1a253c_04e93dba-1aea-41ed-8445-bd841be92873.webp?v=1714720636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4874ba94c70adc96ce84ec48c529eb889948d34f_8b0e264f-c8ad-46b9-a06c-c947acc7ae76.webp?v=1714720639","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9532aad0c4aeac8c7cbb2a101d34501e17e66c64_cbd47134-4fa6-45d1-80ab-b3940a4db65c.webp?v=1714720641","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485241a199e45384e7ece664cfa45bed32a579ef_4beb70e5-603a-4e75-bb64-cdfa8ced69b8.webp?v=1714720643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8fb9157cb359d765fd4620f54d85df07447cd0f_7ccccf22-20ec-4cf5-aabe-386a8411795f.webp?v=1714720646","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5393c930d9f8143d689870f5b93e2542fc1b79c1_5369306d-1e9b-485e-9bb9-eede60f541dd.webp?v=1714720648","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77202b462f27a38028f373a8166017888a736fc6_237da87f-ae9e-455a-8a5a-734fbf48c6c6.webp?v=1714720651"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e203f7412e200792d9b6db34f1b2259ec16d6f9_82912c0c-1474-45ae-9e60-8989aceb76d0.webp?v=1714720629","options":["color"],"media":[{"alt":null,"id":23877051908195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e203f7412e200792d9b6db34f1b2259ec16d6f9_82912c0c-1474-45ae-9e60-8989aceb76d0.webp?v=1714720629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e203f7412e200792d9b6db34f1b2259ec16d6f9_82912c0c-1474-45ae-9e60-8989aceb76d0.webp?v=1714720629","width":2000},{"alt":null,"id":23877052334179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c626a4145f062fe56f25222cc9c29b732e90782_5cef925e-8fde-42e0-8f85-464839c62467.webp?v=1714720632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c626a4145f062fe56f25222cc9c29b732e90782_5cef925e-8fde-42e0-8f85-464839c62467.webp?v=1714720632","width":2000},{"alt":null,"id":23877053022307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb592b1fb9b465c3aee36dddc42417bcc072255_c4f825d9-8c61-480f-aaef-bf5e7af22405.webp?v=1714720634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb592b1fb9b465c3aee36dddc42417bcc072255_c4f825d9-8c61-480f-aaef-bf5e7af22405.webp?v=1714720634","width":2000},{"alt":null,"id":23877053349987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122e18b658d2a0fbf051af3608bf30329c1a253c_04e93dba-1aea-41ed-8445-bd841be92873.webp?v=1714720636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/122e18b658d2a0fbf051af3608bf30329c1a253c_04e93dba-1aea-41ed-8445-bd841be92873.webp?v=1714720636","width":2000},{"alt":null,"id":23877054005347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4874ba94c70adc96ce84ec48c529eb889948d34f_8b0e264f-c8ad-46b9-a06c-c947acc7ae76.webp?v=1714720639"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4874ba94c70adc96ce84ec48c529eb889948d34f_8b0e264f-c8ad-46b9-a06c-c947acc7ae76.webp?v=1714720639","width":2000},{"alt":null,"id":23877054431331,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9532aad0c4aeac8c7cbb2a101d34501e17e66c64_cbd47134-4fa6-45d1-80ab-b3940a4db65c.webp?v=1714720641"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9532aad0c4aeac8c7cbb2a101d34501e17e66c64_cbd47134-4fa6-45d1-80ab-b3940a4db65c.webp?v=1714720641","width":2000},{"alt":null,"id":23877054988387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485241a199e45384e7ece664cfa45bed32a579ef_4beb70e5-603a-4e75-bb64-cdfa8ced69b8.webp?v=1714720643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485241a199e45384e7ece664cfa45bed32a579ef_4beb70e5-603a-4e75-bb64-cdfa8ced69b8.webp?v=1714720643","width":2000},{"alt":null,"id":23877055512675,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8fb9157cb359d765fd4620f54d85df07447cd0f_7ccccf22-20ec-4cf5-aabe-386a8411795f.webp?v=1714720646"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8fb9157cb359d765fd4620f54d85df07447cd0f_7ccccf22-20ec-4cf5-aabe-386a8411795f.webp?v=1714720646","width":2000},{"alt":null,"id":23877055971427,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5393c930d9f8143d689870f5b93e2542fc1b79c1_5369306d-1e9b-485e-9bb9-eede60f541dd.webp?v=1714720648"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5393c930d9f8143d689870f5b93e2542fc1b79c1_5369306d-1e9b-485e-9bb9-eede60f541dd.webp?v=1714720648","width":2000},{"alt":null,"id":23877056397411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77202b462f27a38028f373a8166017888a736fc6_237da87f-ae9e-455a-8a5a-734fbf48c6c6.webp?v=1714720651"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77202b462f27a38028f373a8166017888a736fc6_237da87f-ae9e-455a-8a5a-734fbf48c6c6.webp?v=1714720651","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41884947316835,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31472140845155,"product_id":7408390373475,"position":10,"created_at":"2024-05-03T15:17:31+08:00","updated_at":"2024-05-03T15:17:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77202b462f27a38028f373a8166017888a736fc6_237da87f-ae9e-455a-8a5a-734fbf48c6c6.webp?v=1714720651","variant_ids":[41884947316835]},"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-PB103","featured_media":{"alt":null,"id":23877056397411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77202b462f27a38028f373a8166017888a736fc6_237da87f-ae9e-455a-8a5a-734fbf48c6c6.webp?v=1714720651"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41884947316835,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB103","requires_shipping":true,"taxable":true,"featured_image":{"id":31472140845155,"product_id":7408390373475,"position":10,"created_at":"2024-05-03T15:17:31+08:00","updated_at":"2024-05-03T15:17:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77202b462f27a38028f373a8166017888a736fc6_237da87f-ae9e-455a-8a5a-734fbf48c6c6.webp?v=1714720651","variant_ids":[41884947316835]},"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-PB103","featured_media":{"alt":null,"id":23877056397411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77202b462f27a38028f373a8166017888a736fc6_237da87f-ae9e-455a-8a5a-734fbf48c6c6.webp?v=1714720651"}},"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: "停產" }