$product = {"id":7369085190243,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險","handle":"iphone-14-plus-mod-nx-magsafe-printable-sz05","description":null,"published_at":"2024-06-11T17:30:54+08:00","created_at":"2024-04-23T14:42:40+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區華納兄弟百年慶典 Warner Bros 100th Anniversary","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-warnerbros100","device-iPhone 14 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-warnerbros100","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":41792723746915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386645168227,"product_id":7369085190243,"position":3,"created_at":"2024-04-23T14:42:45+08:00","updated_at":"2024-04-23T14:42:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9934c0042df8ff40abb3c9012bfe156698f0c5_480b3174-a3ed-4d5b-b918-9d6b9e4a4554.webp?v=1713854565","variant_ids":[41792723746915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788878790755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9934c0042df8ff40abb3c9012bfe156698f0c5_480b3174-a3ed-4d5b-b918-9d6b9e4a4554.webp?v=1713854565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94250856993d342ad556c1dff87eb14a9b994ba3_9673e90a-c3f6-4199-ad2d-57f3511d9f8d.webp?v=1713854562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7572c8f1115c265d187f17dc5fff2c890b60a22_c1d1f407-dc60-4ebe-863f-263864111ca9.webp?v=1713854563","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9934c0042df8ff40abb3c9012bfe156698f0c5_480b3174-a3ed-4d5b-b918-9d6b9e4a4554.webp?v=1713854565","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1003ba201af3aecacd8958e631b2c2b020905a_9d48e77f-8bcf-4c56-b15c-32d9d5138a60.webp?v=1713854567","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9303d67f3369421ca4cba51db32e0f14733b45_ace57517-dbe9-477b-b7f0-7c524cc61c76.webp?v=1713854569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1816903789bb7612c39d1af23106be22538f02_8f00a084-d75a-4f38-99d2-966e416b1553.webp?v=1713854572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f783a98acc562a75195d737a297b3b9ed386b63_627c42b9-ab68-4907-9c8a-4b606650611a.webp?v=1713854574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e9adffa128e2580ebc7079a8bbb9cc9cd10dec_80452fe2-71f5-4d55-99db-ba0e80b5f5d3.webp?v=1713854576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e307ffa914878306f3b395ef5b44aadfecfe3e93_0ecb5c94-77ba-49d8-9c9a-00dda84c3bd7.webp?v=1713854578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8105fdcebc397ba83342905de4e0f82121d38941_f9ed25f8-7e00-46e3-9601-e4ae6aba2ac6.webp?v=1713854579"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94250856993d342ad556c1dff87eb14a9b994ba3_9673e90a-c3f6-4199-ad2d-57f3511d9f8d.webp?v=1713854562","options":["color"],"media":[{"alt":null,"id":23788877906019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94250856993d342ad556c1dff87eb14a9b994ba3_9673e90a-c3f6-4199-ad2d-57f3511d9f8d.webp?v=1713854562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94250856993d342ad556c1dff87eb14a9b994ba3_9673e90a-c3f6-4199-ad2d-57f3511d9f8d.webp?v=1713854562","width":2000},{"alt":null,"id":23788878626915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7572c8f1115c265d187f17dc5fff2c890b60a22_c1d1f407-dc60-4ebe-863f-263864111ca9.webp?v=1713854563"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7572c8f1115c265d187f17dc5fff2c890b60a22_c1d1f407-dc60-4ebe-863f-263864111ca9.webp?v=1713854563","width":2000},{"alt":null,"id":23788878790755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9934c0042df8ff40abb3c9012bfe156698f0c5_480b3174-a3ed-4d5b-b918-9d6b9e4a4554.webp?v=1713854565"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9934c0042df8ff40abb3c9012bfe156698f0c5_480b3174-a3ed-4d5b-b918-9d6b9e4a4554.webp?v=1713854565","width":2000},{"alt":null,"id":23788879872099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1003ba201af3aecacd8958e631b2c2b020905a_9d48e77f-8bcf-4c56-b15c-32d9d5138a60.webp?v=1713854567"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca1003ba201af3aecacd8958e631b2c2b020905a_9d48e77f-8bcf-4c56-b15c-32d9d5138a60.webp?v=1713854567","width":2000},{"alt":null,"id":23788880134243,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9303d67f3369421ca4cba51db32e0f14733b45_ace57517-dbe9-477b-b7f0-7c524cc61c76.webp?v=1713854569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd9303d67f3369421ca4cba51db32e0f14733b45_ace57517-dbe9-477b-b7f0-7c524cc61c76.webp?v=1713854569","width":2000},{"alt":null,"id":23788880756835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1816903789bb7612c39d1af23106be22538f02_8f00a084-d75a-4f38-99d2-966e416b1553.webp?v=1713854572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac1816903789bb7612c39d1af23106be22538f02_8f00a084-d75a-4f38-99d2-966e416b1553.webp?v=1713854572","width":2000},{"alt":null,"id":23788881117283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f783a98acc562a75195d737a297b3b9ed386b63_627c42b9-ab68-4907-9c8a-4b606650611a.webp?v=1713854574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f783a98acc562a75195d737a297b3b9ed386b63_627c42b9-ab68-4907-9c8a-4b606650611a.webp?v=1713854574","width":2000},{"alt":null,"id":23788881477731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e9adffa128e2580ebc7079a8bbb9cc9cd10dec_80452fe2-71f5-4d55-99db-ba0e80b5f5d3.webp?v=1713854576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01e9adffa128e2580ebc7079a8bbb9cc9cd10dec_80452fe2-71f5-4d55-99db-ba0e80b5f5d3.webp?v=1713854576","width":2000},{"alt":null,"id":23788882002019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e307ffa914878306f3b395ef5b44aadfecfe3e93_0ecb5c94-77ba-49d8-9c9a-00dda84c3bd7.webp?v=1713854578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e307ffa914878306f3b395ef5b44aadfecfe3e93_0ecb5c94-77ba-49d8-9c9a-00dda84c3bd7.webp?v=1713854578","width":2000},{"alt":null,"id":23788882624611,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8105fdcebc397ba83342905de4e0f82121d38941_f9ed25f8-7e00-46e3-9601-e4ae6aba2ac6.webp?v=1713854579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8105fdcebc397ba83342905de4e0f82121d38941_f9ed25f8-7e00-46e3-9601-e4ae6aba2ac6.webp?v=1713854579","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41792723746915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386645168227,"product_id":7369085190243,"position":3,"created_at":"2024-04-23T14:42:45+08:00","updated_at":"2024-04-23T14:42:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9934c0042df8ff40abb3c9012bfe156698f0c5_480b3174-a3ed-4d5b-b918-9d6b9e4a4554.webp?v=1713854565","variant_ids":[41792723746915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788878790755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9934c0042df8ff40abb3c9012bfe156698f0c5_480b3174-a3ed-4d5b-b918-9d6b9e4a4554.webp?v=1713854565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41792723746915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-SZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31386645168227,"product_id":7369085190243,"position":3,"created_at":"2024-04-23T14:42:45+08:00","updated_at":"2024-04-23T14:42:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9934c0042df8ff40abb3c9012bfe156698f0c5_480b3174-a3ed-4d5b-b918-9d6b9e4a4554.webp?v=1713854565","variant_ids":[41792723746915]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 華納兄弟百年慶典 Warner Bros 100th Anniversary - Mashup系列 - 湯姆貓與傑利鼠大冒險 - 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-SZ05","featured_media":{"alt":null,"id":23788878790755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4a9934c0042df8ff40abb3c9012bfe156698f0c5_480b3174-a3ed-4d5b-b918-9d6b9e4a4554.webp?v=1713854565"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }