$product = {"id":7414209020003,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Cheer Bear","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yb03","description":null,"published_at":"2024-06-11T17:49:53+08:00","created_at":"2024-05-05T14:16:03+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 13 Pro Max","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":41904872292451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484923740259,"product_id":7414209020003,"position":5,"created_at":"2024-05-05T14:16:14+08:00","updated_at":"2024-05-05T14:16:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac909877ed8bee3b70bbeeef55c30175014bd50_0c8adcc0-52eb-4d0b-a06e-0816061a9c17.webp?v=1714889774","variant_ids":[41904872292451]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Cheer Bear - 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":"MPB0123224-YB03","featured_media":{"alt":null,"id":23890232049763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac909877ed8bee3b70bbeeef55c30175014bd50_0c8adcc0-52eb-4d0b-a06e-0816061a9c17.webp?v=1714889774"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904872816739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484928524387,"product_id":7414209020003,"position":8,"created_at":"2024-05-05T14:16:21+08:00","updated_at":"2024-05-05T14:16:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62675227648f6ebb8a4197aea9936fd7d4334713_40181d28-99c3-4228-af6b-a02838545186.webp?v=1714889781","variant_ids":[41904872816739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Cheer Bear - 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":"MPB01232J5-YB03","featured_media":{"alt":null,"id":23890238210147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62675227648f6ebb8a4197aea9936fd7d4334713_40181d28-99c3-4228-af6b-a02838545186.webp?v=1714889781"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dff92cd1a7ca389f996c9d5386139958dcba47d3_ce684e77-b2a7-412e-9c19-86333c35bbc1.webp?v=1714889765","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f12d96971efec89c3a3ab460f5748c554be12d_eb84beb4-07c3-4a86-ae7b-b55674696a47.webp?v=1714889768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8cdc639a9fd2860a1ec0c74587102aa6f7f919_dbfaaaa1-79ed-42bf-b794-59e6114f323b.webp?v=1714889770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24051e55704ee082fec5dec88f8f0541fbd141e5_eb1cdc7b-19ab-41eb-b614-8486584bce92.webp?v=1714889772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac909877ed8bee3b70bbeeef55c30175014bd50_0c8adcc0-52eb-4d0b-a06e-0816061a9c17.webp?v=1714889774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb804f35fb7fa641157896b769fa9a5ad585e8f_bda80385-c834-4464-8618-8217fc5cc092.webp?v=1714889776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa504b834166eba6eb1f5483d372f3ea4922ccdc_7132e7d1-a5cb-48fb-89d7-c8a42767b722.webp?v=1714889779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62675227648f6ebb8a4197aea9936fd7d4334713_40181d28-99c3-4228-af6b-a02838545186.webp?v=1714889781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c076824f2836268723942a8d402931220344a46_80a679ff-9c97-4438-93d8-1c20b05a807e.webp?v=1714889783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4722211dd0215b8aacda0ebe448b1bd5af777f14_08d47927-a50c-4bb2-ba42-602883e01145.webp?v=1714889785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21285227207044f0665ffd7ee64c92be8e0f2cf5_e0f089d5-3046-4680-ab34-62975422cc73.webp?v=1714889788"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dff92cd1a7ca389f996c9d5386139958dcba47d3_ce684e77-b2a7-412e-9c19-86333c35bbc1.webp?v=1714889765","options":["color"],"media":[{"alt":null,"id":23890224185443,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dff92cd1a7ca389f996c9d5386139958dcba47d3_ce684e77-b2a7-412e-9c19-86333c35bbc1.webp?v=1714889765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dff92cd1a7ca389f996c9d5386139958dcba47d3_ce684e77-b2a7-412e-9c19-86333c35bbc1.webp?v=1714889765","width":2000},{"alt":null,"id":23890226446435,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f12d96971efec89c3a3ab460f5748c554be12d_eb84beb4-07c3-4a86-ae7b-b55674696a47.webp?v=1714889768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f12d96971efec89c3a3ab460f5748c554be12d_eb84beb4-07c3-4a86-ae7b-b55674696a47.webp?v=1714889768","width":2000},{"alt":null,"id":23890228084835,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8cdc639a9fd2860a1ec0c74587102aa6f7f919_dbfaaaa1-79ed-42bf-b794-59e6114f323b.webp?v=1714889770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce8cdc639a9fd2860a1ec0c74587102aa6f7f919_dbfaaaa1-79ed-42bf-b794-59e6114f323b.webp?v=1714889770","width":2000},{"alt":null,"id":23890230083683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24051e55704ee082fec5dec88f8f0541fbd141e5_eb1cdc7b-19ab-41eb-b614-8486584bce92.webp?v=1714889772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24051e55704ee082fec5dec88f8f0541fbd141e5_eb1cdc7b-19ab-41eb-b614-8486584bce92.webp?v=1714889772","width":2000},{"alt":null,"id":23890232049763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac909877ed8bee3b70bbeeef55c30175014bd50_0c8adcc0-52eb-4d0b-a06e-0816061a9c17.webp?v=1714889774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac909877ed8bee3b70bbeeef55c30175014bd50_0c8adcc0-52eb-4d0b-a06e-0816061a9c17.webp?v=1714889774","width":2000},{"alt":null,"id":23890233786467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb804f35fb7fa641157896b769fa9a5ad585e8f_bda80385-c834-4464-8618-8217fc5cc092.webp?v=1714889776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1bb804f35fb7fa641157896b769fa9a5ad585e8f_bda80385-c834-4464-8618-8217fc5cc092.webp?v=1714889776","width":2000},{"alt":null,"id":23890235785315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa504b834166eba6eb1f5483d372f3ea4922ccdc_7132e7d1-a5cb-48fb-89d7-c8a42767b722.webp?v=1714889779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa504b834166eba6eb1f5483d372f3ea4922ccdc_7132e7d1-a5cb-48fb-89d7-c8a42767b722.webp?v=1714889779","width":2000},{"alt":null,"id":23890238210147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62675227648f6ebb8a4197aea9936fd7d4334713_40181d28-99c3-4228-af6b-a02838545186.webp?v=1714889781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62675227648f6ebb8a4197aea9936fd7d4334713_40181d28-99c3-4228-af6b-a02838545186.webp?v=1714889781","width":2000},{"alt":null,"id":23890240241763,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c076824f2836268723942a8d402931220344a46_80a679ff-9c97-4438-93d8-1c20b05a807e.webp?v=1714889783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c076824f2836268723942a8d402931220344a46_80a679ff-9c97-4438-93d8-1c20b05a807e.webp?v=1714889783","width":2000},{"alt":null,"id":23890242207843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4722211dd0215b8aacda0ebe448b1bd5af777f14_08d47927-a50c-4bb2-ba42-602883e01145.webp?v=1714889785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4722211dd0215b8aacda0ebe448b1bd5af777f14_08d47927-a50c-4bb2-ba42-602883e01145.webp?v=1714889785","width":2000},{"alt":null,"id":23890244304995,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21285227207044f0665ffd7ee64c92be8e0f2cf5_e0f089d5-3046-4680-ab34-62975422cc73.webp?v=1714889788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21285227207044f0665ffd7ee64c92be8e0f2cf5_e0f089d5-3046-4680-ab34-62975422cc73.webp?v=1714889788","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41904872292451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484923740259,"product_id":7414209020003,"position":5,"created_at":"2024-05-05T14:16:14+08:00","updated_at":"2024-05-05T14:16:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac909877ed8bee3b70bbeeef55c30175014bd50_0c8adcc0-52eb-4d0b-a06e-0816061a9c17.webp?v=1714889774","variant_ids":[41904872292451]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Cheer Bear - 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":"MPB0123224-YB03","featured_media":{"alt":null,"id":23890232049763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac909877ed8bee3b70bbeeef55c30175014bd50_0c8adcc0-52eb-4d0b-a06e-0816061a9c17.webp?v=1714889774"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904872816739,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484928524387,"product_id":7414209020003,"position":8,"created_at":"2024-05-05T14:16:21+08:00","updated_at":"2024-05-05T14:16:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62675227648f6ebb8a4197aea9936fd7d4334713_40181d28-99c3-4228-af6b-a02838545186.webp?v=1714889781","variant_ids":[41904872816739]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Cheer Bear - 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":"MPB01232J5-YB03","featured_media":{"alt":null,"id":23890238210147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62675227648f6ebb8a4197aea9936fd7d4334713_40181d28-99c3-4228-af6b-a02838545186.webp?v=1714889781"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41904872292451,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YB03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484923740259,"product_id":7414209020003,"position":5,"created_at":"2024-05-05T14:16:14+08:00","updated_at":"2024-05-05T14:16:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac909877ed8bee3b70bbeeef55c30175014bd50_0c8adcc0-52eb-4d0b-a06e-0816061a9c17.webp?v=1714889774","variant_ids":[41904872292451]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Care Bears - Cheer Bear - 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":"MPB0123224-YB03","featured_media":{"alt":null,"id":23890232049763,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ac909877ed8bee3b70bbeeef55c30175014bd50_0c8adcc0-52eb-4d0b-a06e-0816061a9c17.webp?v=1714889774"}},"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: "停產" }