$product = {"id":7414572056675,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Weiweiboy - 可愛大王上甜點","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-eo04","description":null,"published_at":"2024-06-11T17:52:08+08:00","created_at":"2024-05-05T14:31: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 13 Pro Max","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":41907457949795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485794451555,"product_id":7414572056675,"position":10,"created_at":"2024-05-05T14:31:34+08:00","updated_at":"2024-05-05T14:31:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17662bef2f3b3fe068458cf64e6c3c62ea8ba5bd_af1e2bc1-3c5f-4924-9a4b-593e3d16026e.webp?v=1714890694","variant_ids":[41907457949795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB0123224-EO04","featured_media":{"alt":null,"id":23891126419555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17662bef2f3b3fe068458cf64e6c3c62ea8ba5bd_af1e2bc1-3c5f-4924-9a4b-593e3d16026e.webp?v=1714890694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907458408547,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485793665123,"product_id":7414572056675,"position":9,"created_at":"2024-05-05T14:31:32+08:00","updated_at":"2024-05-05T14:31:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed1ffbc4e79566d20420e00cc27844cb8e8e18ef_304f167a-2e24-46af-8a1a-c825d29970e4.webp?v=1714890692","variant_ids":[41907458408547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB01232J5-EO04","featured_media":{"alt":null,"id":23891125665891,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed1ffbc4e79566d20420e00cc27844cb8e8e18ef_304f167a-2e24-46af-8a1a-c825d29970e4.webp?v=1714890692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99c1362df9abbfcbd47bd1a18773631f60a11d1_29ecc994-fad4-4006-9997-561df90b2ecd.webp?v=1714890673","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2792b670b304417b5318e592fcd2a69d92bec6d9_eb65bd84-2ed4-446e-8e94-2211bb572178.webp?v=1714890676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef705f411a380c307cb29158b8c15bf5e67bb481_7f642702-512e-441a-8968-fda778cbfbe5.webp?v=1714890678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65045525ace30a9114725cb5c8d16bb979e69210_ef18dc09-3cd3-4df5-8592-08a285851330.webp?v=1714890680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485ad4aa0d435093aba0cf06eea296c114d5adec_e3078e36-03f0-4fa4-8732-906879b77ff4.webp?v=1714890682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a62bfeecc019f32641c4c7e08c7eea9511932d_3e173fab-f01b-4bfc-b45e-26d58a4594a3.webp?v=1714890685","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821ab91eb53938a380857dd139fd5632ffcad567_5244008a-34c4-4208-8907-f199e9150ab0.webp?v=1714890687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b3791c7a495817a5cf1bc64cc0dc4dc202947a_12c29b6e-7e48-4801-b57e-f1c25e194e37.webp?v=1714890689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed1ffbc4e79566d20420e00cc27844cb8e8e18ef_304f167a-2e24-46af-8a1a-c825d29970e4.webp?v=1714890692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17662bef2f3b3fe068458cf64e6c3c62ea8ba5bd_af1e2bc1-3c5f-4924-9a4b-593e3d16026e.webp?v=1714890694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f87adb922f637fe2b9363b68c2fd5d31530fa03_d61fe981-6735-4c49-8b63-276b6e04e13c.webp?v=1714890696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9076381b37476466c2901fb02c5c84b8334a30b4_fbed8383-32fb-479e-ac8a-b34feb243762.webp?v=1714890698"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99c1362df9abbfcbd47bd1a18773631f60a11d1_29ecc994-fad4-4006-9997-561df90b2ecd.webp?v=1714890673","options":["color"],"media":[{"alt":null,"id":23891115311203,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99c1362df9abbfcbd47bd1a18773631f60a11d1_29ecc994-fad4-4006-9997-561df90b2ecd.webp?v=1714890673"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e99c1362df9abbfcbd47bd1a18773631f60a11d1_29ecc994-fad4-4006-9997-561df90b2ecd.webp?v=1714890673","width":2000},{"alt":null,"id":23891116785763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2792b670b304417b5318e592fcd2a69d92bec6d9_eb65bd84-2ed4-446e-8e94-2211bb572178.webp?v=1714890676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2792b670b304417b5318e592fcd2a69d92bec6d9_eb65bd84-2ed4-446e-8e94-2211bb572178.webp?v=1714890676","width":2000},{"alt":null,"id":23891118588003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef705f411a380c307cb29158b8c15bf5e67bb481_7f642702-512e-441a-8968-fda778cbfbe5.webp?v=1714890678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef705f411a380c307cb29158b8c15bf5e67bb481_7f642702-512e-441a-8968-fda778cbfbe5.webp?v=1714890678","width":2000},{"alt":null,"id":23891119964259,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65045525ace30a9114725cb5c8d16bb979e69210_ef18dc09-3cd3-4df5-8592-08a285851330.webp?v=1714890680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65045525ace30a9114725cb5c8d16bb979e69210_ef18dc09-3cd3-4df5-8592-08a285851330.webp?v=1714890680","width":2000},{"alt":null,"id":23891121274979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485ad4aa0d435093aba0cf06eea296c114d5adec_e3078e36-03f0-4fa4-8732-906879b77ff4.webp?v=1714890682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/485ad4aa0d435093aba0cf06eea296c114d5adec_e3078e36-03f0-4fa4-8732-906879b77ff4.webp?v=1714890682","width":2000},{"alt":null,"id":23891122487395,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a62bfeecc019f32641c4c7e08c7eea9511932d_3e173fab-f01b-4bfc-b45e-26d58a4594a3.webp?v=1714890685"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1a62bfeecc019f32641c4c7e08c7eea9511932d_3e173fab-f01b-4bfc-b45e-26d58a4594a3.webp?v=1714890685","width":2000},{"alt":null,"id":23891123404899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821ab91eb53938a380857dd139fd5632ffcad567_5244008a-34c4-4208-8907-f199e9150ab0.webp?v=1714890687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821ab91eb53938a380857dd139fd5632ffcad567_5244008a-34c4-4208-8907-f199e9150ab0.webp?v=1714890687","width":2000},{"alt":null,"id":23891124715619,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b3791c7a495817a5cf1bc64cc0dc4dc202947a_12c29b6e-7e48-4801-b57e-f1c25e194e37.webp?v=1714890689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30b3791c7a495817a5cf1bc64cc0dc4dc202947a_12c29b6e-7e48-4801-b57e-f1c25e194e37.webp?v=1714890689","width":2000},{"alt":null,"id":23891125665891,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed1ffbc4e79566d20420e00cc27844cb8e8e18ef_304f167a-2e24-46af-8a1a-c825d29970e4.webp?v=1714890692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed1ffbc4e79566d20420e00cc27844cb8e8e18ef_304f167a-2e24-46af-8a1a-c825d29970e4.webp?v=1714890692","width":2000},{"alt":null,"id":23891126419555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17662bef2f3b3fe068458cf64e6c3c62ea8ba5bd_af1e2bc1-3c5f-4924-9a4b-593e3d16026e.webp?v=1714890694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17662bef2f3b3fe068458cf64e6c3c62ea8ba5bd_af1e2bc1-3c5f-4924-9a4b-593e3d16026e.webp?v=1714890694","width":2000},{"alt":null,"id":23891127271523,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f87adb922f637fe2b9363b68c2fd5d31530fa03_d61fe981-6735-4c49-8b63-276b6e04e13c.webp?v=1714890696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f87adb922f637fe2b9363b68c2fd5d31530fa03_d61fe981-6735-4c49-8b63-276b6e04e13c.webp?v=1714890696","width":2000},{"alt":null,"id":23891128057955,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9076381b37476466c2901fb02c5c84b8334a30b4_fbed8383-32fb-479e-ac8a-b34feb243762.webp?v=1714890698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9076381b37476466c2901fb02c5c84b8334a30b4_fbed8383-32fb-479e-ac8a-b34feb243762.webp?v=1714890698","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907457949795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485794451555,"product_id":7414572056675,"position":10,"created_at":"2024-05-05T14:31:34+08:00","updated_at":"2024-05-05T14:31:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17662bef2f3b3fe068458cf64e6c3c62ea8ba5bd_af1e2bc1-3c5f-4924-9a4b-593e3d16026e.webp?v=1714890694","variant_ids":[41907457949795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB0123224-EO04","featured_media":{"alt":null,"id":23891126419555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17662bef2f3b3fe068458cf64e6c3c62ea8ba5bd_af1e2bc1-3c5f-4924-9a4b-593e3d16026e.webp?v=1714890694"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907458408547,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485793665123,"product_id":7414572056675,"position":9,"created_at":"2024-05-05T14:31:32+08:00","updated_at":"2024-05-05T14:31:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed1ffbc4e79566d20420e00cc27844cb8e8e18ef_304f167a-2e24-46af-8a1a-c825d29970e4.webp?v=1714890692","variant_ids":[41907458408547]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB01232J5-EO04","featured_media":{"alt":null,"id":23891125665891,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed1ffbc4e79566d20420e00cc27844cb8e8e18ef_304f167a-2e24-46af-8a1a-c825d29970e4.webp?v=1714890692"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907457949795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-EO04","requires_shipping":true,"taxable":true,"featured_image":{"id":31485794451555,"product_id":7414572056675,"position":10,"created_at":"2024-05-05T14:31:34+08:00","updated_at":"2024-05-05T14:31:34+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17662bef2f3b3fe068458cf64e6c3c62ea8ba5bd_af1e2bc1-3c5f-4924-9a4b-593e3d16026e.webp?v=1714890694","variant_ids":[41907457949795]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 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":"MPB0123224-EO04","featured_media":{"alt":null,"id":23891126419555,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/17662bef2f3b3fe068458cf64e6c3c62ea8ba5bd_af1e2bc1-3c5f-4924-9a4b-593e3d16026e.webp?v=1714890694"}},"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: "停產"
}