$product = {"id":7408457154659,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - C3PO-經典","handle":"iphone-12-mini-mod-nx-printable-pb24","description":null,"published_at":"2024-06-11T16:37:45+08:00","created_at":"2024-05-03T15:30:21+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 mini","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":41885691478115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31472329261155,"product_id":7408457154659,"position":5,"created_at":"2024-05-03T15:30:33+08:00","updated_at":"2024-05-03T15:30:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066aafadc16f4d29e2166376862edae413a6e833_692d8f12-25bb-4ebf-8c81-00ad744fe3d2.webp?v=1714721433","variant_ids":[41885691478115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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":"NPB0118424-PB24","featured_media":{"alt":null,"id":23877245730915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066aafadc16f4d29e2166376862edae413a6e833_692d8f12-25bb-4ebf-8c81-00ad744fe3d2.webp?v=1714721433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac0b1ee44270d04279ee87232bee9b8f969f911_5a91b803-de9f-4ff7-a97f-58c0b6182d7a.webp?v=1714721423","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd1d63e2a422a5327af3d4e54e76c029202ac33_a889f50b-b5ae-4ebd-8a03-296da7c660f6.webp?v=1714721426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae17d1c2c8464cd678c54efab85a2ffb8f20d86_6754f097-e1c6-4d23-b243-29181388a2fb.webp?v=1714721428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277ca3846f6dc8439d46b614540156c1306b67ba_a8c6ec0c-4f5c-49b4-b175-13a28e325a46.webp?v=1714721431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066aafadc16f4d29e2166376862edae413a6e833_692d8f12-25bb-4ebf-8c81-00ad744fe3d2.webp?v=1714721433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbac07843dbe798a72aa0bbd52a37dd60d7e6f1_dd0e7e26-7f48-4c68-9b01-b38fdad30915.webp?v=1714721435","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9305460c812a70d851a94bdabd8acfbc98ff0ed3_469afdcb-e4a3-49a1-a04a-ec090ce7067e.webp?v=1714721437","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e569e2e4a557b207475202ba154e9e57e4d00501_3ec43f9e-4862-4d7d-b7f1-b5018d715420.webp?v=1714721440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b157c982139bc6cbcce0586995b4bed06d79aef_3c83bbe6-a08d-48b3-8a34-45c5871fbf9f.webp?v=1714721442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec120493649168eab433dd1abad57e7d8e0e89d_81e2c4b3-e6cd-4d38-ab7f-56daa67fcbc2.webp?v=1714721445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de11a7358b7bafd92cc131d4e58ae8682ab12dd1_6e727209-e6f9-4355-ad0f-4b3496f0894c.webp?v=1714721447"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac0b1ee44270d04279ee87232bee9b8f969f911_5a91b803-de9f-4ff7-a97f-58c0b6182d7a.webp?v=1714721423","options":["color"],"media":[{"alt":null,"id":23877243535459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac0b1ee44270d04279ee87232bee9b8f969f911_5a91b803-de9f-4ff7-a97f-58c0b6182d7a.webp?v=1714721423"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac0b1ee44270d04279ee87232bee9b8f969f911_5a91b803-de9f-4ff7-a97f-58c0b6182d7a.webp?v=1714721423","width":2000},{"alt":null,"id":23877244026979,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd1d63e2a422a5327af3d4e54e76c029202ac33_a889f50b-b5ae-4ebd-8a03-296da7c660f6.webp?v=1714721426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd1d63e2a422a5327af3d4e54e76c029202ac33_a889f50b-b5ae-4ebd-8a03-296da7c660f6.webp?v=1714721426","width":2000},{"alt":null,"id":23877244584035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae17d1c2c8464cd678c54efab85a2ffb8f20d86_6754f097-e1c6-4d23-b243-29181388a2fb.webp?v=1714721428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae17d1c2c8464cd678c54efab85a2ffb8f20d86_6754f097-e1c6-4d23-b243-29181388a2fb.webp?v=1714721428","width":2000},{"alt":null,"id":23877245173859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277ca3846f6dc8439d46b614540156c1306b67ba_a8c6ec0c-4f5c-49b4-b175-13a28e325a46.webp?v=1714721431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/277ca3846f6dc8439d46b614540156c1306b67ba_a8c6ec0c-4f5c-49b4-b175-13a28e325a46.webp?v=1714721431","width":2000},{"alt":null,"id":23877245730915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066aafadc16f4d29e2166376862edae413a6e833_692d8f12-25bb-4ebf-8c81-00ad744fe3d2.webp?v=1714721433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066aafadc16f4d29e2166376862edae413a6e833_692d8f12-25bb-4ebf-8c81-00ad744fe3d2.webp?v=1714721433","width":2000},{"alt":null,"id":23877246124131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbac07843dbe798a72aa0bbd52a37dd60d7e6f1_dd0e7e26-7f48-4c68-9b01-b38fdad30915.webp?v=1714721435"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4cbac07843dbe798a72aa0bbd52a37dd60d7e6f1_dd0e7e26-7f48-4c68-9b01-b38fdad30915.webp?v=1714721435","width":2000},{"alt":null,"id":23877246713955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9305460c812a70d851a94bdabd8acfbc98ff0ed3_469afdcb-e4a3-49a1-a04a-ec090ce7067e.webp?v=1714721437"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9305460c812a70d851a94bdabd8acfbc98ff0ed3_469afdcb-e4a3-49a1-a04a-ec090ce7067e.webp?v=1714721437","width":2000},{"alt":null,"id":23877247139939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e569e2e4a557b207475202ba154e9e57e4d00501_3ec43f9e-4862-4d7d-b7f1-b5018d715420.webp?v=1714721440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e569e2e4a557b207475202ba154e9e57e4d00501_3ec43f9e-4862-4d7d-b7f1-b5018d715420.webp?v=1714721440","width":2000},{"alt":null,"id":23877247664227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b157c982139bc6cbcce0586995b4bed06d79aef_3c83bbe6-a08d-48b3-8a34-45c5871fbf9f.webp?v=1714721442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b157c982139bc6cbcce0586995b4bed06d79aef_3c83bbe6-a08d-48b3-8a34-45c5871fbf9f.webp?v=1714721442","width":2000},{"alt":null,"id":23877248090211,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec120493649168eab433dd1abad57e7d8e0e89d_81e2c4b3-e6cd-4d38-ab7f-56daa67fcbc2.webp?v=1714721445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec120493649168eab433dd1abad57e7d8e0e89d_81e2c4b3-e6cd-4d38-ab7f-56daa67fcbc2.webp?v=1714721445","width":2000},{"alt":null,"id":23877248712803,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de11a7358b7bafd92cc131d4e58ae8682ab12dd1_6e727209-e6f9-4355-ad0f-4b3496f0894c.webp?v=1714721447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de11a7358b7bafd92cc131d4e58ae8682ab12dd1_6e727209-e6f9-4355-ad0f-4b3496f0894c.webp?v=1714721447","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885691478115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31472329261155,"product_id":7408457154659,"position":5,"created_at":"2024-05-03T15:30:33+08:00","updated_at":"2024-05-03T15:30:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066aafadc16f4d29e2166376862edae413a6e833_692d8f12-25bb-4ebf-8c81-00ad744fe3d2.webp?v=1714721433","variant_ids":[41885691478115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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":"NPB0118424-PB24","featured_media":{"alt":null,"id":23877245730915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066aafadc16f4d29e2166376862edae413a6e833_692d8f12-25bb-4ebf-8c81-00ad744fe3d2.webp?v=1714721433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885691478115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB24","requires_shipping":true,"taxable":true,"featured_image":{"id":31472329261155,"product_id":7408457154659,"position":5,"created_at":"2024-05-03T15:30:33+08:00","updated_at":"2024-05-03T15:30:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066aafadc16f4d29e2166376862edae413a6e833_692d8f12-25bb-4ebf-8c81-00ad744fe3d2.webp?v=1714721433","variant_ids":[41885691478115]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - C3PO-經典 - 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":"NPB0118424-PB24","featured_media":{"alt":null,"id":23877245730915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/066aafadc16f4d29e2166376862edae413a6e833_692d8f12-25bb-4ebf-8c81-00ad744fe3d2.webp?v=1714721433"}},"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: "停產" }