$product = {"id":7414321283171,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb12","description":null,"published_at":"2024-06-11T17:50:46+08:00","created_at":"2024-05-05T14:21:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41905689854051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485157474403,"product_id":7414321283171,"position":4,"created_at":"2024-05-05T14:21:58+08:00","updated_at":"2024-05-05T14:21:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b361f55ee11fddda939ca3433535a4dfd3a722f5_00f4bdf7-b88e-49ab-8572-0595b4fc7520.webp?v=1714890118","variant_ids":[41905689854051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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":"MPB0123224-PB12","featured_media":{"alt":null,"id":23890473025635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b361f55ee11fddda939ca3433535a4dfd3a722f5_00f4bdf7-b88e-49ab-8572-0595b4fc7520.webp?v=1714890118"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905690280035,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485165142115,"product_id":7414321283171,"position":7,"created_at":"2024-05-05T14:22:05+08:00","updated_at":"2024-05-05T14:22:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf678e595010b803491f7f2cd102978b0689378_b2f76d6e-5ac0-49ee-b77c-7fc57c66ed3e.webp?v=1714890125","variant_ids":[41905690280035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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":"MPB01232J5-PB12","featured_media":{"alt":null,"id":23890480365667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf678e595010b803491f7f2cd102978b0689378_b2f76d6e-5ac0-49ee-b77c-7fc57c66ed3e.webp?v=1714890125"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3c44f7e4abea9b9ffd517a2c6eb0e49dc59a45_fee2b93a-86e1-424b-b1ed-6b526b3ffd5d.webp?v=1714890111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bc697d66973ab5a0eac41a7e6a8326a8a89722a_87e331bf-286b-42f8-9a43-507831ed6e87.webp?v=1714890114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/008947bd6c0ea469a9646f1cc730ab900ef68393_fa578943-0767-497d-a121-f0f1d103bfff.webp?v=1714890116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b361f55ee11fddda939ca3433535a4dfd3a722f5_00f4bdf7-b88e-49ab-8572-0595b4fc7520.webp?v=1714890118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0af83c4ce308668a04f4953f3300ac47c4f3fb2_c4ac086c-e039-4937-bd77-ae44bb5310d8.webp?v=1714890121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8c4052c78b4e63aa013320059ab69fe16a4a4d_fb324b23-61c4-492a-9c50-07cb776576cb.webp?v=1714890123","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf678e595010b803491f7f2cd102978b0689378_b2f76d6e-5ac0-49ee-b77c-7fc57c66ed3e.webp?v=1714890125","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0431f826d200ddf983aec82fa825b65d6e4646dd_45fda343-8533-41cc-87f5-b54e0f124447.webp?v=1714890128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3970758702b25c602b6bf4a0f12c472d6512c7cb_2b49fc73-dba9-4cdf-bd7f-9c241cf554e8.webp?v=1714890130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc6ab19da53bf062854d80721c38d1e8d988fa6_d0468e29-97a5-4d2f-b8e6-c18962b0dca7.webp?v=1714890132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/055ca22b5ffa73778369e0496a31c9a9a9c28e65_4106a8b6-1c07-445f-8223-3ae80f2e7949.webp?v=1714890134"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3c44f7e4abea9b9ffd517a2c6eb0e49dc59a45_fee2b93a-86e1-424b-b1ed-6b526b3ffd5d.webp?v=1714890111","options":["color"],"media":[{"alt":null,"id":23890466668643,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3c44f7e4abea9b9ffd517a2c6eb0e49dc59a45_fee2b93a-86e1-424b-b1ed-6b526b3ffd5d.webp?v=1714890111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f3c44f7e4abea9b9ffd517a2c6eb0e49dc59a45_fee2b93a-86e1-424b-b1ed-6b526b3ffd5d.webp?v=1714890111","width":2000},{"alt":null,"id":23890468700259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bc697d66973ab5a0eac41a7e6a8326a8a89722a_87e331bf-286b-42f8-9a43-507831ed6e87.webp?v=1714890114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bc697d66973ab5a0eac41a7e6a8326a8a89722a_87e331bf-286b-42f8-9a43-507831ed6e87.webp?v=1714890114","width":2000},{"alt":null,"id":23890470994019,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/008947bd6c0ea469a9646f1cc730ab900ef68393_fa578943-0767-497d-a121-f0f1d103bfff.webp?v=1714890116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/008947bd6c0ea469a9646f1cc730ab900ef68393_fa578943-0767-497d-a121-f0f1d103bfff.webp?v=1714890116","width":2000},{"alt":null,"id":23890473025635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b361f55ee11fddda939ca3433535a4dfd3a722f5_00f4bdf7-b88e-49ab-8572-0595b4fc7520.webp?v=1714890118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b361f55ee11fddda939ca3433535a4dfd3a722f5_00f4bdf7-b88e-49ab-8572-0595b4fc7520.webp?v=1714890118","width":2000},{"alt":null,"id":23890475122787,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0af83c4ce308668a04f4953f3300ac47c4f3fb2_c4ac086c-e039-4937-bd77-ae44bb5310d8.webp?v=1714890121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d0af83c4ce308668a04f4953f3300ac47c4f3fb2_c4ac086c-e039-4937-bd77-ae44bb5310d8.webp?v=1714890121","width":2000},{"alt":null,"id":23890478399587,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8c4052c78b4e63aa013320059ab69fe16a4a4d_fb324b23-61c4-492a-9c50-07cb776576cb.webp?v=1714890123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b8c4052c78b4e63aa013320059ab69fe16a4a4d_fb324b23-61c4-492a-9c50-07cb776576cb.webp?v=1714890123","width":2000},{"alt":null,"id":23890480365667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf678e595010b803491f7f2cd102978b0689378_b2f76d6e-5ac0-49ee-b77c-7fc57c66ed3e.webp?v=1714890125"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf678e595010b803491f7f2cd102978b0689378_b2f76d6e-5ac0-49ee-b77c-7fc57c66ed3e.webp?v=1714890125","width":2000},{"alt":null,"id":23890482069603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0431f826d200ddf983aec82fa825b65d6e4646dd_45fda343-8533-41cc-87f5-b54e0f124447.webp?v=1714890128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0431f826d200ddf983aec82fa825b65d6e4646dd_45fda343-8533-41cc-87f5-b54e0f124447.webp?v=1714890128","width":2000},{"alt":null,"id":23890484527203,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3970758702b25c602b6bf4a0f12c472d6512c7cb_2b49fc73-dba9-4cdf-bd7f-9c241cf554e8.webp?v=1714890130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3970758702b25c602b6bf4a0f12c472d6512c7cb_2b49fc73-dba9-4cdf-bd7f-9c241cf554e8.webp?v=1714890130","width":2000},{"alt":null,"id":23890487574627,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc6ab19da53bf062854d80721c38d1e8d988fa6_d0468e29-97a5-4d2f-b8e6-c18962b0dca7.webp?v=1714890132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0fc6ab19da53bf062854d80721c38d1e8d988fa6_d0468e29-97a5-4d2f-b8e6-c18962b0dca7.webp?v=1714890132","width":2000},{"alt":null,"id":23890490589283,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/055ca22b5ffa73778369e0496a31c9a9a9c28e65_4106a8b6-1c07-445f-8223-3ae80f2e7949.webp?v=1714890134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/055ca22b5ffa73778369e0496a31c9a9a9c28e65_4106a8b6-1c07-445f-8223-3ae80f2e7949.webp?v=1714890134","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41905689854051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485157474403,"product_id":7414321283171,"position":4,"created_at":"2024-05-05T14:21:58+08:00","updated_at":"2024-05-05T14:21:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b361f55ee11fddda939ca3433535a4dfd3a722f5_00f4bdf7-b88e-49ab-8572-0595b4fc7520.webp?v=1714890118","variant_ids":[41905689854051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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":"MPB0123224-PB12","featured_media":{"alt":null,"id":23890473025635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b361f55ee11fddda939ca3433535a4dfd3a722f5_00f4bdf7-b88e-49ab-8572-0595b4fc7520.webp?v=1714890118"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905690280035,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485165142115,"product_id":7414321283171,"position":7,"created_at":"2024-05-05T14:22:05+08:00","updated_at":"2024-05-05T14:22:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf678e595010b803491f7f2cd102978b0689378_b2f76d6e-5ac0-49ee-b77c-7fc57c66ed3e.webp?v=1714890125","variant_ids":[41905690280035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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":"MPB01232J5-PB12","featured_media":{"alt":null,"id":23890480365667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cf678e595010b803491f7f2cd102978b0689378_b2f76d6e-5ac0-49ee-b77c-7fc57c66ed3e.webp?v=1714890125"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905689854051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB12","requires_shipping":true,"taxable":true,"featured_image":{"id":31485157474403,"product_id":7414321283171,"position":4,"created_at":"2024-05-05T14:21:58+08:00","updated_at":"2024-05-05T14:21:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b361f55ee11fddda939ca3433535a4dfd3a722f5_00f4bdf7-b88e-49ab-8572-0595b4fc7520.webp?v=1714890118","variant_ids":[41905689854051]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-白 - 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":"MPB0123224-PB12","featured_media":{"alt":null,"id":23890473025635,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b361f55ee11fddda939ca3433535a4dfd3a722f5_00f4bdf7-b88e-49ab-8572-0595b4fc7520.webp?v=1714890118"}},"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: "停產"
}