$product = {"id":7408452010083,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-散步-幽默系列","handle":"iphone-12-pro-max-mod-nx-printable-pc13","description":null,"published_at":"2024-06-11T16:37:36+08:00","created_at":"2024-05-03T15:29:09+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":41885628825699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31472314613859,"product_id":7408452010083,"position":7,"created_at":"2024-05-03T15:29:25+08:00","updated_at":"2024-05-03T15:29:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b6a22d288fb49b0a4c5bad5e2d018ace5f7a3_e562c4f4-2461-49d4-852d-9d846ffd5bbd.webp?v=1714721365","variant_ids":[41885628825699]},"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-PC13","featured_media":{"alt":null,"id":23877231018083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b6a22d288fb49b0a4c5bad5e2d018ace5f7a3_e562c4f4-2461-49d4-852d-9d846ffd5bbd.webp?v=1714721365"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afae69726a96969c63c6d49d4b6e83ad4bd44b1f_5ad699d2-578e-4ebb-b973-e8cd87294565.webp?v=1714721351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2a5aac37cfaa62e757329d68c52c7a500aeed10_942988a6-48ac-4ffa-a509-b0a8c0dd9b22.webp?v=1714721353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f21148be8be91c3081789cb57b3adc432c2670bc_64f28030-1f13-4715-ab1e-5044210eb3d9.webp?v=1714721356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0da8261f4bf9ee6d7199b987eeb5ccf2a1bb78f_c3189c8e-8378-48a0-8827-43e61e9f80eb.webp?v=1714721358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32e3fd88ac202fc30e75ac766dbb8e41296f8618_c07b6b69-c9a1-4f1d-afb0-96c104653f31.webp?v=1714721361","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fecd9c69d49244633757adfab8008874eeeb4f_80add307-df9b-4db8-b541-61b81c892e48.webp?v=1714721363","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b6a22d288fb49b0a4c5bad5e2d018ace5f7a3_e562c4f4-2461-49d4-852d-9d846ffd5bbd.webp?v=1714721365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ac42b20825a6d2cf733c1cc15f9ff6a5401cc48_a253d31f-acd4-44ae-8731-b544e78d5998.webp?v=1714721367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819d6f67c75dc4479ac7f9f41c3e4a0a7785940b_cbb29df7-3171-4410-a4dd-76f6751f8bae.webp?v=1714721370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13ca78b106d190c9235d461daa908d296a9bebce_eb4492fe-e896-44d2-be7a-fdbb10b82750.webp?v=1714721372"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afae69726a96969c63c6d49d4b6e83ad4bd44b1f_5ad699d2-578e-4ebb-b973-e8cd87294565.webp?v=1714721351","options":["color"],"media":[{"alt":null,"id":23877228101731,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afae69726a96969c63c6d49d4b6e83ad4bd44b1f_5ad699d2-578e-4ebb-b973-e8cd87294565.webp?v=1714721351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afae69726a96969c63c6d49d4b6e83ad4bd44b1f_5ad699d2-578e-4ebb-b973-e8cd87294565.webp?v=1714721351","width":2000},{"alt":null,"id":23877228462179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2a5aac37cfaa62e757329d68c52c7a500aeed10_942988a6-48ac-4ffa-a509-b0a8c0dd9b22.webp?v=1714721353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2a5aac37cfaa62e757329d68c52c7a500aeed10_942988a6-48ac-4ffa-a509-b0a8c0dd9b22.webp?v=1714721353","width":2000},{"alt":null,"id":23877229019235,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f21148be8be91c3081789cb57b3adc432c2670bc_64f28030-1f13-4715-ab1e-5044210eb3d9.webp?v=1714721356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f21148be8be91c3081789cb57b3adc432c2670bc_64f28030-1f13-4715-ab1e-5044210eb3d9.webp?v=1714721356","width":2000},{"alt":null,"id":23877229445219,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0da8261f4bf9ee6d7199b987eeb5ccf2a1bb78f_c3189c8e-8378-48a0-8827-43e61e9f80eb.webp?v=1714721358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0da8261f4bf9ee6d7199b987eeb5ccf2a1bb78f_c3189c8e-8378-48a0-8827-43e61e9f80eb.webp?v=1714721358","width":2000},{"alt":null,"id":23877230133347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32e3fd88ac202fc30e75ac766dbb8e41296f8618_c07b6b69-c9a1-4f1d-afb0-96c104653f31.webp?v=1714721361"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32e3fd88ac202fc30e75ac766dbb8e41296f8618_c07b6b69-c9a1-4f1d-afb0-96c104653f31.webp?v=1714721361","width":2000},{"alt":null,"id":23877230526563,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fecd9c69d49244633757adfab8008874eeeb4f_80add307-df9b-4db8-b541-61b81c892e48.webp?v=1714721363"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/55fecd9c69d49244633757adfab8008874eeeb4f_80add307-df9b-4db8-b541-61b81c892e48.webp?v=1714721363","width":2000},{"alt":null,"id":23877231018083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b6a22d288fb49b0a4c5bad5e2d018ace5f7a3_e562c4f4-2461-49d4-852d-9d846ffd5bbd.webp?v=1714721365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b6a22d288fb49b0a4c5bad5e2d018ace5f7a3_e562c4f4-2461-49d4-852d-9d846ffd5bbd.webp?v=1714721365","width":2000},{"alt":null,"id":23877231509603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ac42b20825a6d2cf733c1cc15f9ff6a5401cc48_a253d31f-acd4-44ae-8731-b544e78d5998.webp?v=1714721367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ac42b20825a6d2cf733c1cc15f9ff6a5401cc48_a253d31f-acd4-44ae-8731-b544e78d5998.webp?v=1714721367","width":2000},{"alt":null,"id":23877231870051,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819d6f67c75dc4479ac7f9f41c3e4a0a7785940b_cbb29df7-3171-4410-a4dd-76f6751f8bae.webp?v=1714721370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819d6f67c75dc4479ac7f9f41c3e4a0a7785940b_cbb29df7-3171-4410-a4dd-76f6751f8bae.webp?v=1714721370","width":2000},{"alt":null,"id":23877232427107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13ca78b106d190c9235d461daa908d296a9bebce_eb4492fe-e896-44d2-be7a-fdbb10b82750.webp?v=1714721372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13ca78b106d190c9235d461daa908d296a9bebce_eb4492fe-e896-44d2-be7a-fdbb10b82750.webp?v=1714721372","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885628825699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31472314613859,"product_id":7408452010083,"position":7,"created_at":"2024-05-03T15:29:25+08:00","updated_at":"2024-05-03T15:29:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b6a22d288fb49b0a4c5bad5e2d018ace5f7a3_e562c4f4-2461-49d4-852d-9d846ffd5bbd.webp?v=1714721365","variant_ids":[41885628825699]},"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-PC13","featured_media":{"alt":null,"id":23877231018083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b6a22d288fb49b0a4c5bad5e2d018ace5f7a3_e562c4f4-2461-49d4-852d-9d846ffd5bbd.webp?v=1714721365"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885628825699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PC13","requires_shipping":true,"taxable":true,"featured_image":{"id":31472314613859,"product_id":7408452010083,"position":7,"created_at":"2024-05-03T15:29:25+08:00","updated_at":"2024-05-03T15:29:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b6a22d288fb49b0a4c5bad5e2d018ace5f7a3_e562c4f4-2461-49d4-852d-9d846ffd5bbd.webp?v=1714721365","variant_ids":[41885628825699]},"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-PC13","featured_media":{"alt":null,"id":23877231018083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b6a22d288fb49b0a4c5bad5e2d018ace5f7a3_e562c4f4-2461-49d4-852d-9d846ffd5bbd.webp?v=1714721365"}},"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: "停產" }