$product = {"id":7411392348259,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 史迪奇 - 貼紙系列-夏威夷舞蹈","handle":"iphone-14-plus-mod-nx-magsafe-printable-yf07","description":null,"published_at":"2024-06-11T17:43:44+08:00","created_at":"2024-05-05T00:20:58+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 14 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":41898308862051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31480316166243,"product_id":7411392348259,"position":10,"created_at":"2024-05-05T00:21:23+08:00","updated_at":"2024-05-05T00:21:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0112b25e12ef775ec9a2fb4e968d7287f0fe155d_cb8ec527-f1f2-432a-b04c-b15536e8f5b9.webp?v=1714839683","variant_ids":[41898308862051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 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":"MPB0126124-YF07","featured_media":{"alt":null,"id":23885567688803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0112b25e12ef775ec9a2fb4e968d7287f0fe155d_cb8ec527-f1f2-432a-b04c-b15536e8f5b9.webp?v=1714839683"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9621803f9ac9870363864eeb783f4e35cb9cc327_6ddfb1e0-e1e0-45b7-a997-e470705a6c26.webp?v=1714839660","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0042e08e9f9f7686bd57748b3ccd3b994b63169_1ec30d2f-4bb0-41c8-bbee-010c5effd184.webp?v=1714839663","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10dbe38789224054aaf45d77965a5216dd32960_9867b3c9-2bea-4d49-86ac-41e189ce8478.webp?v=1714839665","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/569c95485dee47fd890fbf9402e0d157e6a77710_7d7776fb-b051-48d1-bea6-cfb9ce87d9c0.webp?v=1714839668","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c649e47195f2408888ef7991fc7ee8ad6e37539_750c1ac6-5812-4637-9446-aeb0f0c61fd8.webp?v=1714839670","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8de549b6cae108cc0f95d2a3807be294e9dad761_f24ea23e-cb3b-433a-b785-0182ed1532bc.webp?v=1714839672","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2214763ab561b5bd11107fbd83443babecb5d886_f1a90e20-2ad7-4047-8a41-d483ede059eb.webp?v=1714839675","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b91f53b74223b339429f1a18fb1f60d925cb8b79_0d18fc85-97fe-423e-a9a6-887240ac097d.webp?v=1714839678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0997ad6e447724072256dfa4367b25b4256a6da_96276708-b8c9-49b4-aa2f-e51a7855e868.webp?v=1714839680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0112b25e12ef775ec9a2fb4e968d7287f0fe155d_cb8ec527-f1f2-432a-b04c-b15536e8f5b9.webp?v=1714839683"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9621803f9ac9870363864eeb783f4e35cb9cc327_6ddfb1e0-e1e0-45b7-a997-e470705a6c26.webp?v=1714839660","options":["color"],"media":[{"alt":null,"id":23885562675299,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9621803f9ac9870363864eeb783f4e35cb9cc327_6ddfb1e0-e1e0-45b7-a997-e470705a6c26.webp?v=1714839660"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9621803f9ac9870363864eeb783f4e35cb9cc327_6ddfb1e0-e1e0-45b7-a997-e470705a6c26.webp?v=1714839660","width":2000},{"alt":null,"id":23885563199587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0042e08e9f9f7686bd57748b3ccd3b994b63169_1ec30d2f-4bb0-41c8-bbee-010c5effd184.webp?v=1714839663"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0042e08e9f9f7686bd57748b3ccd3b994b63169_1ec30d2f-4bb0-41c8-bbee-010c5effd184.webp?v=1714839663","width":2000},{"alt":null,"id":23885563789411,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10dbe38789224054aaf45d77965a5216dd32960_9867b3c9-2bea-4d49-86ac-41e189ce8478.webp?v=1714839665"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d10dbe38789224054aaf45d77965a5216dd32960_9867b3c9-2bea-4d49-86ac-41e189ce8478.webp?v=1714839665","width":2000},{"alt":null,"id":23885564379235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/569c95485dee47fd890fbf9402e0d157e6a77710_7d7776fb-b051-48d1-bea6-cfb9ce87d9c0.webp?v=1714839668"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/569c95485dee47fd890fbf9402e0d157e6a77710_7d7776fb-b051-48d1-bea6-cfb9ce87d9c0.webp?v=1714839668","width":2000},{"alt":null,"id":23885564870755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c649e47195f2408888ef7991fc7ee8ad6e37539_750c1ac6-5812-4637-9446-aeb0f0c61fd8.webp?v=1714839670"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c649e47195f2408888ef7991fc7ee8ad6e37539_750c1ac6-5812-4637-9446-aeb0f0c61fd8.webp?v=1714839670","width":2000},{"alt":null,"id":23885565362275,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8de549b6cae108cc0f95d2a3807be294e9dad761_f24ea23e-cb3b-433a-b785-0182ed1532bc.webp?v=1714839672"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8de549b6cae108cc0f95d2a3807be294e9dad761_f24ea23e-cb3b-433a-b785-0182ed1532bc.webp?v=1714839672","width":2000},{"alt":null,"id":23885566083171,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2214763ab561b5bd11107fbd83443babecb5d886_f1a90e20-2ad7-4047-8a41-d483ede059eb.webp?v=1714839675"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2214763ab561b5bd11107fbd83443babecb5d886_f1a90e20-2ad7-4047-8a41-d483ede059eb.webp?v=1714839675","width":2000},{"alt":null,"id":23885566607459,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b91f53b74223b339429f1a18fb1f60d925cb8b79_0d18fc85-97fe-423e-a9a6-887240ac097d.webp?v=1714839678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b91f53b74223b339429f1a18fb1f60d925cb8b79_0d18fc85-97fe-423e-a9a6-887240ac097d.webp?v=1714839678","width":2000},{"alt":null,"id":23885567197283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0997ad6e447724072256dfa4367b25b4256a6da_96276708-b8c9-49b4-aa2f-e51a7855e868.webp?v=1714839680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0997ad6e447724072256dfa4367b25b4256a6da_96276708-b8c9-49b4-aa2f-e51a7855e868.webp?v=1714839680","width":2000},{"alt":null,"id":23885567688803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0112b25e12ef775ec9a2fb4e968d7287f0fe155d_cb8ec527-f1f2-432a-b04c-b15536e8f5b9.webp?v=1714839683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0112b25e12ef775ec9a2fb4e968d7287f0fe155d_cb8ec527-f1f2-432a-b04c-b15536e8f5b9.webp?v=1714839683","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898308862051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31480316166243,"product_id":7411392348259,"position":10,"created_at":"2024-05-05T00:21:23+08:00","updated_at":"2024-05-05T00:21:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0112b25e12ef775ec9a2fb4e968d7287f0fe155d_cb8ec527-f1f2-432a-b04c-b15536e8f5b9.webp?v=1714839683","variant_ids":[41898308862051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 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":"MPB0126124-YF07","featured_media":{"alt":null,"id":23885567688803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0112b25e12ef775ec9a2fb4e968d7287f0fe155d_cb8ec527-f1f2-432a-b04c-b15536e8f5b9.webp?v=1714839683"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898308862051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31480316166243,"product_id":7411392348259,"position":10,"created_at":"2024-05-05T00:21:23+08:00","updated_at":"2024-05-05T00:21:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0112b25e12ef775ec9a2fb4e968d7287f0fe155d_cb8ec527-f1f2-432a-b04c-b15536e8f5b9.webp?v=1714839683","variant_ids":[41898308862051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 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":"MPB0126124-YF07","featured_media":{"alt":null,"id":23885567688803,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0112b25e12ef775ec9a2fb4e968d7287f0fe155d_cb8ec527-f1f2-432a-b04c-b15536e8f5b9.webp?v=1714839683"}},"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: "停產" }