$product = {"id":7411277627491,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - We are together","handle":"iphone-14-plus-mod-nx-magsafe-printable-yb14","description":null,"published_at":"2024-06-11T17:40:37+08:00","created_at":"2024-05-04T23:58:46+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-carebears","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":41896867954787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480031346787,"product_id":7411277627491,"position":10,"created_at":"2024-05-04T23:59:09+08:00","updated_at":"2024-05-04T23:59:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf88fdf3feb7241af3f71620767ad539a2f3ccf_1575b54f-9963-411c-a64c-9d8f10b56bb9.webp?v=1714838349","variant_ids":[41896867954787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - We are together - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB14","featured_media":{"alt":null,"id":23885281984611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf88fdf3feb7241af3f71620767ad539a2f3ccf_1575b54f-9963-411c-a64c-9d8f10b56bb9.webp?v=1714838349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4afb00a5bd523a9772a546dd1bc8334f29f09e_800b5f9b-b0b3-477e-a744-9096a7d99c21.webp?v=1714838329","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fa574124b87f6909acf53020af3c85d0c1751a_521de565-65bd-4e14-a2ac-38d84b71509f.webp?v=1714838331","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/700f972a467ad4d7dead003587e766749d67231e_1798194b-4bcc-4679-8d7c-4ccc4ccb1e9f.webp?v=1714838333","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a06abf010ec3b165c0fa5f14d75148c7ed67d91_f66b29e2-622b-4914-a501-ed1588dd6f0d.webp?v=1714838335","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b264f65ed5c59a811aac7dc56c6bcabbb0c3e63_4d214e2d-0945-4ff8-86be-50f3a0b69ded.webp?v=1714838338","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6514a038bca635ab0f0b8de4c35a439e73a70d5_0795342e-4a27-4c06-ae7a-676e80d2c2d9.webp?v=1714838340","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7b7e8dff3c1133293962f558da2d06e17a40ca_1fe7218e-0603-41f6-a47a-03366c4c26dc.webp?v=1714838342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d1fa7af4ec97a161b5dfa4eed50a63e637c90f_5fcb65b1-d84b-4ec1-b958-c7b9005c2288.webp?v=1714838344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d92179ac15dc0c41c6dac3be8fb46c129be6805_da99d5b9-6dfa-459f-93f2-b4ecfa4c6b62.webp?v=1714838347","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf88fdf3feb7241af3f71620767ad539a2f3ccf_1575b54f-9963-411c-a64c-9d8f10b56bb9.webp?v=1714838349"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4afb00a5bd523a9772a546dd1bc8334f29f09e_800b5f9b-b0b3-477e-a744-9096a7d99c21.webp?v=1714838329","options":["color"],"media":[{"alt":null,"id":23885276872803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4afb00a5bd523a9772a546dd1bc8334f29f09e_800b5f9b-b0b3-477e-a744-9096a7d99c21.webp?v=1714838329"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f4afb00a5bd523a9772a546dd1bc8334f29f09e_800b5f9b-b0b3-477e-a744-9096a7d99c21.webp?v=1714838329","width":2000},{"alt":null,"id":23885277397091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fa574124b87f6909acf53020af3c85d0c1751a_521de565-65bd-4e14-a2ac-38d84b71509f.webp?v=1714838331"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30fa574124b87f6909acf53020af3c85d0c1751a_521de565-65bd-4e14-a2ac-38d84b71509f.webp?v=1714838331","width":2000},{"alt":null,"id":23885277855843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/700f972a467ad4d7dead003587e766749d67231e_1798194b-4bcc-4679-8d7c-4ccc4ccb1e9f.webp?v=1714838333"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/700f972a467ad4d7dead003587e766749d67231e_1798194b-4bcc-4679-8d7c-4ccc4ccb1e9f.webp?v=1714838333","width":2000},{"alt":null,"id":23885278412899,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a06abf010ec3b165c0fa5f14d75148c7ed67d91_f66b29e2-622b-4914-a501-ed1588dd6f0d.webp?v=1714838335"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a06abf010ec3b165c0fa5f14d75148c7ed67d91_f66b29e2-622b-4914-a501-ed1588dd6f0d.webp?v=1714838335","width":2000},{"alt":null,"id":23885278904419,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b264f65ed5c59a811aac7dc56c6bcabbb0c3e63_4d214e2d-0945-4ff8-86be-50f3a0b69ded.webp?v=1714838338"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b264f65ed5c59a811aac7dc56c6bcabbb0c3e63_4d214e2d-0945-4ff8-86be-50f3a0b69ded.webp?v=1714838338","width":2000},{"alt":null,"id":23885279952995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6514a038bca635ab0f0b8de4c35a439e73a70d5_0795342e-4a27-4c06-ae7a-676e80d2c2d9.webp?v=1714838340"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6514a038bca635ab0f0b8de4c35a439e73a70d5_0795342e-4a27-4c06-ae7a-676e80d2c2d9.webp?v=1714838340","width":2000},{"alt":null,"id":23885280510051,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7b7e8dff3c1133293962f558da2d06e17a40ca_1fe7218e-0603-41f6-a47a-03366c4c26dc.webp?v=1714838342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d7b7e8dff3c1133293962f558da2d06e17a40ca_1fe7218e-0603-41f6-a47a-03366c4c26dc.webp?v=1714838342","width":2000},{"alt":null,"id":23885280936035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d1fa7af4ec97a161b5dfa4eed50a63e637c90f_5fcb65b1-d84b-4ec1-b958-c7b9005c2288.webp?v=1714838344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97d1fa7af4ec97a161b5dfa4eed50a63e637c90f_5fcb65b1-d84b-4ec1-b958-c7b9005c2288.webp?v=1714838344","width":2000},{"alt":null,"id":23885281394787,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d92179ac15dc0c41c6dac3be8fb46c129be6805_da99d5b9-6dfa-459f-93f2-b4ecfa4c6b62.webp?v=1714838347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d92179ac15dc0c41c6dac3be8fb46c129be6805_da99d5b9-6dfa-459f-93f2-b4ecfa4c6b62.webp?v=1714838347","width":2000},{"alt":null,"id":23885281984611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf88fdf3feb7241af3f71620767ad539a2f3ccf_1575b54f-9963-411c-a64c-9d8f10b56bb9.webp?v=1714838349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf88fdf3feb7241af3f71620767ad539a2f3ccf_1575b54f-9963-411c-a64c-9d8f10b56bb9.webp?v=1714838349","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41896867954787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480031346787,"product_id":7411277627491,"position":10,"created_at":"2024-05-04T23:59:09+08:00","updated_at":"2024-05-04T23:59:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf88fdf3feb7241af3f71620767ad539a2f3ccf_1575b54f-9963-411c-a64c-9d8f10b56bb9.webp?v=1714838349","variant_ids":[41896867954787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - We are together - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB14","featured_media":{"alt":null,"id":23885281984611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf88fdf3feb7241af3f71620767ad539a2f3ccf_1575b54f-9963-411c-a64c-9d8f10b56bb9.webp?v=1714838349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41896867954787,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31480031346787,"product_id":7411277627491,"position":10,"created_at":"2024-05-04T23:59:09+08:00","updated_at":"2024-05-04T23:59:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf88fdf3feb7241af3f71620767ad539a2f3ccf_1575b54f-9963-411c-a64c-9d8f10b56bb9.webp?v=1714838349","variant_ids":[41896867954787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - Care Bears - We are together - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-YB14","featured_media":{"alt":null,"id":23885281984611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbf88fdf3feb7241af3f71620767ad539a2f3ccf_1575b54f-9963-411c-a64c-9d8f10b56bb9.webp?v=1714838349"}},"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: "停產" }