$product = {"id":7414979035235,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 史迪奇 - 貼紙系列-夏威夷舞蹈","handle":"iphone-12-mini-mod-nx-magsafe-printable-yf07","description":null,"published_at":"2024-06-11T17:54:42+08:00","created_at":"2024-05-05T19:59:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41910573465699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31487837864035,"product_id":7414979035235,"position":11,"created_at":"2024-05-05T20:00:16+08:00","updated_at":"2024-05-05T20:00:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85793c1eea8411ad6b7e36450f830003c53a29_335ea3ce-71e9-461c-942d-3984c5fb2884.webp?v=1714910416","variant_ids":[41910573465699]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 史迪奇 - 貼紙系列-夏威夷舞蹈 - 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":"MPB0118424-YF07","featured_media":{"alt":null,"id":23893181890659,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85793c1eea8411ad6b7e36450f830003c53a29_335ea3ce-71e9-461c-942d-3984c5fb2884.webp?v=1714910416"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e3346402a1de71dbccc72ce1114a7f236f52b_3b493fbc-a1c3-464c-b1ce-f6f969f60e16.webp?v=1714910392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/759669a4ccccd4fc9f23ccb237b8a9f8bd878e11_8775e9a8-3611-4417-a891-3af486f4fa4e.webp?v=1714910394","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adc0025d63f31564f89bb5afcedf9d6a09a2023_f94d57dd-0060-4f17-8722-bb3b06e86b26.webp?v=1714910396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59dd977a6d7e54a274edb4cb875065ec1c8b4a01_215fe8b3-c1ff-4d63-90fa-ff7aa10910ce.webp?v=1714910399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408b996967af9aec86b3c7c6c6154e7e7d7dd918_1176518c-53aa-4306-b2f8-581ec1235064.webp?v=1714910401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb82013584ede5f2ffd0556338b498eb6a4a5bcd_01933090-2d50-4600-9c2b-0727d338794a.webp?v=1714910404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b2440fc17274b2e708992a5c9d55a5f5f04e78_2af02cbf-dc3c-404b-91ba-2e735e41860d.webp?v=1714910406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dce6b100956feb99f19f9060cb962371af52e85c_4dbd0641-f567-4dc5-8fd1-e19abb59d0a8.webp?v=1714910409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0b814c5b920a7e66fc655fb7c9b7e76cd1278eb_1e24842d-0fb7-4b57-aa85-51f5686a4e15.webp?v=1714910411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc18e198b830e2e20667a2214cf5e623fd3795a_a283ed94-860f-4790-917f-5cf5884775a0.webp?v=1714910414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85793c1eea8411ad6b7e36450f830003c53a29_335ea3ce-71e9-461c-942d-3984c5fb2884.webp?v=1714910416"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e3346402a1de71dbccc72ce1114a7f236f52b_3b493fbc-a1c3-464c-b1ce-f6f969f60e16.webp?v=1714910392","options":["color"],"media":[{"alt":null,"id":23893175697507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e3346402a1de71dbccc72ce1114a7f236f52b_3b493fbc-a1c3-464c-b1ce-f6f969f60e16.webp?v=1714910392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d82e3346402a1de71dbccc72ce1114a7f236f52b_3b493fbc-a1c3-464c-b1ce-f6f969f60e16.webp?v=1714910392","width":2000},{"alt":null,"id":23893176189027,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/759669a4ccccd4fc9f23ccb237b8a9f8bd878e11_8775e9a8-3611-4417-a891-3af486f4fa4e.webp?v=1714910394"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/759669a4ccccd4fc9f23ccb237b8a9f8bd878e11_8775e9a8-3611-4417-a891-3af486f4fa4e.webp?v=1714910394","width":2000},{"alt":null,"id":23893176647779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adc0025d63f31564f89bb5afcedf9d6a09a2023_f94d57dd-0060-4f17-8722-bb3b06e86b26.webp?v=1714910396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adc0025d63f31564f89bb5afcedf9d6a09a2023_f94d57dd-0060-4f17-8722-bb3b06e86b26.webp?v=1714910396","width":2000},{"alt":null,"id":23893177335907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59dd977a6d7e54a274edb4cb875065ec1c8b4a01_215fe8b3-c1ff-4d63-90fa-ff7aa10910ce.webp?v=1714910399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/59dd977a6d7e54a274edb4cb875065ec1c8b4a01_215fe8b3-c1ff-4d63-90fa-ff7aa10910ce.webp?v=1714910399","width":2000},{"alt":null,"id":23893177827427,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408b996967af9aec86b3c7c6c6154e7e7d7dd918_1176518c-53aa-4306-b2f8-581ec1235064.webp?v=1714910401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/408b996967af9aec86b3c7c6c6154e7e7d7dd918_1176518c-53aa-4306-b2f8-581ec1235064.webp?v=1714910401","width":2000},{"alt":null,"id":23893178286179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb82013584ede5f2ffd0556338b498eb6a4a5bcd_01933090-2d50-4600-9c2b-0727d338794a.webp?v=1714910404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb82013584ede5f2ffd0556338b498eb6a4a5bcd_01933090-2d50-4600-9c2b-0727d338794a.webp?v=1714910404","width":2000},{"alt":null,"id":23893178876003,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b2440fc17274b2e708992a5c9d55a5f5f04e78_2af02cbf-dc3c-404b-91ba-2e735e41860d.webp?v=1714910406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40b2440fc17274b2e708992a5c9d55a5f5f04e78_2af02cbf-dc3c-404b-91ba-2e735e41860d.webp?v=1714910406","width":2000},{"alt":null,"id":23893179433059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dce6b100956feb99f19f9060cb962371af52e85c_4dbd0641-f567-4dc5-8fd1-e19abb59d0a8.webp?v=1714910409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dce6b100956feb99f19f9060cb962371af52e85c_4dbd0641-f567-4dc5-8fd1-e19abb59d0a8.webp?v=1714910409","width":2000},{"alt":null,"id":23893180448867,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0b814c5b920a7e66fc655fb7c9b7e76cd1278eb_1e24842d-0fb7-4b57-aa85-51f5686a4e15.webp?v=1714910411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0b814c5b920a7e66fc655fb7c9b7e76cd1278eb_1e24842d-0fb7-4b57-aa85-51f5686a4e15.webp?v=1714910411","width":2000},{"alt":null,"id":23893181235299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc18e198b830e2e20667a2214cf5e623fd3795a_a283ed94-860f-4790-917f-5cf5884775a0.webp?v=1714910414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccc18e198b830e2e20667a2214cf5e623fd3795a_a283ed94-860f-4790-917f-5cf5884775a0.webp?v=1714910414","width":2000},{"alt":null,"id":23893181890659,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85793c1eea8411ad6b7e36450f830003c53a29_335ea3ce-71e9-461c-942d-3984c5fb2884.webp?v=1714910416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85793c1eea8411ad6b7e36450f830003c53a29_335ea3ce-71e9-461c-942d-3984c5fb2884.webp?v=1714910416","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910573465699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31487837864035,"product_id":7414979035235,"position":11,"created_at":"2024-05-05T20:00:16+08:00","updated_at":"2024-05-05T20:00:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85793c1eea8411ad6b7e36450f830003c53a29_335ea3ce-71e9-461c-942d-3984c5fb2884.webp?v=1714910416","variant_ids":[41910573465699]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 史迪奇 - 貼紙系列-夏威夷舞蹈 - 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":"MPB0118424-YF07","featured_media":{"alt":null,"id":23893181890659,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85793c1eea8411ad6b7e36450f830003c53a29_335ea3ce-71e9-461c-942d-3984c5fb2884.webp?v=1714910416"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910573465699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118424-YF07","requires_shipping":true,"taxable":true,"featured_image":{"id":31487837864035,"product_id":7414979035235,"position":11,"created_at":"2024-05-05T20:00:16+08:00","updated_at":"2024-05-05T20:00:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85793c1eea8411ad6b7e36450f830003c53a29_335ea3ce-71e9-461c-942d-3984c5fb2884.webp?v=1714910416","variant_ids":[41910573465699]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 mini - 史迪奇 - 貼紙系列-夏威夷舞蹈 - 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":"MPB0118424-YF07","featured_media":{"alt":null,"id":23893181890659,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85793c1eea8411ad6b7e36450f830003c53a29_335ea3ce-71e9-461c-942d-3984c5fb2884.webp?v=1714910416"}},"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: "停產" }