$product = {"id":7411422527587,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb67","description":null,"published_at":"2024-06-11T17:44:34+08:00","created_at":"2024-05-05T00:26:48+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":41898686808163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480387862627,"product_id":7411422527587,"position":5,"created_at":"2024-05-05T00:27:00+08:00","updated_at":"2024-05-05T00:27:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b0aa981876a75a4a70827b8b57b8f2f1e31ad5_87b5bd54-e111-4b57-a8c4-b18636a0e75d.webp?v=1714840020","variant_ids":[41898686808163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23885639581795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b0aa981876a75a4a70827b8b57b8f2f1e31ad5_87b5bd54-e111-4b57-a8c4-b18636a0e75d.webp?v=1714840020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce005a822a0533ba05cc0c4c1a73f23294b3d719_86db3313-11ff-4b74-a580-35f5e1655431.webp?v=1714840010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d38a60e78e7eb2c4f5133a1dcdafa88542ec232_9f7bfaa4-94a7-433f-8142-11f0c9f8d526.webp?v=1714840013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0799c4df4ac88d0f5269b5d102b858e0d6b69e4_2a972f28-9dde-44e8-a845-b7e5edd80481.webp?v=1714840015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116622704af982782db7978b9b1abe6931712bdf_579f3b38-54b0-445a-a94b-3085e18439b6.webp?v=1714840017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b0aa981876a75a4a70827b8b57b8f2f1e31ad5_87b5bd54-e111-4b57-a8c4-b18636a0e75d.webp?v=1714840020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35820beb078de57d55d6e879aba0f6bd7d50100_ff379c1d-beb1-4e06-aa1f-40049904f011.webp?v=1714840022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/520ede4b7c29ba422b388ed0b0c3fafbafdf4295_e2cf11cc-e74b-4b01-82d7-d3a3fac49db8.webp?v=1714840024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1029b4a0097065ade6080d3e2e9dc59e20be5282_081d5e54-76fb-4aee-a0a6-ec42a97a46c7.webp?v=1714840027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1ec83098cf51a6d1b586870fcc7c658e758ea9_b81d8f9e-d449-4d78-9615-89c6c592c64f.webp?v=1714840030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e6644f0f7825342604da90960b1c32bf59565e_70df3f60-4560-4c0f-827f-3588c56b281a.webp?v=1714840032"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce005a822a0533ba05cc0c4c1a73f23294b3d719_86db3313-11ff-4b74-a580-35f5e1655431.webp?v=1714840010","options":["color"],"media":[{"alt":null,"id":23885637812323,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce005a822a0533ba05cc0c4c1a73f23294b3d719_86db3313-11ff-4b74-a580-35f5e1655431.webp?v=1714840010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce005a822a0533ba05cc0c4c1a73f23294b3d719_86db3313-11ff-4b74-a580-35f5e1655431.webp?v=1714840010","width":2000},{"alt":null,"id":23885638140003,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d38a60e78e7eb2c4f5133a1dcdafa88542ec232_9f7bfaa4-94a7-433f-8142-11f0c9f8d526.webp?v=1714840013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d38a60e78e7eb2c4f5133a1dcdafa88542ec232_9f7bfaa4-94a7-433f-8142-11f0c9f8d526.webp?v=1714840013","width":2000},{"alt":null,"id":23885638598755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0799c4df4ac88d0f5269b5d102b858e0d6b69e4_2a972f28-9dde-44e8-a845-b7e5edd80481.webp?v=1714840015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0799c4df4ac88d0f5269b5d102b858e0d6b69e4_2a972f28-9dde-44e8-a845-b7e5edd80481.webp?v=1714840015","width":2000},{"alt":null,"id":23885639057507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116622704af982782db7978b9b1abe6931712bdf_579f3b38-54b0-445a-a94b-3085e18439b6.webp?v=1714840017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116622704af982782db7978b9b1abe6931712bdf_579f3b38-54b0-445a-a94b-3085e18439b6.webp?v=1714840017","width":2000},{"alt":null,"id":23885639581795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b0aa981876a75a4a70827b8b57b8f2f1e31ad5_87b5bd54-e111-4b57-a8c4-b18636a0e75d.webp?v=1714840020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b0aa981876a75a4a70827b8b57b8f2f1e31ad5_87b5bd54-e111-4b57-a8c4-b18636a0e75d.webp?v=1714840020","width":2000},{"alt":null,"id":23885640171619,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35820beb078de57d55d6e879aba0f6bd7d50100_ff379c1d-beb1-4e06-aa1f-40049904f011.webp?v=1714840022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d35820beb078de57d55d6e879aba0f6bd7d50100_ff379c1d-beb1-4e06-aa1f-40049904f011.webp?v=1714840022","width":2000},{"alt":null,"id":23885640532067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/520ede4b7c29ba422b388ed0b0c3fafbafdf4295_e2cf11cc-e74b-4b01-82d7-d3a3fac49db8.webp?v=1714840024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/520ede4b7c29ba422b388ed0b0c3fafbafdf4295_e2cf11cc-e74b-4b01-82d7-d3a3fac49db8.webp?v=1714840024","width":2000},{"alt":null,"id":23885640826979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1029b4a0097065ade6080d3e2e9dc59e20be5282_081d5e54-76fb-4aee-a0a6-ec42a97a46c7.webp?v=1714840027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1029b4a0097065ade6080d3e2e9dc59e20be5282_081d5e54-76fb-4aee-a0a6-ec42a97a46c7.webp?v=1714840027","width":2000},{"alt":null,"id":23885641351267,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1ec83098cf51a6d1b586870fcc7c658e758ea9_b81d8f9e-d449-4d78-9615-89c6c592c64f.webp?v=1714840030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1ec83098cf51a6d1b586870fcc7c658e758ea9_b81d8f9e-d449-4d78-9615-89c6c592c64f.webp?v=1714840030","width":2000},{"alt":null,"id":23885641744483,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e6644f0f7825342604da90960b1c32bf59565e_70df3f60-4560-4c0f-827f-3588c56b281a.webp?v=1714840032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6e6644f0f7825342604da90960b1c32bf59565e_70df3f60-4560-4c0f-827f-3588c56b281a.webp?v=1714840032","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898686808163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480387862627,"product_id":7411422527587,"position":5,"created_at":"2024-05-05T00:27:00+08:00","updated_at":"2024-05-05T00:27:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b0aa981876a75a4a70827b8b57b8f2f1e31ad5_87b5bd54-e111-4b57-a8c4-b18636a0e75d.webp?v=1714840020","variant_ids":[41898686808163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23885639581795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b0aa981876a75a4a70827b8b57b8f2f1e31ad5_87b5bd54-e111-4b57-a8c4-b18636a0e75d.webp?v=1714840020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898686808163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB67","requires_shipping":true,"taxable":true,"featured_image":{"id":31480387862627,"product_id":7411422527587,"position":5,"created_at":"2024-05-05T00:27:00+08:00","updated_at":"2024-05-05T00:27:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b0aa981876a75a4a70827b8b57b8f2f1e31ad5_87b5bd54-e111-4b57-a8c4-b18636a0e75d.webp?v=1714840020","variant_ids":[41898686808163]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - ATAT-俠盜一號 - 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-PB67","featured_media":{"alt":null,"id":23885639581795,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5b0aa981876a75a4a70827b8b57b8f2f1e31ad5_87b5bd54-e111-4b57-a8c4-b18636a0e75d.webp?v=1714840020"}},"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: "停產" }