$product = {"id":7414211248227,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 抱一個","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-iv03","description":null,"published_at":"2024-06-11T17:49:54+08:00","created_at":"2024-05-05T14:16:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-1chun","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":41904895230051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484929015907,"product_id":7414211248227,"position":5,"created_at":"2024-05-05T14:16:22+08:00","updated_at":"2024-05-05T14:16:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ec02acd1025f77a3ca82de9d4698ad0823d51_a911a640-ecf7-4c77-93fd-44a791e363b6.webp?v=1714889782","variant_ids":[41904895230051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 抱一個 - 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":"MPB0123224-IV03","featured_media":{"alt":null,"id":23890238931043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ec02acd1025f77a3ca82de9d4698ad0823d51_a911a640-ecf7-4c77-93fd-44a791e363b6.webp?v=1714889782"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904895754339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484925542499,"product_id":7414211248227,"position":3,"created_at":"2024-05-05T14:16:17+08:00","updated_at":"2024-05-05T14:16:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb07637225d8ee9ebd5ba82c1b91f661c3113cc5_28d79627-7843-419c-95bc-749c026ee951.webp?v=1714889777","variant_ids":[41904895754339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 抱一個 - 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":"MPB01232J5-IV03","featured_media":{"alt":null,"id":23890234507363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb07637225d8ee9ebd5ba82c1b91f661c3113cc5_28d79627-7843-419c-95bc-749c026ee951.webp?v=1714889777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f32e92bf077497be9083dff430d36c28fcf3b85f_edae38df-b864-43a5-8267-1f2068860175.webp?v=1714889773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26fc71d17002aa38808379eab9c3128e731ab098_0a6df054-6d29-4269-852e-8367d023e057.webp?v=1714889775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb07637225d8ee9ebd5ba82c1b91f661c3113cc5_28d79627-7843-419c-95bc-749c026ee951.webp?v=1714889777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/077e1b275a3f675efff5a300de97b66366ec9443_87749c83-2559-4dfd-b93e-483da2da69a0.webp?v=1714889779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ec02acd1025f77a3ca82de9d4698ad0823d51_a911a640-ecf7-4c77-93fd-44a791e363b6.webp?v=1714889782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22a62fa7811ad10c0a6c93f015fc9bdc6748696_29c4fa12-9c23-4671-b194-dc64c5961e44.webp?v=1714889784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be8225bb66f643b600e5af7de0cc37079296a165_3bafc67d-9eaa-489b-896a-91e992a95e88.webp?v=1714889786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49246fca24670c4b26cd5de8b769990470fc1983_4a32f3c1-3ed0-4354-8184-1f5bfe78c0fe.webp?v=1714889788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999d0159fdbc74b5bdb800e32135755dbd4025b7_eef2b05b-6775-45ac-a11f-8afb52b56c10.webp?v=1714889791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47415a5c91247cae56106ada6e7b82857ca36932_3a35c7a2-f408-462d-9898-2a803e92b816.webp?v=1714889793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50d632c13d6f97b705735412e0e79b5fba86afea_c06f4acf-8c97-4f12-bab2-6fc817e4836b.webp?v=1714889795"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f32e92bf077497be9083dff430d36c28fcf3b85f_edae38df-b864-43a5-8267-1f2068860175.webp?v=1714889773","options":["color"],"media":[{"alt":null,"id":23890230673507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f32e92bf077497be9083dff430d36c28fcf3b85f_edae38df-b864-43a5-8267-1f2068860175.webp?v=1714889773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f32e92bf077497be9083dff430d36c28fcf3b85f_edae38df-b864-43a5-8267-1f2068860175.webp?v=1714889773","width":2000},{"alt":null,"id":23890232606819,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26fc71d17002aa38808379eab9c3128e731ab098_0a6df054-6d29-4269-852e-8367d023e057.webp?v=1714889775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26fc71d17002aa38808379eab9c3128e731ab098_0a6df054-6d29-4269-852e-8367d023e057.webp?v=1714889775","width":2000},{"alt":null,"id":23890234507363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb07637225d8ee9ebd5ba82c1b91f661c3113cc5_28d79627-7843-419c-95bc-749c026ee951.webp?v=1714889777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb07637225d8ee9ebd5ba82c1b91f661c3113cc5_28d79627-7843-419c-95bc-749c026ee951.webp?v=1714889777","width":2000},{"alt":null,"id":23890236342371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/077e1b275a3f675efff5a300de97b66366ec9443_87749c83-2559-4dfd-b93e-483da2da69a0.webp?v=1714889779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/077e1b275a3f675efff5a300de97b66366ec9443_87749c83-2559-4dfd-b93e-483da2da69a0.webp?v=1714889779","width":2000},{"alt":null,"id":23890238931043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ec02acd1025f77a3ca82de9d4698ad0823d51_a911a640-ecf7-4c77-93fd-44a791e363b6.webp?v=1714889782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ec02acd1025f77a3ca82de9d4698ad0823d51_a911a640-ecf7-4c77-93fd-44a791e363b6.webp?v=1714889782","width":2000},{"alt":null,"id":23890240372835,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22a62fa7811ad10c0a6c93f015fc9bdc6748696_29c4fa12-9c23-4671-b194-dc64c5961e44.webp?v=1714889784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22a62fa7811ad10c0a6c93f015fc9bdc6748696_29c4fa12-9c23-4671-b194-dc64c5961e44.webp?v=1714889784","width":2000},{"alt":null,"id":23890242699363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be8225bb66f643b600e5af7de0cc37079296a165_3bafc67d-9eaa-489b-896a-91e992a95e88.webp?v=1714889786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be8225bb66f643b600e5af7de0cc37079296a165_3bafc67d-9eaa-489b-896a-91e992a95e88.webp?v=1714889786","width":2000},{"alt":null,"id":23890244960355,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49246fca24670c4b26cd5de8b769990470fc1983_4a32f3c1-3ed0-4354-8184-1f5bfe78c0fe.webp?v=1714889788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/49246fca24670c4b26cd5de8b769990470fc1983_4a32f3c1-3ed0-4354-8184-1f5bfe78c0fe.webp?v=1714889788","width":2000},{"alt":null,"id":23890247450723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999d0159fdbc74b5bdb800e32135755dbd4025b7_eef2b05b-6775-45ac-a11f-8afb52b56c10.webp?v=1714889791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/999d0159fdbc74b5bdb800e32135755dbd4025b7_eef2b05b-6775-45ac-a11f-8afb52b56c10.webp?v=1714889791","width":2000},{"alt":null,"id":23890249580643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47415a5c91247cae56106ada6e7b82857ca36932_3a35c7a2-f408-462d-9898-2a803e92b816.webp?v=1714889793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47415a5c91247cae56106ada6e7b82857ca36932_3a35c7a2-f408-462d-9898-2a803e92b816.webp?v=1714889793","width":2000},{"alt":null,"id":23890251808867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50d632c13d6f97b705735412e0e79b5fba86afea_c06f4acf-8c97-4f12-bab2-6fc817e4836b.webp?v=1714889795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50d632c13d6f97b705735412e0e79b5fba86afea_c06f4acf-8c97-4f12-bab2-6fc817e4836b.webp?v=1714889795","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904895230051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484929015907,"product_id":7414211248227,"position":5,"created_at":"2024-05-05T14:16:22+08:00","updated_at":"2024-05-05T14:16:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ec02acd1025f77a3ca82de9d4698ad0823d51_a911a640-ecf7-4c77-93fd-44a791e363b6.webp?v=1714889782","variant_ids":[41904895230051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 抱一個 - 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":"MPB0123224-IV03","featured_media":{"alt":null,"id":23890238931043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ec02acd1025f77a3ca82de9d4698ad0823d51_a911a640-ecf7-4c77-93fd-44a791e363b6.webp?v=1714889782"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904895754339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484925542499,"product_id":7414211248227,"position":3,"created_at":"2024-05-05T14:16:17+08:00","updated_at":"2024-05-05T14:16:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb07637225d8ee9ebd5ba82c1b91f661c3113cc5_28d79627-7843-419c-95bc-749c026ee951.webp?v=1714889777","variant_ids":[41904895754339]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 抱一個 - 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":"MPB01232J5-IV03","featured_media":{"alt":null,"id":23890234507363,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb07637225d8ee9ebd5ba82c1b91f661c3113cc5_28d79627-7843-419c-95bc-749c026ee951.webp?v=1714889777"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904895230051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-IV03","requires_shipping":true,"taxable":true,"featured_image":{"id":31484929015907,"product_id":7414211248227,"position":5,"created_at":"2024-05-05T14:16:22+08:00","updated_at":"2024-05-05T14:16:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ec02acd1025f77a3ca82de9d4698ad0823d51_a911a640-ecf7-4c77-93fd-44a791e363b6.webp?v=1714889782","variant_ids":[41904895230051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 1G - 抱一個 - 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":"MPB0123224-IV03","featured_media":{"alt":null,"id":23890238931043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/319ec02acd1025f77a3ca82de9d4698ad0823d51_a911a640-ecf7-4c77-93fd-44a791e363b6.webp?v=1714889782"}},"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: "停產"
}