$product = {"id":7411130728547,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 大自然的傑作(黃石國家公園)","handle":"iphone-15-plus-mod-nx-magsafe-printable-af12","description":null,"published_at":"2024-06-11T17:37:06+08:00","created_at":"2024-05-04T22:48:59+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","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":41895273398371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479595106403,"product_id":7411130728547,"position":2,"created_at":"2024-05-04T22:49:03+08:00","updated_at":"2024-05-04T22:49:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f849c3d9649ad935d78505af0477b943b853623_73fe5373-cac7-4ea0-b894-936db7cb7679.webp?v=1714834144","variant_ids":[41895273398371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 大自然的傑作(黃石國家公園) - 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":"MPB0129624-AF12","featured_media":{"alt":null,"id":23884842860643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f849c3d9649ad935d78505af0477b943b853623_73fe5373-cac7-4ea0-b894-936db7cb7679.webp?v=1714834144"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895273529443,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479594451043,"product_id":7411130728547,"position":1,"created_at":"2024-05-04T22:49:01+08:00","updated_at":"2024-05-04T22:49:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8873f9107f1429c2187f4f1f09f95a2fd9e97b_384c5cf8-766b-4190-97cb-3e4b2a0e943e.webp?v=1714834141","variant_ids":[41895273529443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 大自然的傑作(黃石國家公園) - 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":"MPB0129657-AF12","featured_media":{"alt":null,"id":23884842205283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8873f9107f1429c2187f4f1f09f95a2fd9e97b_384c5cf8-766b-4190-97cb-3e4b2a0e943e.webp?v=1714834141"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8873f9107f1429c2187f4f1f09f95a2fd9e97b_384c5cf8-766b-4190-97cb-3e4b2a0e943e.webp?v=1714834141","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f849c3d9649ad935d78505af0477b943b853623_73fe5373-cac7-4ea0-b894-936db7cb7679.webp?v=1714834144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c8ce2f18254901627a5b8447384f2cdb8d120c_7cfdf008-117c-4a56-a207-d7b9c35d6c01.webp?v=1714834146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cac3d122d6a76dccbec48250951864619b9bfa_e09279ae-2818-4b66-8dce-7b387c07dc45.webp?v=1714834149","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6789029480b098cb60b6990f47f303b35b80993d_bc043032-874e-4b40-b74f-bb14a2736328.webp?v=1714834151","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e1f7ba49d0086728d87c9ca8e9713c11fb899e_c695f607-7d22-4487-95d3-8bfcbd3c00dc.webp?v=1714834156","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65ca791ca07e3e3d67f138fa25059119fe175b8_50107772-b92d-48c8-8646-5b5c37bfb11b.webp?v=1714834159","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61026e05eb59e741f3b723b4b8ed0e40b580e88f_c255de36-96fd-49c5-9dac-a39e36dd5bf4.webp?v=1714834161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3874b21964b49561d054c17fee8e6b0dd7388d99_ae5039a6-5a5f-4188-ab9a-8ac09de8e661.webp?v=1714834164"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8873f9107f1429c2187f4f1f09f95a2fd9e97b_384c5cf8-766b-4190-97cb-3e4b2a0e943e.webp?v=1714834141","options":["color"],"media":[{"alt":null,"id":23884842205283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8873f9107f1429c2187f4f1f09f95a2fd9e97b_384c5cf8-766b-4190-97cb-3e4b2a0e943e.webp?v=1714834141"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8873f9107f1429c2187f4f1f09f95a2fd9e97b_384c5cf8-766b-4190-97cb-3e4b2a0e943e.webp?v=1714834141","width":2000},{"alt":null,"id":23884842860643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f849c3d9649ad935d78505af0477b943b853623_73fe5373-cac7-4ea0-b894-936db7cb7679.webp?v=1714834144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f849c3d9649ad935d78505af0477b943b853623_73fe5373-cac7-4ea0-b894-936db7cb7679.webp?v=1714834144","width":2000},{"alt":null,"id":23884843548771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c8ce2f18254901627a5b8447384f2cdb8d120c_7cfdf008-117c-4a56-a207-d7b9c35d6c01.webp?v=1714834146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73c8ce2f18254901627a5b8447384f2cdb8d120c_7cfdf008-117c-4a56-a207-d7b9c35d6c01.webp?v=1714834146","width":2000},{"alt":null,"id":23884844073059,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cac3d122d6a76dccbec48250951864619b9bfa_e09279ae-2818-4b66-8dce-7b387c07dc45.webp?v=1714834149"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cac3d122d6a76dccbec48250951864619b9bfa_e09279ae-2818-4b66-8dce-7b387c07dc45.webp?v=1714834149","width":2000},{"alt":null,"id":23884844564579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6789029480b098cb60b6990f47f303b35b80993d_bc043032-874e-4b40-b74f-bb14a2736328.webp?v=1714834151"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6789029480b098cb60b6990f47f303b35b80993d_bc043032-874e-4b40-b74f-bb14a2736328.webp?v=1714834151","width":2000},{"alt":null,"id":23884846104675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e1f7ba49d0086728d87c9ca8e9713c11fb899e_c695f607-7d22-4487-95d3-8bfcbd3c00dc.webp?v=1714834156"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67e1f7ba49d0086728d87c9ca8e9713c11fb899e_c695f607-7d22-4487-95d3-8bfcbd3c00dc.webp?v=1714834156","width":2000},{"alt":null,"id":23884846628963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65ca791ca07e3e3d67f138fa25059119fe175b8_50107772-b92d-48c8-8646-5b5c37bfb11b.webp?v=1714834159"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f65ca791ca07e3e3d67f138fa25059119fe175b8_50107772-b92d-48c8-8646-5b5c37bfb11b.webp?v=1714834159","width":2000},{"alt":null,"id":23884847218787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61026e05eb59e741f3b723b4b8ed0e40b580e88f_c255de36-96fd-49c5-9dac-a39e36dd5bf4.webp?v=1714834161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61026e05eb59e741f3b723b4b8ed0e40b580e88f_c255de36-96fd-49c5-9dac-a39e36dd5bf4.webp?v=1714834161","width":2000},{"alt":null,"id":23884847972451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3874b21964b49561d054c17fee8e6b0dd7388d99_ae5039a6-5a5f-4188-ab9a-8ac09de8e661.webp?v=1714834164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3874b21964b49561d054c17fee8e6b0dd7388d99_ae5039a6-5a5f-4188-ab9a-8ac09de8e661.webp?v=1714834164","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895273398371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479595106403,"product_id":7411130728547,"position":2,"created_at":"2024-05-04T22:49:03+08:00","updated_at":"2024-05-04T22:49:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f849c3d9649ad935d78505af0477b943b853623_73fe5373-cac7-4ea0-b894-936db7cb7679.webp?v=1714834144","variant_ids":[41895273398371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 大自然的傑作(黃石國家公園) - 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":"MPB0129624-AF12","featured_media":{"alt":null,"id":23884842860643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f849c3d9649ad935d78505af0477b943b853623_73fe5373-cac7-4ea0-b894-936db7cb7679.webp?v=1714834144"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895273529443,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479594451043,"product_id":7411130728547,"position":1,"created_at":"2024-05-04T22:49:01+08:00","updated_at":"2024-05-04T22:49:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8873f9107f1429c2187f4f1f09f95a2fd9e97b_384c5cf8-766b-4190-97cb-3e4b2a0e943e.webp?v=1714834141","variant_ids":[41895273529443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 大自然的傑作(黃石國家公園) - 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":"MPB0129657-AF12","featured_media":{"alt":null,"id":23884842205283,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8873f9107f1429c2187f4f1f09f95a2fd9e97b_384c5cf8-766b-4190-97cb-3e4b2a0e943e.webp?v=1714834141"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895273398371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-AF12","requires_shipping":true,"taxable":true,"featured_image":{"id":31479595106403,"product_id":7411130728547,"position":2,"created_at":"2024-05-04T22:49:03+08:00","updated_at":"2024-05-04T22:49:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f849c3d9649ad935d78505af0477b943b853623_73fe5373-cac7-4ea0-b894-936db7cb7679.webp?v=1714834144","variant_ids":[41895273398371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Look - 大自然的傑作(黃石國家公園) - 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":"MPB0129624-AF12","featured_media":{"alt":null,"id":23884842860643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f849c3d9649ad935d78505af0477b943b853623_73fe5373-cac7-4ea0-b894-936db7cb7679.webp?v=1714834144"}},"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: "停產" }