$product = {"id":7411171295331,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 貼紙系列-夏威夷舞蹈","handle":"iphone-15-plus-mod-nx-magsafe-printable-yf07","description":null,"published_at":"2024-06-11T17:38:10+08:00","created_at":"2024-05-04T22:56:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41895681917027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479706517603,"product_id":7411171295331,"position":3,"created_at":"2024-05-04T22:56:59+08:00","updated_at":"2024-05-04T22:56:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db604e223a15b59862e8827f2673b8cee2b6cfb4_4a5457ec-1fcd-4e97-830a-9a81a32f102a.webp?v=1714834619","variant_ids":[41895681917027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 貼紙系列-夏威夷舞蹈 - 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":"MPB0129624-YF07","featured_media":{"alt":null,"id":23884954468451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db604e223a15b59862e8827f2673b8cee2b6cfb4_4a5457ec-1fcd-4e97-830a-9a81a32f102a.webp?v=1714834619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895682080867,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479709073507,"product_id":7411171295331,"position":8,"created_at":"2024-05-04T22:57:11+08:00","updated_at":"2024-05-04T22:57:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9aae4df92a6fa228e1e0f06716871fab071faa9_e0e44b00-a30d-408e-9bc7-8cd675337184.webp?v=1714834631","variant_ids":[41895682080867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 貼紙系列-夏威夷舞蹈 - 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":"MPB0129657-YF07","featured_media":{"alt":null,"id":23884957024355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9aae4df92a6fa228e1e0f06716871fab071faa9_e0e44b00-a30d-408e-9bc7-8cd675337184.webp?v=1714834631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe50986a6ec7e6e440a4510a6438b4875115afa2_186ae1b6-d1df-496d-bdc3-024713d289da.webp?v=1714834615","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95e716d670a95e94551615706671f205d7227aa9_6cabf317-3c6f-40c6-ae44-2bc93de056ee.webp?v=1714834617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db604e223a15b59862e8827f2673b8cee2b6cfb4_4a5457ec-1fcd-4e97-830a-9a81a32f102a.webp?v=1714834619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf6486c72cc5db7e5f5bb9185ba38dff9ea0d38_c047d022-8713-4f41-96a1-9d6368d472a1.webp?v=1714834621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f936fa2b9774e5da17ce06683325aa9b43962c_32ee4064-6d39-4fca-a915-9c8ad82ea701.webp?v=1714834624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17f6c920592d96efa20acf27bc0960ca0a909f4c_f9937405-ec31-4ac0-b2b9-e0573575be6e.webp?v=1714834626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b0529b704ee44b9646382d0ceb7fe23d109cde_b600a50a-b147-4174-8707-02ac74945c32.webp?v=1714834628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9aae4df92a6fa228e1e0f06716871fab071faa9_e0e44b00-a30d-408e-9bc7-8cd675337184.webp?v=1714834631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c6d1d828accf908a63c606eecb4b779e7b40f85_566dfb4a-939e-4e2c-a81b-4fd5097de299.webp?v=1714834633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97bcd29d2a831620d2e56f321c9205ce4a790b4_42eceb06-4d9c-43bf-95a6-a2bceb436e85.webp?v=1714834635"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe50986a6ec7e6e440a4510a6438b4875115afa2_186ae1b6-d1df-496d-bdc3-024713d289da.webp?v=1714834615","options":["color"],"media":[{"alt":null,"id":23884953288803,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe50986a6ec7e6e440a4510a6438b4875115afa2_186ae1b6-d1df-496d-bdc3-024713d289da.webp?v=1714834615"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe50986a6ec7e6e440a4510a6438b4875115afa2_186ae1b6-d1df-496d-bdc3-024713d289da.webp?v=1714834615","width":2000},{"alt":null,"id":23884953976931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95e716d670a95e94551615706671f205d7227aa9_6cabf317-3c6f-40c6-ae44-2bc93de056ee.webp?v=1714834617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95e716d670a95e94551615706671f205d7227aa9_6cabf317-3c6f-40c6-ae44-2bc93de056ee.webp?v=1714834617","width":2000},{"alt":null,"id":23884954468451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db604e223a15b59862e8827f2673b8cee2b6cfb4_4a5457ec-1fcd-4e97-830a-9a81a32f102a.webp?v=1714834619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db604e223a15b59862e8827f2673b8cee2b6cfb4_4a5457ec-1fcd-4e97-830a-9a81a32f102a.webp?v=1714834619","width":2000},{"alt":null,"id":23884955025507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf6486c72cc5db7e5f5bb9185ba38dff9ea0d38_c047d022-8713-4f41-96a1-9d6368d472a1.webp?v=1714834621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf6486c72cc5db7e5f5bb9185ba38dff9ea0d38_c047d022-8713-4f41-96a1-9d6368d472a1.webp?v=1714834621","width":2000},{"alt":null,"id":23884955484259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f936fa2b9774e5da17ce06683325aa9b43962c_32ee4064-6d39-4fca-a915-9c8ad82ea701.webp?v=1714834624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67f936fa2b9774e5da17ce06683325aa9b43962c_32ee4064-6d39-4fca-a915-9c8ad82ea701.webp?v=1714834624","width":2000},{"alt":null,"id":23884955943011,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17f6c920592d96efa20acf27bc0960ca0a909f4c_f9937405-ec31-4ac0-b2b9-e0573575be6e.webp?v=1714834626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17f6c920592d96efa20acf27bc0960ca0a909f4c_f9937405-ec31-4ac0-b2b9-e0573575be6e.webp?v=1714834626","width":2000},{"alt":null,"id":23884956631139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b0529b704ee44b9646382d0ceb7fe23d109cde_b600a50a-b147-4174-8707-02ac74945c32.webp?v=1714834628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92b0529b704ee44b9646382d0ceb7fe23d109cde_b600a50a-b147-4174-8707-02ac74945c32.webp?v=1714834628","width":2000},{"alt":null,"id":23884957024355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9aae4df92a6fa228e1e0f06716871fab071faa9_e0e44b00-a30d-408e-9bc7-8cd675337184.webp?v=1714834631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9aae4df92a6fa228e1e0f06716871fab071faa9_e0e44b00-a30d-408e-9bc7-8cd675337184.webp?v=1714834631","width":2000},{"alt":null,"id":23884957581411,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c6d1d828accf908a63c606eecb4b779e7b40f85_566dfb4a-939e-4e2c-a81b-4fd5097de299.webp?v=1714834633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c6d1d828accf908a63c606eecb4b779e7b40f85_566dfb4a-939e-4e2c-a81b-4fd5097de299.webp?v=1714834633","width":2000},{"alt":null,"id":23884957974627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97bcd29d2a831620d2e56f321c9205ce4a790b4_42eceb06-4d9c-43bf-95a6-a2bceb436e85.webp?v=1714834635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a97bcd29d2a831620d2e56f321c9205ce4a790b4_42eceb06-4d9c-43bf-95a6-a2bceb436e85.webp?v=1714834635","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895681917027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479706517603,"product_id":7411171295331,"position":3,"created_at":"2024-05-04T22:56:59+08:00","updated_at":"2024-05-04T22:56:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db604e223a15b59862e8827f2673b8cee2b6cfb4_4a5457ec-1fcd-4e97-830a-9a81a32f102a.webp?v=1714834619","variant_ids":[41895681917027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 貼紙系列-夏威夷舞蹈 - 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":"MPB0129624-YF07","featured_media":{"alt":null,"id":23884954468451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db604e223a15b59862e8827f2673b8cee2b6cfb4_4a5457ec-1fcd-4e97-830a-9a81a32f102a.webp?v=1714834619"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895682080867,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479709073507,"product_id":7411171295331,"position":8,"created_at":"2024-05-04T22:57:11+08:00","updated_at":"2024-05-04T22:57:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9aae4df92a6fa228e1e0f06716871fab071faa9_e0e44b00-a30d-408e-9bc7-8cd675337184.webp?v=1714834631","variant_ids":[41895682080867]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 貼紙系列-夏威夷舞蹈 - 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":"MPB0129657-YF07","featured_media":{"alt":null,"id":23884957024355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9aae4df92a6fa228e1e0f06716871fab071faa9_e0e44b00-a30d-408e-9bc7-8cd675337184.webp?v=1714834631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895681917027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31479706517603,"product_id":7411171295331,"position":3,"created_at":"2024-05-04T22:56:59+08:00","updated_at":"2024-05-04T22:56:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db604e223a15b59862e8827f2673b8cee2b6cfb4_4a5457ec-1fcd-4e97-830a-9a81a32f102a.webp?v=1714834619","variant_ids":[41895681917027]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 貼紙系列-夏威夷舞蹈 - 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":"MPB0129624-YF07","featured_media":{"alt":null,"id":23884954468451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db604e223a15b59862e8827f2673b8cee2b6cfb4_4a5457ec-1fcd-4e97-830a-9a81a32f102a.webp?v=1714834619"}},"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: "停產" }