$product = {"id":7415108993123,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-fz04","description":null,"published_at":"2024-06-11T17:58:12+08:00","created_at":"2024-05-05T20:24:34+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-shiba-says","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":41911964893283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31488186581091,"product_id":7415108993123,"position":8,"created_at":"2024-05-05T20:24:52+08:00","updated_at":"2024-05-05T20:24:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecd34b0650b846e6d112b144a915762cf776054_d0126b32-58bc-4e51-9432-82f4e5dd6729.webp?v=1714911892","variant_ids":[41911964893283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 柴語錄 Shiba Says - 放我出去♥ - 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":"MPB0118724-FZ04","featured_media":{"alt":null,"id":23893531197539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecd34b0650b846e6d112b144a915762cf776054_d0126b32-58bc-4e51-9432-82f4e5dd6729.webp?v=1714911892"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c42a6569bb790306af301ab28e1cda6e514738a_01a2141c-dbd7-4bb2-98c2-b566e401b738.webp?v=1714911876","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/271a876fececd726b4035b68c9bd6c72bab577fe_4b0f9f54-2c38-4230-9fe9-0f6dd50d163a.webp?v=1714911879","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eccfa08145f01844d6d342f8230d521cec44c59_be1fd456-0e79-4eea-8791-15db90ddd022.webp?v=1714911881","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d586c82178e7b0e3865c518bc4a6a2bb428a6a_2148e2c8-417f-4e26-aca7-74b4a62d29b4.webp?v=1714911883","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c87f206b749fe5e3ef348ea414330a03a590e91_ad653f24-efb8-4efc-96b4-36d508d9b3e4.webp?v=1714911885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/027d9fa53709db9f12c8c00553621e21fd30450a_a69d1bb6-440c-48ab-9b0f-2c0506602a45.webp?v=1714911887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9088c7f7fa5220d0a832a491e46e82269e8037ed_f9066de6-dc13-4a21-9e10-1f50662cbdbd.webp?v=1714911890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecd34b0650b846e6d112b144a915762cf776054_d0126b32-58bc-4e51-9432-82f4e5dd6729.webp?v=1714911892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe7923c22afbe2ec83dca965828342907889da05_19db66a9-0c39-49b6-91d7-fe92912dfdb6.webp?v=1714911895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40af7816f533f52c0702b29d6a6d4d60eb67fc28_b6f19734-a2ab-4ca9-9259-f4f4c529c302.webp?v=1714911897"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c42a6569bb790306af301ab28e1cda6e514738a_01a2141c-dbd7-4bb2-98c2-b566e401b738.webp?v=1714911876","options":["color"],"media":[{"alt":null,"id":23893527756899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c42a6569bb790306af301ab28e1cda6e514738a_01a2141c-dbd7-4bb2-98c2-b566e401b738.webp?v=1714911876"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c42a6569bb790306af301ab28e1cda6e514738a_01a2141c-dbd7-4bb2-98c2-b566e401b738.webp?v=1714911876","width":2000},{"alt":null,"id":23893528412259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/271a876fececd726b4035b68c9bd6c72bab577fe_4b0f9f54-2c38-4230-9fe9-0f6dd50d163a.webp?v=1714911879"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/271a876fececd726b4035b68c9bd6c72bab577fe_4b0f9f54-2c38-4230-9fe9-0f6dd50d163a.webp?v=1714911879","width":2000},{"alt":null,"id":23893528772707,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eccfa08145f01844d6d342f8230d521cec44c59_be1fd456-0e79-4eea-8791-15db90ddd022.webp?v=1714911881"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eccfa08145f01844d6d342f8230d521cec44c59_be1fd456-0e79-4eea-8791-15db90ddd022.webp?v=1714911881","width":2000},{"alt":null,"id":23893529428067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d586c82178e7b0e3865c518bc4a6a2bb428a6a_2148e2c8-417f-4e26-aca7-74b4a62d29b4.webp?v=1714911883"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11d586c82178e7b0e3865c518bc4a6a2bb428a6a_2148e2c8-417f-4e26-aca7-74b4a62d29b4.webp?v=1714911883","width":2000},{"alt":null,"id":23893529886819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c87f206b749fe5e3ef348ea414330a03a590e91_ad653f24-efb8-4efc-96b4-36d508d9b3e4.webp?v=1714911885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c87f206b749fe5e3ef348ea414330a03a590e91_ad653f24-efb8-4efc-96b4-36d508d9b3e4.webp?v=1714911885","width":2000},{"alt":null,"id":23893530411107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/027d9fa53709db9f12c8c00553621e21fd30450a_a69d1bb6-440c-48ab-9b0f-2c0506602a45.webp?v=1714911887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/027d9fa53709db9f12c8c00553621e21fd30450a_a69d1bb6-440c-48ab-9b0f-2c0506602a45.webp?v=1714911887","width":2000},{"alt":null,"id":23893530738787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9088c7f7fa5220d0a832a491e46e82269e8037ed_f9066de6-dc13-4a21-9e10-1f50662cbdbd.webp?v=1714911890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9088c7f7fa5220d0a832a491e46e82269e8037ed_f9066de6-dc13-4a21-9e10-1f50662cbdbd.webp?v=1714911890","width":2000},{"alt":null,"id":23893531197539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecd34b0650b846e6d112b144a915762cf776054_d0126b32-58bc-4e51-9432-82f4e5dd6729.webp?v=1714911892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecd34b0650b846e6d112b144a915762cf776054_d0126b32-58bc-4e51-9432-82f4e5dd6729.webp?v=1714911892","width":2000},{"alt":null,"id":23893531656291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe7923c22afbe2ec83dca965828342907889da05_19db66a9-0c39-49b6-91d7-fe92912dfdb6.webp?v=1714911895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe7923c22afbe2ec83dca965828342907889da05_19db66a9-0c39-49b6-91d7-fe92912dfdb6.webp?v=1714911895","width":2000},{"alt":null,"id":23893532508259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40af7816f533f52c0702b29d6a6d4d60eb67fc28_b6f19734-a2ab-4ca9-9259-f4f4c529c302.webp?v=1714911897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40af7816f533f52c0702b29d6a6d4d60eb67fc28_b6f19734-a2ab-4ca9-9259-f4f4c529c302.webp?v=1714911897","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911964893283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31488186581091,"product_id":7415108993123,"position":8,"created_at":"2024-05-05T20:24:52+08:00","updated_at":"2024-05-05T20:24:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecd34b0650b846e6d112b144a915762cf776054_d0126b32-58bc-4e51-9432-82f4e5dd6729.webp?v=1714911892","variant_ids":[41911964893283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 柴語錄 Shiba Says - 放我出去♥ - 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":"MPB0118724-FZ04","featured_media":{"alt":null,"id":23893531197539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecd34b0650b846e6d112b144a915762cf776054_d0126b32-58bc-4e51-9432-82f4e5dd6729.webp?v=1714911892"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911964893283,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31488186581091,"product_id":7415108993123,"position":8,"created_at":"2024-05-05T20:24:52+08:00","updated_at":"2024-05-05T20:24:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecd34b0650b846e6d112b144a915762cf776054_d0126b32-58bc-4e51-9432-82f4e5dd6729.webp?v=1714911892","variant_ids":[41911964893283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 柴語錄 Shiba Says - 放我出去♥ - 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":"MPB0118724-FZ04","featured_media":{"alt":null,"id":23893531197539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cecd34b0650b846e6d112b144a915762cf776054_d0126b32-58bc-4e51-9432-82f4e5dd6729.webp?v=1714911892"}},"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: "停產" }