$product = {"id":7416072437859,"title":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 來自空中的情書(底片版)","handle":"iphone-xs-max-mod-nx-printable-ae05","description":null,"published_at":"2024-06-11T16:51:59+08:00","created_at":"2024-05-06T12:53:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone XS Max","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx-chi-po-lin-series","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41917156327523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491146416227,"product_id":7416072437859,"position":3,"created_at":"2024-05-06T12:53:09+08:00","updated_at":"2024-05-06T12:53:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331620c3b0774c9e2197fdb4b17273201d29d5e4_44ae76e9-bff9-4822-af57-63ba8dc7ae3a.webp?v=1714971189","variant_ids":[41917156327523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 來自空中的情書(底片版) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AE05","featured_media":{"alt":null,"id":23896553881699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331620c3b0774c9e2197fdb4b17273201d29d5e4_44ae76e9-bff9-4822-af57-63ba8dc7ae3a.webp?v=1714971189"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45dbc3b8473715709402d4907d0f37af21d9cca1_0219c4b1-7d4f-438e-ab4d-dd472d4ce891.webp?v=1714971185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf713c0ef4d200871088c4478406f73323f655a_19f60692-4a78-411f-8612-49a521dc1d63.webp?v=1714971187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331620c3b0774c9e2197fdb4b17273201d29d5e4_44ae76e9-bff9-4822-af57-63ba8dc7ae3a.webp?v=1714971189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680bfaa03db4bd1151830396e74e736eb392354e_734df9ee-5c52-4f44-b677-cf42ad76573c.webp?v=1714971192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7901209332cb8f68e80db97995de260f4f947e_ab4d8d19-618a-4eaa-931d-6ee27d26ee5c.webp?v=1714971194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/387ed383170f6cbc24ab0ec45a5e05fe9895a4c6_134362a7-5d5c-4413-a9a9-6c9109791b7e.webp?v=1714971197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c6871e48dd676dcf239abed8f8b7974489aca4_73487fa8-ad84-4f24-ba06-81e73b75b583.webp?v=1714971199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ccb2d0f49f29dd86f1ec08a9f752cd0c425280c_385d7e21-3a19-49ad-b843-e209b47e65d0.webp?v=1714971201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c05322f174224113ab2e5a2a5930b4c596230796_6f1e1108-311a-41f8-9b9b-857ba8e35d5f.webp?v=1714971204","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af55a9b1a78431d5c20c05ceb8d0a7f5705b7205_dec09346-58d8-4af7-a1b7-00d4cc0bafd1.webp?v=1714971206"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45dbc3b8473715709402d4907d0f37af21d9cca1_0219c4b1-7d4f-438e-ab4d-dd472d4ce891.webp?v=1714971185","options":["color"],"media":[{"alt":null,"id":23896552636515,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45dbc3b8473715709402d4907d0f37af21d9cca1_0219c4b1-7d4f-438e-ab4d-dd472d4ce891.webp?v=1714971185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45dbc3b8473715709402d4907d0f37af21d9cca1_0219c4b1-7d4f-438e-ab4d-dd472d4ce891.webp?v=1714971185","width":2000},{"alt":null,"id":23896553226339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf713c0ef4d200871088c4478406f73323f655a_19f60692-4a78-411f-8612-49a521dc1d63.webp?v=1714971187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fbf713c0ef4d200871088c4478406f73323f655a_19f60692-4a78-411f-8612-49a521dc1d63.webp?v=1714971187","width":2000},{"alt":null,"id":23896553881699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331620c3b0774c9e2197fdb4b17273201d29d5e4_44ae76e9-bff9-4822-af57-63ba8dc7ae3a.webp?v=1714971189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331620c3b0774c9e2197fdb4b17273201d29d5e4_44ae76e9-bff9-4822-af57-63ba8dc7ae3a.webp?v=1714971189","width":2000},{"alt":null,"id":23896554799203,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680bfaa03db4bd1151830396e74e736eb392354e_734df9ee-5c52-4f44-b677-cf42ad76573c.webp?v=1714971192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/680bfaa03db4bd1151830396e74e736eb392354e_734df9ee-5c52-4f44-b677-cf42ad76573c.webp?v=1714971192","width":2000},{"alt":null,"id":23896555454563,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7901209332cb8f68e80db97995de260f4f947e_ab4d8d19-618a-4eaa-931d-6ee27d26ee5c.webp?v=1714971194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e7901209332cb8f68e80db97995de260f4f947e_ab4d8d19-618a-4eaa-931d-6ee27d26ee5c.webp?v=1714971194","width":2000},{"alt":null,"id":23896556568675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/387ed383170f6cbc24ab0ec45a5e05fe9895a4c6_134362a7-5d5c-4413-a9a9-6c9109791b7e.webp?v=1714971197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/387ed383170f6cbc24ab0ec45a5e05fe9895a4c6_134362a7-5d5c-4413-a9a9-6c9109791b7e.webp?v=1714971197","width":2000},{"alt":null,"id":23896556994659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c6871e48dd676dcf239abed8f8b7974489aca4_73487fa8-ad84-4f24-ba06-81e73b75b583.webp?v=1714971199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62c6871e48dd676dcf239abed8f8b7974489aca4_73487fa8-ad84-4f24-ba06-81e73b75b583.webp?v=1714971199","width":2000},{"alt":null,"id":23896557420643,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ccb2d0f49f29dd86f1ec08a9f752cd0c425280c_385d7e21-3a19-49ad-b843-e209b47e65d0.webp?v=1714971201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ccb2d0f49f29dd86f1ec08a9f752cd0c425280c_385d7e21-3a19-49ad-b843-e209b47e65d0.webp?v=1714971201","width":2000},{"alt":null,"id":23896558239843,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c05322f174224113ab2e5a2a5930b4c596230796_6f1e1108-311a-41f8-9b9b-857ba8e35d5f.webp?v=1714971204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c05322f174224113ab2e5a2a5930b4c596230796_6f1e1108-311a-41f8-9b9b-857ba8e35d5f.webp?v=1714971204","width":2000},{"alt":null,"id":23896558698595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af55a9b1a78431d5c20c05ceb8d0a7f5705b7205_dec09346-58d8-4af7-a1b7-00d4cc0bafd1.webp?v=1714971206"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/af55a9b1a78431d5c20c05ceb8d0a7f5705b7205_dec09346-58d8-4af7-a1b7-00d4cc0bafd1.webp?v=1714971206","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41917156327523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491146416227,"product_id":7416072437859,"position":3,"created_at":"2024-05-06T12:53:09+08:00","updated_at":"2024-05-06T12:53:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331620c3b0774c9e2197fdb4b17273201d29d5e4_44ae76e9-bff9-4822-af57-63ba8dc7ae3a.webp?v=1714971189","variant_ids":[41917156327523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 來自空中的情書(底片版) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AE05","featured_media":{"alt":null,"id":23896553881699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331620c3b0774c9e2197fdb4b17273201d29d5e4_44ae76e9-bff9-4822-af57-63ba8dc7ae3a.webp?v=1714971189"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41917156327523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-AE05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491146416227,"product_id":7416072437859,"position":3,"created_at":"2024-05-06T12:53:09+08:00","updated_at":"2024-05-06T12:53:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331620c3b0774c9e2197fdb4b17273201d29d5e4_44ae76e9-bff9-4822-af57-63ba8dc7ae3a.webp?v=1714971189","variant_ids":[41917156327523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone XS Max - 【獨家設計款】 - 來自空中的情書(底片版) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-AE05","featured_media":{"alt":null,"id":23896553881699,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/331620c3b0774c9e2197fdb4b17273201d29d5e4_44ae76e9-bff9-4822-af57-63ba8dc7ae3a.webp?v=1714971189"}},"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: "停產" }