$product = {"id":7408473931875,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機","handle":"iphone-12-pro-max-mod-nx-printable-pb28","description":null,"published_at":"2024-06-11T16:38:14+08:00","created_at":"2024-05-03T15:33:38+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":41885885825123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31472371433571,"product_id":7408473931875,"position":10,"created_at":"2024-05-03T15:34:02+08:00","updated_at":"2024-05-03T15:34:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732cfb7f5df80daf8374902df4f61e5bc7ac1798_113438a9-ffc2-4727-aa97-116039e8c503.webp?v=1714721642","variant_ids":[41885885825123]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23877288296547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732cfb7f5df80daf8374902df4f61e5bc7ac1798_113438a9-ffc2-4727-aa97-116039e8c503.webp?v=1714721642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6cd39519602210d4ef4c751e45ad48852504220_1898015f-0536-4cf0-9b82-e79cea3490ab.webp?v=1714721620","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95034ed16b7600fcc297603fd4686f079d40031_b8088dd0-8aa2-435f-a886-2ac79b21ca75.webp?v=1714721623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37169e752eeb959b56868420c865d296856f3f45_0c75e0fa-dfd7-48cd-aa37-9ca56ae07819.webp?v=1714721625","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e466033e78a34034fffa6a61ccf7375f2abda0_022d401e-3430-4646-beef-fa4fb759cce5.webp?v=1714721628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db7d21a502df9d80ce87cb3f1371344a4b424b04_49246645-f237-44e2-9368-2e6ae873fc48.webp?v=1714721630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cddd29b07e7841773dd067bbb4d888ee27016c1a_c63ee9b5-e3ab-414d-b672-5dd0600ae800.webp?v=1714721633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba9282b308246dddfc39543f12bea5ee15b7aa44_bb5fafc9-b430-44ee-98ed-91225421865b.webp?v=1714721635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/376e5cda00153564ab17b1f0d3d9d532f167f36e_f80ce655-a457-4298-a090-018645af7c9a.webp?v=1714721637","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df7ff48270997b40b857465f3703274949835f7_c0703c3f-9585-4237-8bd7-130250cc6fb1.webp?v=1714721640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732cfb7f5df80daf8374902df4f61e5bc7ac1798_113438a9-ffc2-4727-aa97-116039e8c503.webp?v=1714721642"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6cd39519602210d4ef4c751e45ad48852504220_1898015f-0536-4cf0-9b82-e79cea3490ab.webp?v=1714721620","options":["color"],"media":[{"alt":null,"id":23877283840099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6cd39519602210d4ef4c751e45ad48852504220_1898015f-0536-4cf0-9b82-e79cea3490ab.webp?v=1714721620"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a6cd39519602210d4ef4c751e45ad48852504220_1898015f-0536-4cf0-9b82-e79cea3490ab.webp?v=1714721620","width":2000},{"alt":null,"id":23877284429923,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95034ed16b7600fcc297603fd4686f079d40031_b8088dd0-8aa2-435f-a886-2ac79b21ca75.webp?v=1714721623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f95034ed16b7600fcc297603fd4686f079d40031_b8088dd0-8aa2-435f-a886-2ac79b21ca75.webp?v=1714721623","width":2000},{"alt":null,"id":23877284888675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37169e752eeb959b56868420c865d296856f3f45_0c75e0fa-dfd7-48cd-aa37-9ca56ae07819.webp?v=1714721625"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37169e752eeb959b56868420c865d296856f3f45_0c75e0fa-dfd7-48cd-aa37-9ca56ae07819.webp?v=1714721625","width":2000},{"alt":null,"id":23877285445731,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e466033e78a34034fffa6a61ccf7375f2abda0_022d401e-3430-4646-beef-fa4fb759cce5.webp?v=1714721628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e466033e78a34034fffa6a61ccf7375f2abda0_022d401e-3430-4646-beef-fa4fb759cce5.webp?v=1714721628","width":2000},{"alt":null,"id":23877286002787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db7d21a502df9d80ce87cb3f1371344a4b424b04_49246645-f237-44e2-9368-2e6ae873fc48.webp?v=1714721630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db7d21a502df9d80ce87cb3f1371344a4b424b04_49246645-f237-44e2-9368-2e6ae873fc48.webp?v=1714721630","width":2000},{"alt":null,"id":23877286396003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cddd29b07e7841773dd067bbb4d888ee27016c1a_c63ee9b5-e3ab-414d-b672-5dd0600ae800.webp?v=1714721633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cddd29b07e7841773dd067bbb4d888ee27016c1a_c63ee9b5-e3ab-414d-b672-5dd0600ae800.webp?v=1714721633","width":2000},{"alt":null,"id":23877286854755,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba9282b308246dddfc39543f12bea5ee15b7aa44_bb5fafc9-b430-44ee-98ed-91225421865b.webp?v=1714721635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba9282b308246dddfc39543f12bea5ee15b7aa44_bb5fafc9-b430-44ee-98ed-91225421865b.webp?v=1714721635","width":2000},{"alt":null,"id":23877287313507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/376e5cda00153564ab17b1f0d3d9d532f167f36e_f80ce655-a457-4298-a090-018645af7c9a.webp?v=1714721637"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/376e5cda00153564ab17b1f0d3d9d532f167f36e_f80ce655-a457-4298-a090-018645af7c9a.webp?v=1714721637","width":2000},{"alt":null,"id":23877287706723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df7ff48270997b40b857465f3703274949835f7_c0703c3f-9585-4237-8bd7-130250cc6fb1.webp?v=1714721640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6df7ff48270997b40b857465f3703274949835f7_c0703c3f-9585-4237-8bd7-130250cc6fb1.webp?v=1714721640","width":2000},{"alt":null,"id":23877288296547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732cfb7f5df80daf8374902df4f61e5bc7ac1798_113438a9-ffc2-4727-aa97-116039e8c503.webp?v=1714721642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732cfb7f5df80daf8374902df4f61e5bc7ac1798_113438a9-ffc2-4727-aa97-116039e8c503.webp?v=1714721642","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885885825123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31472371433571,"product_id":7408473931875,"position":10,"created_at":"2024-05-03T15:34:02+08:00","updated_at":"2024-05-03T15:34:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732cfb7f5df80daf8374902df4f61e5bc7ac1798_113438a9-ffc2-4727-aa97-116039e8c503.webp?v=1714721642","variant_ids":[41885885825123]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23877288296547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732cfb7f5df80daf8374902df4f61e5bc7ac1798_113438a9-ffc2-4727-aa97-116039e8c503.webp?v=1714721642"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885885825123,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31472371433571,"product_id":7408473931875,"position":10,"created_at":"2024-05-03T15:34:02+08:00","updated_at":"2024-05-03T15:34:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732cfb7f5df80daf8374902df4f61e5bc7ac1798_113438a9-ffc2-4727-aa97-116039e8c503.webp?v=1714721642","variant_ids":[41885885825123]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23877288296547,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/732cfb7f5df80daf8374902df4f61e5bc7ac1798_113438a9-ffc2-4727-aa97-116039e8c503.webp?v=1714721642"}},"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: "停產" }