$product = {"id":7415096770659,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Weiweiboy - 讓世界再可愛一點","handle":"iphone-12-mini-mod-nx-magsafe-printable-eo02","description":null,"published_at":"2024-06-11T17:57:52+08:00","created_at":"2024-05-05T20:22:11+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 12 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-weiweiboy","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":41911835361379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31488152240227,"product_id":7415096770659,"position":4,"created_at":"2024-05-05T20:22:21+08:00","updated_at":"2024-05-05T20:22:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e589d700534d0afd24b642cde4d72f074879217_3b5c51c1-d790-442e-82c2-2051b3510442.webp?v=1714911741","variant_ids":[41911835361379]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Weiweiboy - 讓世界再可愛一點 - 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":"MPB0118424-EO02","featured_media":{"alt":null,"id":23893496889443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e589d700534d0afd24b642cde4d72f074879217_3b5c51c1-d790-442e-82c2-2051b3510442.webp?v=1714911741"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69112a330f39581ad816faaa7f2c0ab088ee156f_ae49455b-daf6-4a49-b48e-641237025bd9.webp?v=1714911733","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec0f8c4ca1c8a084dc00da3a7d465d5c1f72db6_c2a7bd9e-41fc-4829-add3-fe0e7796a5cd.webp?v=1714911736","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42f0168408b398f997189694833e459211acebcd_7b1e6aa9-536b-4f3c-b47f-03881d93afef.webp?v=1714911738","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e589d700534d0afd24b642cde4d72f074879217_3b5c51c1-d790-442e-82c2-2051b3510442.webp?v=1714911741","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61ec70f07bbcfc53cf6d3602b6215135a4a132c3_a6faad85-602c-44cf-9a52-9f5f9cd4c438.webp?v=1714911743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9faade4e80176ab400d299a2643805bc5921949_1eb60872-60eb-4e56-aaf3-e985017863d6.webp?v=1714911746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae89e8bb9901e8aeacd343c693286799391631e1_ed72a699-4251-4e62-832b-890d036bc939.webp?v=1714911748","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf12364f3be333c90821cb1a93f91f4dcd759b8_9212e9ca-8277-4402-82c1-606f0d8f5192.webp?v=1714911750","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda5a23414672d68fa8ccac903ecf4465d1e1db_bf135ce2-52f0-4a56-9b10-d3f725bffe5a.webp?v=1714911753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99493021df623aaadc5741a118699768efb5fc23_c5e95d15-046f-48a9-aa8f-7b01e1c5a1e4.webp?v=1714911756","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/681787761ebddfd3ca4bfe294687be816e25c728_760dfde5-124f-4c62-986a-7094bb39b82c.webp?v=1714911758"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69112a330f39581ad816faaa7f2c0ab088ee156f_ae49455b-daf6-4a49-b48e-641237025bd9.webp?v=1714911733","options":["color"],"media":[{"alt":null,"id":23893494890595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69112a330f39581ad816faaa7f2c0ab088ee156f_ae49455b-daf6-4a49-b48e-641237025bd9.webp?v=1714911733"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69112a330f39581ad816faaa7f2c0ab088ee156f_ae49455b-daf6-4a49-b48e-641237025bd9.webp?v=1714911733","width":2000},{"alt":null,"id":23893495578723,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec0f8c4ca1c8a084dc00da3a7d465d5c1f72db6_c2a7bd9e-41fc-4829-add3-fe0e7796a5cd.webp?v=1714911736"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ec0f8c4ca1c8a084dc00da3a7d465d5c1f72db6_c2a7bd9e-41fc-4829-add3-fe0e7796a5cd.webp?v=1714911736","width":2000},{"alt":null,"id":23893496037475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42f0168408b398f997189694833e459211acebcd_7b1e6aa9-536b-4f3c-b47f-03881d93afef.webp?v=1714911738"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42f0168408b398f997189694833e459211acebcd_7b1e6aa9-536b-4f3c-b47f-03881d93afef.webp?v=1714911738","width":2000},{"alt":null,"id":23893496889443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e589d700534d0afd24b642cde4d72f074879217_3b5c51c1-d790-442e-82c2-2051b3510442.webp?v=1714911741"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e589d700534d0afd24b642cde4d72f074879217_3b5c51c1-d790-442e-82c2-2051b3510442.webp?v=1714911741","width":2000},{"alt":null,"id":23893497217123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61ec70f07bbcfc53cf6d3602b6215135a4a132c3_a6faad85-602c-44cf-9a52-9f5f9cd4c438.webp?v=1714911743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61ec70f07bbcfc53cf6d3602b6215135a4a132c3_a6faad85-602c-44cf-9a52-9f5f9cd4c438.webp?v=1714911743","width":2000},{"alt":null,"id":23893497741411,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9faade4e80176ab400d299a2643805bc5921949_1eb60872-60eb-4e56-aaf3-e985017863d6.webp?v=1714911746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9faade4e80176ab400d299a2643805bc5921949_1eb60872-60eb-4e56-aaf3-e985017863d6.webp?v=1714911746","width":2000},{"alt":null,"id":23893498167395,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae89e8bb9901e8aeacd343c693286799391631e1_ed72a699-4251-4e62-832b-890d036bc939.webp?v=1714911748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae89e8bb9901e8aeacd343c693286799391631e1_ed72a699-4251-4e62-832b-890d036bc939.webp?v=1714911748","width":2000},{"alt":null,"id":23893498855523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf12364f3be333c90821cb1a93f91f4dcd759b8_9212e9ca-8277-4402-82c1-606f0d8f5192.webp?v=1714911750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf12364f3be333c90821cb1a93f91f4dcd759b8_9212e9ca-8277-4402-82c1-606f0d8f5192.webp?v=1714911750","width":2000},{"alt":null,"id":23893499805795,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda5a23414672d68fa8ccac903ecf4465d1e1db_bf135ce2-52f0-4a56-9b10-d3f725bffe5a.webp?v=1714911753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4eda5a23414672d68fa8ccac903ecf4465d1e1db_bf135ce2-52f0-4a56-9b10-d3f725bffe5a.webp?v=1714911753","width":2000},{"alt":null,"id":23893500362851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99493021df623aaadc5741a118699768efb5fc23_c5e95d15-046f-48a9-aa8f-7b01e1c5a1e4.webp?v=1714911756"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99493021df623aaadc5741a118699768efb5fc23_c5e95d15-046f-48a9-aa8f-7b01e1c5a1e4.webp?v=1714911756","width":2000},{"alt":null,"id":23893500919907,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/681787761ebddfd3ca4bfe294687be816e25c728_760dfde5-124f-4c62-986a-7094bb39b82c.webp?v=1714911758"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/681787761ebddfd3ca4bfe294687be816e25c728_760dfde5-124f-4c62-986a-7094bb39b82c.webp?v=1714911758","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911835361379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31488152240227,"product_id":7415096770659,"position":4,"created_at":"2024-05-05T20:22:21+08:00","updated_at":"2024-05-05T20:22:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e589d700534d0afd24b642cde4d72f074879217_3b5c51c1-d790-442e-82c2-2051b3510442.webp?v=1714911741","variant_ids":[41911835361379]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Weiweiboy - 讓世界再可愛一點 - 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":"MPB0118424-EO02","featured_media":{"alt":null,"id":23893496889443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e589d700534d0afd24b642cde4d72f074879217_3b5c51c1-d790-442e-82c2-2051b3510442.webp?v=1714911741"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911835361379,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-EO02","requires_shipping":true,"taxable":true,"featured_image":{"id":31488152240227,"product_id":7415096770659,"position":4,"created_at":"2024-05-05T20:22:21+08:00","updated_at":"2024-05-05T20:22:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e589d700534d0afd24b642cde4d72f074879217_3b5c51c1-d790-442e-82c2-2051b3510442.webp?v=1714911741","variant_ids":[41911835361379]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - Weiweiboy - 讓世界再可愛一點 - 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":"MPB0118424-EO02","featured_media":{"alt":null,"id":23893496889443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e589d700534d0afd24b642cde4d72f074879217_3b5c51c1-d790-442e-82c2-2051b3510442.webp?v=1714911741"}},"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: "停產" }