$product = {"id":7411309576291,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 生日8","handle":"iphone-14-plus-mod-nx-magsafe-printable-iv02","description":null,"published_at":"2024-06-11T17:41:28+08:00","created_at":"2024-05-05T00:04:54+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":41897271853155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480106877027,"product_id":7411309576291,"position":2,"created_at":"2024-05-05T00:04:59+08:00","updated_at":"2024-05-05T00:04:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4970e4ed0cba970a05f1ddcceae79676a640ad_c7e030cb-6293-49ca-b586-d6f0e89546ba.webp?v=1714838699","variant_ids":[41897271853155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23885357711459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4970e4ed0cba970a05f1ddcceae79676a640ad_c7e030cb-6293-49ca-b586-d6f0e89546ba.webp?v=1714838699"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b2a7259eed4249b8d8b67f8ea65133893f24ce_0ce23d4c-ab0f-4e04-9357-54ec712f1322.webp?v=1714838697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4970e4ed0cba970a05f1ddcceae79676a640ad_c7e030cb-6293-49ca-b586-d6f0e89546ba.webp?v=1714838699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e9c9f2631746b6dc5ee1e392cf9432a9797364_fdf80ee9-5ce3-4966-92dc-2a68cfa022a9.webp?v=1714838702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f957476039a43a3c60c2f69e20155de1a3a877_f328f788-240c-4ef9-a171-df9863a414b5.webp?v=1714838704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd8674ec4d688c7566e2d08fbfcee905d4866552_8dfeb292-8e3c-44f6-9913-d57a2a7ad479.webp?v=1714838706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dee18483035846a1c876e63b389f24f1551bfc49_457ee5f6-1b56-485e-990b-a3cdd75acc99.webp?v=1714838709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1320c691e59949f9d7b7c569f9ad5b54f6220_628cb247-d6c7-4015-836d-ce451b4f1af6.webp?v=1714838716","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc198c7b7c4ace367bf31d9d167b3cd7c4423532_e3c740c3-9453-469a-b0ee-882be48e5f2e.webp?v=1714838718","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f03769724f0d4e1b448c1b1af595a1493212657_d08c552d-0cf7-4958-8da1-f5554107d518.webp?v=1714838721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7286f6959e37518044a23e38aefae40c02429b_d8a0612d-73ea-4d55-b426-b387570a8b54.webp?v=1714838723"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b2a7259eed4249b8d8b67f8ea65133893f24ce_0ce23d4c-ab0f-4e04-9357-54ec712f1322.webp?v=1714838697","options":["color"],"media":[{"alt":null,"id":23885357187171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b2a7259eed4249b8d8b67f8ea65133893f24ce_0ce23d4c-ab0f-4e04-9357-54ec712f1322.webp?v=1714838697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9b2a7259eed4249b8d8b67f8ea65133893f24ce_0ce23d4c-ab0f-4e04-9357-54ec712f1322.webp?v=1714838697","width":2000},{"alt":null,"id":23885357711459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4970e4ed0cba970a05f1ddcceae79676a640ad_c7e030cb-6293-49ca-b586-d6f0e89546ba.webp?v=1714838699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4970e4ed0cba970a05f1ddcceae79676a640ad_c7e030cb-6293-49ca-b586-d6f0e89546ba.webp?v=1714838699","width":2000},{"alt":null,"id":23885358104675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e9c9f2631746b6dc5ee1e392cf9432a9797364_fdf80ee9-5ce3-4966-92dc-2a68cfa022a9.webp?v=1714838702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56e9c9f2631746b6dc5ee1e392cf9432a9797364_fdf80ee9-5ce3-4966-92dc-2a68cfa022a9.webp?v=1714838702","width":2000},{"alt":null,"id":23885358596195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f957476039a43a3c60c2f69e20155de1a3a877_f328f788-240c-4ef9-a171-df9863a414b5.webp?v=1714838704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f957476039a43a3c60c2f69e20155de1a3a877_f328f788-240c-4ef9-a171-df9863a414b5.webp?v=1714838704","width":2000},{"alt":null,"id":23885359218787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd8674ec4d688c7566e2d08fbfcee905d4866552_8dfeb292-8e3c-44f6-9913-d57a2a7ad479.webp?v=1714838706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd8674ec4d688c7566e2d08fbfcee905d4866552_8dfeb292-8e3c-44f6-9913-d57a2a7ad479.webp?v=1714838706","width":2000},{"alt":null,"id":23885359874147,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dee18483035846a1c876e63b389f24f1551bfc49_457ee5f6-1b56-485e-990b-a3cdd75acc99.webp?v=1714838709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dee18483035846a1c876e63b389f24f1551bfc49_457ee5f6-1b56-485e-990b-a3cdd75acc99.webp?v=1714838709","width":2000},{"alt":null,"id":23885360726115,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1320c691e59949f9d7b7c569f9ad5b54f6220_628cb247-d6c7-4015-836d-ce451b4f1af6.webp?v=1714838716"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a1320c691e59949f9d7b7c569f9ad5b54f6220_628cb247-d6c7-4015-836d-ce451b4f1af6.webp?v=1714838716","width":2000},{"alt":null,"id":23885361315939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc198c7b7c4ace367bf31d9d167b3cd7c4423532_e3c740c3-9453-469a-b0ee-882be48e5f2e.webp?v=1714838718"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc198c7b7c4ace367bf31d9d167b3cd7c4423532_e3c740c3-9453-469a-b0ee-882be48e5f2e.webp?v=1714838718","width":2000},{"alt":null,"id":23885361872995,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f03769724f0d4e1b448c1b1af595a1493212657_d08c552d-0cf7-4958-8da1-f5554107d518.webp?v=1714838721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f03769724f0d4e1b448c1b1af595a1493212657_d08c552d-0cf7-4958-8da1-f5554107d518.webp?v=1714838721","width":2000},{"alt":null,"id":23885362528355,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7286f6959e37518044a23e38aefae40c02429b_d8a0612d-73ea-4d55-b426-b387570a8b54.webp?v=1714838723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e7286f6959e37518044a23e38aefae40c02429b_d8a0612d-73ea-4d55-b426-b387570a8b54.webp?v=1714838723","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41897271853155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480106877027,"product_id":7411309576291,"position":2,"created_at":"2024-05-05T00:04:59+08:00","updated_at":"2024-05-05T00:04:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4970e4ed0cba970a05f1ddcceae79676a640ad_c7e030cb-6293-49ca-b586-d6f0e89546ba.webp?v=1714838699","variant_ids":[41897271853155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23885357711459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4970e4ed0cba970a05f1ddcceae79676a640ad_c7e030cb-6293-49ca-b586-d6f0e89546ba.webp?v=1714838699"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41897271853155,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31480106877027,"product_id":7411309576291,"position":2,"created_at":"2024-05-05T00:04:59+08:00","updated_at":"2024-05-05T00:04:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4970e4ed0cba970a05f1ddcceae79676a640ad_c7e030cb-6293-49ca-b586-d6f0e89546ba.webp?v=1714838699","variant_ids":[41897271853155]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 1G - 生日8 - 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-IV02","featured_media":{"alt":null,"id":23885357711459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc4970e4ed0cba970a05f1ddcceae79676a640ad_c7e030cb-6293-49ca-b586-d6f0e89546ba.webp?v=1714838699"}},"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: "停產" }