$product = {"id":7411427770467,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 在幹嘛","handle":"iphone-14-plus-mod-nx-magsafe-printable-iv06","description":null,"published_at":"2024-06-11T17:44:43+08:00","created_at":"2024-05-05T00:27:50+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","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":41898752671843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480402575459,"product_id":7411427770467,"position":10,"created_at":"2024-05-05T00:28:13+08:00","updated_at":"2024-05-05T00:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3039fdb58ab526aa3a6f1ef4dd7a3573558fb9_df1e9aeb-e373-436d-b155-be77d0a4a377.webp?v=1714840093","variant_ids":[41898752671843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23885654229091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3039fdb58ab526aa3a6f1ef4dd7a3573558fb9_df1e9aeb-e373-436d-b155-be77d0a4a377.webp?v=1714840093"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6c177e21758a1bc163acdacaf1551367e28f4e_57d387ca-845d-4085-a65e-7bfe22b7d55a.webp?v=1714840072","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b0b6651b2bc451b2eaf15eb29077b8c0b52223b_0e13568d-aad4-484b-92cd-b52d38568b02.webp?v=1714840074","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c8699238872cce52c0383b882821954584b226d_957993e0-d19a-4237-8052-03e939058e20.webp?v=1714840077","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d3593dd3dc9aa0a0d08c95f3ca60d831e15eccd_eff3f432-f7ff-4795-9a69-5882cd6923c9.webp?v=1714840079","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5872b2ae4ca751333f2c0639f6ba5f4f11b48c4a_bf45baf5-e174-4781-abf6-fe9542c0740b.webp?v=1714840081","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd59752457ec17a0c33e08c6e1c88cceb11ceb0_c527c18e-196c-49cc-b9f2-007251a23f27.webp?v=1714840084","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2458e579919e59bd2959e4f9538790f0c497c0fc_21784d48-1527-41ea-a631-0897ca006861.webp?v=1714840086","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17e0a924d044904cbd53bae7c0d896d3669d4f24_b5534142-fbd9-4b3b-b9a6-496a7de0a774.webp?v=1714840088","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6346f34f46197ead313a6f06aae8054e0e1d1106_d51a53ed-b908-4bc4-b4a1-6355e8450684.webp?v=1714840091","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3039fdb58ab526aa3a6f1ef4dd7a3573558fb9_df1e9aeb-e373-436d-b155-be77d0a4a377.webp?v=1714840093"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6c177e21758a1bc163acdacaf1551367e28f4e_57d387ca-845d-4085-a65e-7bfe22b7d55a.webp?v=1714840072","options":["color"],"media":[{"alt":null,"id":23885649739875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6c177e21758a1bc163acdacaf1551367e28f4e_57d387ca-845d-4085-a65e-7bfe22b7d55a.webp?v=1714840072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac6c177e21758a1bc163acdacaf1551367e28f4e_57d387ca-845d-4085-a65e-7bfe22b7d55a.webp?v=1714840072","width":2000},{"alt":null,"id":23885650198627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b0b6651b2bc451b2eaf15eb29077b8c0b52223b_0e13568d-aad4-484b-92cd-b52d38568b02.webp?v=1714840074"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b0b6651b2bc451b2eaf15eb29077b8c0b52223b_0e13568d-aad4-484b-92cd-b52d38568b02.webp?v=1714840074","width":2000},{"alt":null,"id":23885650657379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c8699238872cce52c0383b882821954584b226d_957993e0-d19a-4237-8052-03e939058e20.webp?v=1714840077"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c8699238872cce52c0383b882821954584b226d_957993e0-d19a-4237-8052-03e939058e20.webp?v=1714840077","width":2000},{"alt":null,"id":23885651345507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d3593dd3dc9aa0a0d08c95f3ca60d831e15eccd_eff3f432-f7ff-4795-9a69-5882cd6923c9.webp?v=1714840079"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d3593dd3dc9aa0a0d08c95f3ca60d831e15eccd_eff3f432-f7ff-4795-9a69-5882cd6923c9.webp?v=1714840079","width":2000},{"alt":null,"id":23885651837027,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5872b2ae4ca751333f2c0639f6ba5f4f11b48c4a_bf45baf5-e174-4781-abf6-fe9542c0740b.webp?v=1714840081"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5872b2ae4ca751333f2c0639f6ba5f4f11b48c4a_bf45baf5-e174-4781-abf6-fe9542c0740b.webp?v=1714840081","width":2000},{"alt":null,"id":23885652295779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd59752457ec17a0c33e08c6e1c88cceb11ceb0_c527c18e-196c-49cc-b9f2-007251a23f27.webp?v=1714840084"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cd59752457ec17a0c33e08c6e1c88cceb11ceb0_c527c18e-196c-49cc-b9f2-007251a23f27.webp?v=1714840084","width":2000},{"alt":null,"id":23885652852835,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2458e579919e59bd2959e4f9538790f0c497c0fc_21784d48-1527-41ea-a631-0897ca006861.webp?v=1714840086"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2458e579919e59bd2959e4f9538790f0c497c0fc_21784d48-1527-41ea-a631-0897ca006861.webp?v=1714840086","width":2000},{"alt":null,"id":23885653246051,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17e0a924d044904cbd53bae7c0d896d3669d4f24_b5534142-fbd9-4b3b-b9a6-496a7de0a774.webp?v=1714840088"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17e0a924d044904cbd53bae7c0d896d3669d4f24_b5534142-fbd9-4b3b-b9a6-496a7de0a774.webp?v=1714840088","width":2000},{"alt":null,"id":23885653868643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6346f34f46197ead313a6f06aae8054e0e1d1106_d51a53ed-b908-4bc4-b4a1-6355e8450684.webp?v=1714840091"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6346f34f46197ead313a6f06aae8054e0e1d1106_d51a53ed-b908-4bc4-b4a1-6355e8450684.webp?v=1714840091","width":2000},{"alt":null,"id":23885654229091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3039fdb58ab526aa3a6f1ef4dd7a3573558fb9_df1e9aeb-e373-436d-b155-be77d0a4a377.webp?v=1714840093"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3039fdb58ab526aa3a6f1ef4dd7a3573558fb9_df1e9aeb-e373-436d-b155-be77d0a4a377.webp?v=1714840093","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41898752671843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480402575459,"product_id":7411427770467,"position":10,"created_at":"2024-05-05T00:28:13+08:00","updated_at":"2024-05-05T00:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3039fdb58ab526aa3a6f1ef4dd7a3573558fb9_df1e9aeb-e373-436d-b155-be77d0a4a377.webp?v=1714840093","variant_ids":[41898752671843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23885654229091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3039fdb58ab526aa3a6f1ef4dd7a3573558fb9_df1e9aeb-e373-436d-b155-be77d0a4a377.webp?v=1714840093"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41898752671843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV06","requires_shipping":true,"taxable":true,"featured_image":{"id":31480402575459,"product_id":7411427770467,"position":10,"created_at":"2024-05-05T00:28:13+08:00","updated_at":"2024-05-05T00:28:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3039fdb58ab526aa3a6f1ef4dd7a3573558fb9_df1e9aeb-e373-436d-b155-be77d0a4a377.webp?v=1714840093","variant_ids":[41898752671843]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 在幹嘛 - 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-IV06","featured_media":{"alt":null,"id":23885654229091,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3039fdb58ab526aa3a6f1ef4dd7a3573558fb9_df1e9aeb-e373-436d-b155-be77d0a4a377.webp?v=1714840093"}},"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: "停產" }