$product = {"id":7414532833379,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb02","description":null,"published_at":"2024-06-11T17:51:50+08:00","created_at":"2024-05-05T14:29:08+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":41907184697443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485688938595,"product_id":7414532833379,"position":1,"created_at":"2024-05-05T14:29:11+08:00","updated_at":"2024-05-05T14:29:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551","variant_ids":[41907184697443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆白 - 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-PB02","featured_media":{"alt":null,"id":23891008553059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907185221731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485708992611,"product_id":7414532833379,"position":10,"created_at":"2024-05-05T14:29:31+08:00","updated_at":"2024-05-05T14:29:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8a9c1ae00080c7c8d37002be5b2a726b28b5b7_b013fba2-4f22-417e-a65b-39473373ed29.webp?v=1714890571","variant_ids":[41907185221731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆白 - 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-PB02","featured_media":{"alt":null,"id":23891030114403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8a9c1ae00080c7c8d37002be5b2a726b28b5b7_b013fba2-4f22-417e-a65b-39473373ed29.webp?v=1714890571"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4b8f17e9cea56c3820b45068306d6932450f1d_c3203fd1-7c82-41f5-b7fc-f11a3083cd5c.webp?v=1714890553","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfcd6a82f2888ddc445d0da2df651ef4e75f7ed9_b1686e0a-b74c-4426-9b8e-9c6c4a2e210b.webp?v=1714890555","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84ec71a6878a50bdfe772add9acdf11d97eda3ea_1415c748-e629-4a06-8b0d-14288786ec6f.webp?v=1714890557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8106ff88d7618b4a1128d9abfc5d464dd22c7ad_ed971219-3b98-4bcd-8e2d-4f191e3ade2b.webp?v=1714890560","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f7610a7a674a926af1a724bba97ec9e82d5c6be_af2b6442-1cd2-4b02-86dd-c4de83e0d5b3.webp?v=1714890562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d45b7ca1c68446136c0beccb5a1afc97766809_3a42b487-ec73-47ca-a491-340619393f2b.webp?v=1714890564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bac963d4cc45ee1445348592fffe884795a277ce_95490fa0-bb17-47d3-b980-7d03e37c75d8.webp?v=1714890566","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757ad1b3d02468591332bbe921968fbeb02bbeb3_f6d3d2fb-3349-47c2-b095-324d5f77d8fb.webp?v=1714890569","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8a9c1ae00080c7c8d37002be5b2a726b28b5b7_b013fba2-4f22-417e-a65b-39473373ed29.webp?v=1714890571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0341e7a46bb06a71c26559ae682bc6357c0fe24_c890950a-41c8-4594-ab90-fa768646476f.webp?v=1714890573"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551","options":["color"],"media":[{"alt":null,"id":23891008553059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551","width":2000},{"alt":null,"id":23891010945123,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4b8f17e9cea56c3820b45068306d6932450f1d_c3203fd1-7c82-41f5-b7fc-f11a3083cd5c.webp?v=1714890553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce4b8f17e9cea56c3820b45068306d6932450f1d_c3203fd1-7c82-41f5-b7fc-f11a3083cd5c.webp?v=1714890553","width":2000},{"alt":null,"id":23891013664867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfcd6a82f2888ddc445d0da2df651ef4e75f7ed9_b1686e0a-b74c-4426-9b8e-9c6c4a2e210b.webp?v=1714890555"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfcd6a82f2888ddc445d0da2df651ef4e75f7ed9_b1686e0a-b74c-4426-9b8e-9c6c4a2e210b.webp?v=1714890555","width":2000},{"alt":null,"id":23891016220771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84ec71a6878a50bdfe772add9acdf11d97eda3ea_1415c748-e629-4a06-8b0d-14288786ec6f.webp?v=1714890557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84ec71a6878a50bdfe772add9acdf11d97eda3ea_1415c748-e629-4a06-8b0d-14288786ec6f.webp?v=1714890557","width":2000},{"alt":null,"id":23891018874979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8106ff88d7618b4a1128d9abfc5d464dd22c7ad_ed971219-3b98-4bcd-8e2d-4f191e3ade2b.webp?v=1714890560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8106ff88d7618b4a1128d9abfc5d464dd22c7ad_ed971219-3b98-4bcd-8e2d-4f191e3ade2b.webp?v=1714890560","width":2000},{"alt":null,"id":23891021693027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f7610a7a674a926af1a724bba97ec9e82d5c6be_af2b6442-1cd2-4b02-86dd-c4de83e0d5b3.webp?v=1714890562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f7610a7a674a926af1a724bba97ec9e82d5c6be_af2b6442-1cd2-4b02-86dd-c4de83e0d5b3.webp?v=1714890562","width":2000},{"alt":null,"id":23891024019555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d45b7ca1c68446136c0beccb5a1afc97766809_3a42b487-ec73-47ca-a491-340619393f2b.webp?v=1714890564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65d45b7ca1c68446136c0beccb5a1afc97766809_3a42b487-ec73-47ca-a491-340619393f2b.webp?v=1714890564","width":2000},{"alt":null,"id":23891026116707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bac963d4cc45ee1445348592fffe884795a277ce_95490fa0-bb17-47d3-b980-7d03e37c75d8.webp?v=1714890566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bac963d4cc45ee1445348592fffe884795a277ce_95490fa0-bb17-47d3-b980-7d03e37c75d8.webp?v=1714890566","width":2000},{"alt":null,"id":23891028213859,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757ad1b3d02468591332bbe921968fbeb02bbeb3_f6d3d2fb-3349-47c2-b095-324d5f77d8fb.webp?v=1714890569"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/757ad1b3d02468591332bbe921968fbeb02bbeb3_f6d3d2fb-3349-47c2-b095-324d5f77d8fb.webp?v=1714890569","width":2000},{"alt":null,"id":23891030114403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8a9c1ae00080c7c8d37002be5b2a726b28b5b7_b013fba2-4f22-417e-a65b-39473373ed29.webp?v=1714890571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8a9c1ae00080c7c8d37002be5b2a726b28b5b7_b013fba2-4f22-417e-a65b-39473373ed29.webp?v=1714890571","width":2000},{"alt":null,"id":23891032047715,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0341e7a46bb06a71c26559ae682bc6357c0fe24_c890950a-41c8-4594-ab90-fa768646476f.webp?v=1714890573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0341e7a46bb06a71c26559ae682bc6357c0fe24_c890950a-41c8-4594-ab90-fa768646476f.webp?v=1714890573","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907184697443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485688938595,"product_id":7414532833379,"position":1,"created_at":"2024-05-05T14:29:11+08:00","updated_at":"2024-05-05T14:29:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551","variant_ids":[41907184697443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆白 - 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-PB02","featured_media":{"alt":null,"id":23891008553059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907185221731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485708992611,"product_id":7414532833379,"position":10,"created_at":"2024-05-05T14:29:31+08:00","updated_at":"2024-05-05T14:29:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8a9c1ae00080c7c8d37002be5b2a726b28b5b7_b013fba2-4f22-417e-a65b-39473373ed29.webp?v=1714890571","variant_ids":[41907185221731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆白 - 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-PB02","featured_media":{"alt":null,"id":23891030114403,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d8a9c1ae00080c7c8d37002be5b2a726b28b5b7_b013fba2-4f22-417e-a65b-39473373ed29.webp?v=1714890571"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907184697443,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB02","requires_shipping":true,"taxable":true,"featured_image":{"id":31485688938595,"product_id":7414532833379,"position":1,"created_at":"2024-05-05T14:29:11+08:00","updated_at":"2024-05-05T14:29:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551","variant_ids":[41907184697443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-噴漆白 - 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-PB02","featured_media":{"alt":null,"id":23891008553059,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf2a219fbacb4a20e39957d789f477bfd3d2690_c005c67a-3063-43a5-bc59-5600a34b6613.webp?v=1714890551"}},"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: "停產"
}