$product = {"id":7411169067107,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-史迪奇大臉款","handle":"iphone-15-plus-mod-nx-magsafe-printable-yf01","description":null,"published_at":"2024-06-11T17:38:06+08:00","created_at":"2024-05-04T22:56:21+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 15 Plus","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":41895656325219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479701373027,"product_id":7411169067107,"position":7,"created_at":"2024-05-04T22:56:38+08:00","updated_at":"2024-05-04T22:56:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a8920cabfb0399b12605bc091d09e00cdecbab_2c02cb5e-6f46-45f8-aff6-93b9c2767ff9.webp?v=1714834598","variant_ids":[41895656325219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0129624-YF01","featured_media":{"alt":null,"id":23884949356643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a8920cabfb0399b12605bc091d09e00cdecbab_2c02cb5e-6f46-45f8-aff6-93b9c2767ff9.webp?v=1714834598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895656489059,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479697244259,"product_id":7411169067107,"position":2,"created_at":"2024-05-04T22:56:26+08:00","updated_at":"2024-05-04T22:56:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25b93400ad65ec86eaa99794d1a3b24191da5c0_880ecdc5-5ba6-4d40-8a1a-73b85c2d3442.webp?v=1714834586","variant_ids":[41895656489059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0129657-YF01","featured_media":{"alt":null,"id":23884946047075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25b93400ad65ec86eaa99794d1a3b24191da5c0_880ecdc5-5ba6-4d40-8a1a-73b85c2d3442.webp?v=1714834586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a65221b15f07b076642d604e40fcd30abdc9e9a_86057b80-c04a-462c-989b-e81db9e00167.webp?v=1714834584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25b93400ad65ec86eaa99794d1a3b24191da5c0_880ecdc5-5ba6-4d40-8a1a-73b85c2d3442.webp?v=1714834586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321737210054257695eaa34fdf705360a8e8e717_7cfd0ab9-fe1d-463e-85cc-d417352ca909.webp?v=1714834588","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62eaf525f6d1283e9e6df962ee9cf8cd3bebac22_61480cb8-b05f-4228-9135-97fe33496347.webp?v=1714834591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebac3572e8f4d5f7ebb21e457668514a841c7f5a_77614f0b-2095-452a-b300-08210693aa33.webp?v=1714834593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2ea129f713d7217c7ea3a1639fc4c10f521dad_28f02d12-8c6c-4592-b228-ffee0b8568ee.webp?v=1714834595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a8920cabfb0399b12605bc091d09e00cdecbab_2c02cb5e-6f46-45f8-aff6-93b9c2767ff9.webp?v=1714834598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1576746d53d5f969a02b9e12a903997e0a0f6680_b41c5de4-291c-40fa-b512-29c992a88087.webp?v=1714834600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf5dcf51d64a8e85c14dbeb7406eca586a3ec43_f50c0e2c-4cec-4a27-9ec5-d63836cef450.webp?v=1714834602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fddd0bbf39243168d53ce73fda4183692f06125_f72be815-71ea-4ac9-86db-af2cb79c3f50.webp?v=1714834604"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a65221b15f07b076642d604e40fcd30abdc9e9a_86057b80-c04a-462c-989b-e81db9e00167.webp?v=1714834584","options":["color"],"media":[{"alt":null,"id":23884945391715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a65221b15f07b076642d604e40fcd30abdc9e9a_86057b80-c04a-462c-989b-e81db9e00167.webp?v=1714834584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a65221b15f07b076642d604e40fcd30abdc9e9a_86057b80-c04a-462c-989b-e81db9e00167.webp?v=1714834584","width":2000},{"alt":null,"id":23884946047075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25b93400ad65ec86eaa99794d1a3b24191da5c0_880ecdc5-5ba6-4d40-8a1a-73b85c2d3442.webp?v=1714834586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25b93400ad65ec86eaa99794d1a3b24191da5c0_880ecdc5-5ba6-4d40-8a1a-73b85c2d3442.webp?v=1714834586","width":2000},{"alt":null,"id":23884946735203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321737210054257695eaa34fdf705360a8e8e717_7cfd0ab9-fe1d-463e-85cc-d417352ca909.webp?v=1714834588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/321737210054257695eaa34fdf705360a8e8e717_7cfd0ab9-fe1d-463e-85cc-d417352ca909.webp?v=1714834588","width":2000},{"alt":null,"id":23884947259491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62eaf525f6d1283e9e6df962ee9cf8cd3bebac22_61480cb8-b05f-4228-9135-97fe33496347.webp?v=1714834591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62eaf525f6d1283e9e6df962ee9cf8cd3bebac22_61480cb8-b05f-4228-9135-97fe33496347.webp?v=1714834591","width":2000},{"alt":null,"id":23884948144227,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebac3572e8f4d5f7ebb21e457668514a841c7f5a_77614f0b-2095-452a-b300-08210693aa33.webp?v=1714834593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebac3572e8f4d5f7ebb21e457668514a841c7f5a_77614f0b-2095-452a-b300-08210693aa33.webp?v=1714834593","width":2000},{"alt":null,"id":23884948537443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2ea129f713d7217c7ea3a1639fc4c10f521dad_28f02d12-8c6c-4592-b228-ffee0b8568ee.webp?v=1714834595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f2ea129f713d7217c7ea3a1639fc4c10f521dad_28f02d12-8c6c-4592-b228-ffee0b8568ee.webp?v=1714834595","width":2000},{"alt":null,"id":23884949356643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a8920cabfb0399b12605bc091d09e00cdecbab_2c02cb5e-6f46-45f8-aff6-93b9c2767ff9.webp?v=1714834598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a8920cabfb0399b12605bc091d09e00cdecbab_2c02cb5e-6f46-45f8-aff6-93b9c2767ff9.webp?v=1714834598","width":2000},{"alt":null,"id":23884949684323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1576746d53d5f969a02b9e12a903997e0a0f6680_b41c5de4-291c-40fa-b512-29c992a88087.webp?v=1714834600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1576746d53d5f969a02b9e12a903997e0a0f6680_b41c5de4-291c-40fa-b512-29c992a88087.webp?v=1714834600","width":2000},{"alt":null,"id":23884950241379,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf5dcf51d64a8e85c14dbeb7406eca586a3ec43_f50c0e2c-4cec-4a27-9ec5-d63836cef450.webp?v=1714834602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/daf5dcf51d64a8e85c14dbeb7406eca586a3ec43_f50c0e2c-4cec-4a27-9ec5-d63836cef450.webp?v=1714834602","width":2000},{"alt":null,"id":23884950765667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fddd0bbf39243168d53ce73fda4183692f06125_f72be815-71ea-4ac9-86db-af2cb79c3f50.webp?v=1714834604"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fddd0bbf39243168d53ce73fda4183692f06125_f72be815-71ea-4ac9-86db-af2cb79c3f50.webp?v=1714834604","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895656325219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479701373027,"product_id":7411169067107,"position":7,"created_at":"2024-05-04T22:56:38+08:00","updated_at":"2024-05-04T22:56:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a8920cabfb0399b12605bc091d09e00cdecbab_2c02cb5e-6f46-45f8-aff6-93b9c2767ff9.webp?v=1714834598","variant_ids":[41895656325219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0129624-YF01","featured_media":{"alt":null,"id":23884949356643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a8920cabfb0399b12605bc091d09e00cdecbab_2c02cb5e-6f46-45f8-aff6-93b9c2767ff9.webp?v=1714834598"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895656489059,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479697244259,"product_id":7411169067107,"position":2,"created_at":"2024-05-04T22:56:26+08:00","updated_at":"2024-05-04T22:56:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25b93400ad65ec86eaa99794d1a3b24191da5c0_880ecdc5-5ba6-4d40-8a1a-73b85c2d3442.webp?v=1714834586","variant_ids":[41895656489059]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0129657-YF01","featured_media":{"alt":null,"id":23884946047075,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d25b93400ad65ec86eaa99794d1a3b24191da5c0_880ecdc5-5ba6-4d40-8a1a-73b85c2d3442.webp?v=1714834586"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895656325219,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-YF01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479701373027,"product_id":7411169067107,"position":7,"created_at":"2024-05-04T22:56:38+08:00","updated_at":"2024-05-04T22:56:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a8920cabfb0399b12605bc091d09e00cdecbab_2c02cb5e-6f46-45f8-aff6-93b9c2767ff9.webp?v=1714834598","variant_ids":[41895656325219]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 史迪奇 - 經典系列-史迪奇大臉款 - 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":"MPB0129624-YF01","featured_media":{"alt":null,"id":23884949356643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a8920cabfb0399b12605bc091d09e00cdecbab_2c02cb5e-6f46-45f8-aff6-93b9c2767ff9.webp?v=1714834598"}},"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: "停產" }