$product = {"id":7415054860387,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-黑白條紋","handle":"iphone-12-mini-mod-nx-magsafe-printable-pb19","description":null,"published_at":"2024-06-11T17:56:45+08:00","created_at":"2024-05-05T20:14:10+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 12 mini","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":41911390765155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31488033325155,"product_id":7415054860387,"position":3,"created_at":"2024-05-05T20:14:17+08:00","updated_at":"2024-05-05T20:14:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d96821ebae5d1bb944c918614de1c1bf0e491a_a4731928-ef31-4e52-bb45-f455f9491995.webp?v=1714911257","variant_ids":[41911390765155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-黑白條紋 - 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":"MPB0118424-PB19","featured_media":{"alt":null,"id":23893377679459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d96821ebae5d1bb944c918614de1c1bf0e491a_a4731928-ef31-4e52-bb45-f455f9491995.webp?v=1714911257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed0f376df019c127ee62f3bff98eac6007886253_e6def4fd-6cca-4897-9ca1-a770f847bb81.webp?v=1714911252","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de93e448db185f1f5d5c5004984192fb33372e88_2d3c5594-3db5-4fbd-a805-e11ba67968e8.webp?v=1714911255","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d96821ebae5d1bb944c918614de1c1bf0e491a_a4731928-ef31-4e52-bb45-f455f9491995.webp?v=1714911257","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d32d66fecbcbdc3dd0d4dd21e7715548ed870886_d260782d-0452-44cb-b93c-e6c49ee00ab8.webp?v=1714911260","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698812d2d4b063a165ee9636fc3919b0fc03e766_8b809f16-50f1-41f0-b0e3-a224aea17997.webp?v=1714911262","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0f9817c7490fdcfc9f723a1d384c7cb6a79ef7_be4fa768-41ad-496d-aa4e-242d688f5a6d.webp?v=1714911264","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0556c395adb6a6437696d7e5d504571bd360218f_caa23374-fe37-48c9-95e6-566cc4c3d466.webp?v=1714911266","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ca18de47aef380683d90b563e8f67bebf84cb5_baec01cb-7706-4003-8caf-eb051193291c.webp?v=1714911269","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae7fcc7d6a0a97edaab2aca6c95122668211c95_31273a55-923f-44c1-9bb2-2db5e74f9eda.webp?v=1714911271","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e82abb9f7a6008c6f3542b533b50cd3b43b11906_e6f43e4d-d4df-4536-bb9e-5fe874875645.webp?v=1714911273","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbbf6845ce6877c791974e2005579a74ee2614f3_27ad8648-8d70-4ebf-b988-d40eaf2a85f6.webp?v=1714911276"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed0f376df019c127ee62f3bff98eac6007886253_e6def4fd-6cca-4897-9ca1-a770f847bb81.webp?v=1714911252","options":["color"],"media":[{"alt":null,"id":23893376499811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed0f376df019c127ee62f3bff98eac6007886253_e6def4fd-6cca-4897-9ca1-a770f847bb81.webp?v=1714911252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed0f376df019c127ee62f3bff98eac6007886253_e6def4fd-6cca-4897-9ca1-a770f847bb81.webp?v=1714911252","width":2000},{"alt":null,"id":23893377024099,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de93e448db185f1f5d5c5004984192fb33372e88_2d3c5594-3db5-4fbd-a805-e11ba67968e8.webp?v=1714911255"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de93e448db185f1f5d5c5004984192fb33372e88_2d3c5594-3db5-4fbd-a805-e11ba67968e8.webp?v=1714911255","width":2000},{"alt":null,"id":23893377679459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d96821ebae5d1bb944c918614de1c1bf0e491a_a4731928-ef31-4e52-bb45-f455f9491995.webp?v=1714911257"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d96821ebae5d1bb944c918614de1c1bf0e491a_a4731928-ef31-4e52-bb45-f455f9491995.webp?v=1714911257","width":2000},{"alt":null,"id":23893378105443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d32d66fecbcbdc3dd0d4dd21e7715548ed870886_d260782d-0452-44cb-b93c-e6c49ee00ab8.webp?v=1714911260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d32d66fecbcbdc3dd0d4dd21e7715548ed870886_d260782d-0452-44cb-b93c-e6c49ee00ab8.webp?v=1714911260","width":2000},{"alt":null,"id":23893378400355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698812d2d4b063a165ee9636fc3919b0fc03e766_8b809f16-50f1-41f0-b0e3-a224aea17997.webp?v=1714911262"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/698812d2d4b063a165ee9636fc3919b0fc03e766_8b809f16-50f1-41f0-b0e3-a224aea17997.webp?v=1714911262","width":2000},{"alt":null,"id":23893379055715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0f9817c7490fdcfc9f723a1d384c7cb6a79ef7_be4fa768-41ad-496d-aa4e-242d688f5a6d.webp?v=1714911264"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a0f9817c7490fdcfc9f723a1d384c7cb6a79ef7_be4fa768-41ad-496d-aa4e-242d688f5a6d.webp?v=1714911264","width":2000},{"alt":null,"id":23893379350627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0556c395adb6a6437696d7e5d504571bd360218f_caa23374-fe37-48c9-95e6-566cc4c3d466.webp?v=1714911266"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0556c395adb6a6437696d7e5d504571bd360218f_caa23374-fe37-48c9-95e6-566cc4c3d466.webp?v=1714911266","width":2000},{"alt":null,"id":23893380202595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ca18de47aef380683d90b563e8f67bebf84cb5_baec01cb-7706-4003-8caf-eb051193291c.webp?v=1714911269"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43ca18de47aef380683d90b563e8f67bebf84cb5_baec01cb-7706-4003-8caf-eb051193291c.webp?v=1714911269","width":2000},{"alt":null,"id":23893380923491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae7fcc7d6a0a97edaab2aca6c95122668211c95_31273a55-923f-44c1-9bb2-2db5e74f9eda.webp?v=1714911271"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae7fcc7d6a0a97edaab2aca6c95122668211c95_31273a55-923f-44c1-9bb2-2db5e74f9eda.webp?v=1714911271","width":2000},{"alt":null,"id":23893381415011,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e82abb9f7a6008c6f3542b533b50cd3b43b11906_e6f43e4d-d4df-4536-bb9e-5fe874875645.webp?v=1714911273"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e82abb9f7a6008c6f3542b533b50cd3b43b11906_e6f43e4d-d4df-4536-bb9e-5fe874875645.webp?v=1714911273","width":2000},{"alt":null,"id":23893381939299,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbbf6845ce6877c791974e2005579a74ee2614f3_27ad8648-8d70-4ebf-b988-d40eaf2a85f6.webp?v=1714911276"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbbf6845ce6877c791974e2005579a74ee2614f3_27ad8648-8d70-4ebf-b988-d40eaf2a85f6.webp?v=1714911276","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911390765155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31488033325155,"product_id":7415054860387,"position":3,"created_at":"2024-05-05T20:14:17+08:00","updated_at":"2024-05-05T20:14:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d96821ebae5d1bb944c918614de1c1bf0e491a_a4731928-ef31-4e52-bb45-f455f9491995.webp?v=1714911257","variant_ids":[41911390765155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-黑白條紋 - 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":"MPB0118424-PB19","featured_media":{"alt":null,"id":23893377679459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d96821ebae5d1bb944c918614de1c1bf0e491a_a4731928-ef31-4e52-bb45-f455f9491995.webp?v=1714911257"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911390765155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-PB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31488033325155,"product_id":7415054860387,"position":3,"created_at":"2024-05-05T20:14:17+08:00","updated_at":"2024-05-05T20:14:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d96821ebae5d1bb944c918614de1c1bf0e491a_a4731928-ef31-4e52-bb45-f455f9491995.webp?v=1714911257","variant_ids":[41911390765155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 迪士尼-星際大戰 Star Wars - 風暴兵-黑白條紋 - 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":"MPB0118424-PB19","featured_media":{"alt":null,"id":23893377679459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02d96821ebae5d1bb944c918614de1c1bf0e491a_a4731928-ef31-4e52-bb45-f455f9491995.webp?v=1714911257"}},"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: "停產" }