$product = {"id":7411324420195,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub!","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb81","description":null,"published_at":"2024-06-11T17:41:51+08:00","created_at":"2024-05-05T00:07:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41897451782243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31480143020131,"product_id":7411324420195,"position":4,"created_at":"2024-05-05T00:07:59+08:00","updated_at":"2024-05-05T00:07:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc4a96f828e379a17f11c7f2e671d16fd1a80d6_7e310b2b-3d96-42ad-b932-ce447474c1ec.webp?v=1714838879","variant_ids":[41897451782243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB81","featured_media":{"alt":null,"id":23885393920099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc4a96f828e379a17f11c7f2e671d16fd1a80d6_7e310b2b-3d96-42ad-b932-ce447474c1ec.webp?v=1714838879"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee57f9ce3e81e205c3772595773bf327918d527b_1bccdc32-3196-4417-aea4-3753bf8a4f5a.webp?v=1714838872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4792d5a9ded56c4859fce3d03ceeab83b45bff9_dd8f27fc-4a7d-44e3-a31e-df91eff3b5ea.webp?v=1714838874","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f0085e97407e8df2ed8ab821ce398952f03611_a7074510-c183-473c-af77-6d6b0ece7c3b.webp?v=1714838876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc4a96f828e379a17f11c7f2e671d16fd1a80d6_7e310b2b-3d96-42ad-b932-ce447474c1ec.webp?v=1714838879","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777a4de0b841665e0122f2b539f6e424ad66b1c8_850f92c4-fede-412c-9bf0-daeafee65b1c.webp?v=1714838881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12666faf97c074a2a04b058b4b74776d0246a87d_b28c39e5-0914-406f-b3a4-6ab2fbddbca9.webp?v=1714838883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/033d052c816aec240b2b58cdc1fcaf07c69994da_56d52ed0-b0e8-4ae8-b8cb-b814e229d3f1.webp?v=1714838886","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6471e021903c772be57a56c34670de744292f03c_641388ca-9a28-4fe7-9de1-52a8b9d83476.webp?v=1714838888","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f25fa700ab196663eb26e1807c65c69cf670119_ca5cf415-572f-46be-b819-efe675191733.webp?v=1714838891","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385f48902ba17811cd32b785895aee134d911886_f7493049-111e-481f-99fb-7d1bb428636a.webp?v=1714838893"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee57f9ce3e81e205c3772595773bf327918d527b_1bccdc32-3196-4417-aea4-3753bf8a4f5a.webp?v=1714838872","options":["color"],"media":[{"alt":null,"id":23885392380003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee57f9ce3e81e205c3772595773bf327918d527b_1bccdc32-3196-4417-aea4-3753bf8a4f5a.webp?v=1714838872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee57f9ce3e81e205c3772595773bf327918d527b_1bccdc32-3196-4417-aea4-3753bf8a4f5a.webp?v=1714838872","width":2000},{"alt":null,"id":23885392969827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4792d5a9ded56c4859fce3d03ceeab83b45bff9_dd8f27fc-4a7d-44e3-a31e-df91eff3b5ea.webp?v=1714838874"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4792d5a9ded56c4859fce3d03ceeab83b45bff9_dd8f27fc-4a7d-44e3-a31e-df91eff3b5ea.webp?v=1714838874","width":2000},{"alt":null,"id":23885393428579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f0085e97407e8df2ed8ab821ce398952f03611_a7074510-c183-473c-af77-6d6b0ece7c3b.webp?v=1714838876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01f0085e97407e8df2ed8ab821ce398952f03611_a7074510-c183-473c-af77-6d6b0ece7c3b.webp?v=1714838876","width":2000},{"alt":null,"id":23885393920099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc4a96f828e379a17f11c7f2e671d16fd1a80d6_7e310b2b-3d96-42ad-b932-ce447474c1ec.webp?v=1714838879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc4a96f828e379a17f11c7f2e671d16fd1a80d6_7e310b2b-3d96-42ad-b932-ce447474c1ec.webp?v=1714838879","width":2000},{"alt":null,"id":23885394346083,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777a4de0b841665e0122f2b539f6e424ad66b1c8_850f92c4-fede-412c-9bf0-daeafee65b1c.webp?v=1714838881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/777a4de0b841665e0122f2b539f6e424ad66b1c8_850f92c4-fede-412c-9bf0-daeafee65b1c.webp?v=1714838881","width":2000},{"alt":null,"id":23885395066979,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12666faf97c074a2a04b058b4b74776d0246a87d_b28c39e5-0914-406f-b3a4-6ab2fbddbca9.webp?v=1714838883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12666faf97c074a2a04b058b4b74776d0246a87d_b28c39e5-0914-406f-b3a4-6ab2fbddbca9.webp?v=1714838883","width":2000},{"alt":null,"id":23885395460195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/033d052c816aec240b2b58cdc1fcaf07c69994da_56d52ed0-b0e8-4ae8-b8cb-b814e229d3f1.webp?v=1714838886"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/033d052c816aec240b2b58cdc1fcaf07c69994da_56d52ed0-b0e8-4ae8-b8cb-b814e229d3f1.webp?v=1714838886","width":2000},{"alt":null,"id":23885396148323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6471e021903c772be57a56c34670de744292f03c_641388ca-9a28-4fe7-9de1-52a8b9d83476.webp?v=1714838888"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6471e021903c772be57a56c34670de744292f03c_641388ca-9a28-4fe7-9de1-52a8b9d83476.webp?v=1714838888","width":2000},{"alt":null,"id":23885396770915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f25fa700ab196663eb26e1807c65c69cf670119_ca5cf415-572f-46be-b819-efe675191733.webp?v=1714838891"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f25fa700ab196663eb26e1807c65c69cf670119_ca5cf415-572f-46be-b819-efe675191733.webp?v=1714838891","width":2000},{"alt":null,"id":23885397459043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385f48902ba17811cd32b785895aee134d911886_f7493049-111e-481f-99fb-7d1bb428636a.webp?v=1714838893"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/385f48902ba17811cd32b785895aee134d911886_f7493049-111e-481f-99fb-7d1bb428636a.webp?v=1714838893","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897451782243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31480143020131,"product_id":7411324420195,"position":4,"created_at":"2024-05-05T00:07:59+08:00","updated_at":"2024-05-05T00:07:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc4a96f828e379a17f11c7f2e671d16fd1a80d6_7e310b2b-3d96-42ad-b932-ce447474c1ec.webp?v=1714838879","variant_ids":[41897451782243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB81","featured_media":{"alt":null,"id":23885393920099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc4a96f828e379a17f11c7f2e671d16fd1a80d6_7e310b2b-3d96-42ad-b932-ce447474c1ec.webp?v=1714838879"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897451782243,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31480143020131,"product_id":7411324420195,"position":4,"created_at":"2024-05-05T00:07:59+08:00","updated_at":"2024-05-05T00:07:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc4a96f828e379a17f11c7f2e671d16fd1a80d6_7e310b2b-3d96-42ad-b932-ce447474c1ec.webp?v=1714838879","variant_ids":[41897451782243]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-PB81","featured_media":{"alt":null,"id":23885393920099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bc4a96f828e379a17f11c7f2e671d16fd1a80d6_7e310b2b-3d96-42ad-b932-ce447474c1ec.webp?v=1714838879"}},"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: "停產" }