$product = {"id":7414033776739,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X翼戰機","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb74","description":null,"published_at":"2024-06-11T17:48:18+08:00","created_at":"2024-05-05T14:05:10+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":41903566946403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510306403,"product_id":7414033776739,"position":1,"created_at":"2024-05-05T14:05:12+08:00","updated_at":"2024-05-05T14:05:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112","variant_ids":[41903566946403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889804427363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903567241315,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484515352675,"product_id":7414033776739,"position":11,"created_at":"2024-05-05T14:05:36+08:00","updated_at":"2024-05-05T14:05:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46fdd4e2295766b6cd6d2beb52230b0ecd0d9546_42e22e5a-fe9f-49aa-b403-dca8895a9262.webp?v=1714889136","variant_ids":[41903567241315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889809473635,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46fdd4e2295766b6cd6d2beb52230b0ecd0d9546_42e22e5a-fe9f-49aa-b403-dca8895a9262.webp?v=1714889136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8ee0458252f6a8ba8fa13cffba7c130213621e_e091d524-eb74-4baa-a1e8-f14820c038fc.webp?v=1714889115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e6177303c824b7c5068c0a4f88e6bf200d051d_694e8451-280f-41f3-ba5b-c60734c42c94.webp?v=1714889117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5058f0712cddbd141518df4f34ae1a15b125687_86059959-70aa-498f-b125-72f464da768c.webp?v=1714889119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3b7812f35e3f7f8499f247dd35d19b2d647263_1a2b8fba-c02c-4c22-af5c-bdde2b56589c.webp?v=1714889122","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ea1bb781b6f143033fa05177661eea89dfab5ac_7a9412ec-8efd-46a1-bf35-86bc6c4b926e.webp?v=1714889124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c9190452ea49e3327230a0468a5475fb7820c35_faa0106c-5525-44fd-bb7d-875d7e2e19fd.webp?v=1714889126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81a962050ffddf033212f21fecce3dc7f73607c_08205f0e-4a4c-4e80-9bf1-cf88aee97ce8.webp?v=1714889129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b43baea6e55e37420289af7e7d51b1dec6ad3ee6_51e2c04b-e9d7-447e-89f8-9d06be5ebe54.webp?v=1714889132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df648e97f10ebf434e27b21ee7fc5392d510ed0f_928b5659-7dce-44b9-865e-b4794615e236.webp?v=1714889134","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46fdd4e2295766b6cd6d2beb52230b0ecd0d9546_42e22e5a-fe9f-49aa-b403-dca8895a9262.webp?v=1714889136"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112","options":["color"],"media":[{"alt":null,"id":23889804427363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112","width":2000},{"alt":null,"id":23889804984419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8ee0458252f6a8ba8fa13cffba7c130213621e_e091d524-eb74-4baa-a1e8-f14820c038fc.webp?v=1714889115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef8ee0458252f6a8ba8fa13cffba7c130213621e_e091d524-eb74-4baa-a1e8-f14820c038fc.webp?v=1714889115","width":2000},{"alt":null,"id":23889805770851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e6177303c824b7c5068c0a4f88e6bf200d051d_694e8451-280f-41f3-ba5b-c60734c42c94.webp?v=1714889117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6e6177303c824b7c5068c0a4f88e6bf200d051d_694e8451-280f-41f3-ba5b-c60734c42c94.webp?v=1714889117","width":2000},{"alt":null,"id":23889806327907,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5058f0712cddbd141518df4f34ae1a15b125687_86059959-70aa-498f-b125-72f464da768c.webp?v=1714889119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5058f0712cddbd141518df4f34ae1a15b125687_86059959-70aa-498f-b125-72f464da768c.webp?v=1714889119","width":2000},{"alt":null,"id":23889806721123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3b7812f35e3f7f8499f247dd35d19b2d647263_1a2b8fba-c02c-4c22-af5c-bdde2b56589c.webp?v=1714889122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da3b7812f35e3f7f8499f247dd35d19b2d647263_1a2b8fba-c02c-4c22-af5c-bdde2b56589c.webp?v=1714889122","width":2000},{"alt":null,"id":23889807212643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ea1bb781b6f143033fa05177661eea89dfab5ac_7a9412ec-8efd-46a1-bf35-86bc6c4b926e.webp?v=1714889124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ea1bb781b6f143033fa05177661eea89dfab5ac_7a9412ec-8efd-46a1-bf35-86bc6c4b926e.webp?v=1714889124","width":2000},{"alt":null,"id":23889807704163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c9190452ea49e3327230a0468a5475fb7820c35_faa0106c-5525-44fd-bb7d-875d7e2e19fd.webp?v=1714889126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c9190452ea49e3327230a0468a5475fb7820c35_faa0106c-5525-44fd-bb7d-875d7e2e19fd.webp?v=1714889126","width":2000},{"alt":null,"id":23889808162915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81a962050ffddf033212f21fecce3dc7f73607c_08205f0e-4a4c-4e80-9bf1-cf88aee97ce8.webp?v=1714889129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f81a962050ffddf033212f21fecce3dc7f73607c_08205f0e-4a4c-4e80-9bf1-cf88aee97ce8.webp?v=1714889129","width":2000},{"alt":null,"id":23889808621667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b43baea6e55e37420289af7e7d51b1dec6ad3ee6_51e2c04b-e9d7-447e-89f8-9d06be5ebe54.webp?v=1714889132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b43baea6e55e37420289af7e7d51b1dec6ad3ee6_51e2c04b-e9d7-447e-89f8-9d06be5ebe54.webp?v=1714889132","width":2000},{"alt":null,"id":23889809047651,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df648e97f10ebf434e27b21ee7fc5392d510ed0f_928b5659-7dce-44b9-865e-b4794615e236.webp?v=1714889134"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df648e97f10ebf434e27b21ee7fc5392d510ed0f_928b5659-7dce-44b9-865e-b4794615e236.webp?v=1714889134","width":2000},{"alt":null,"id":23889809473635,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46fdd4e2295766b6cd6d2beb52230b0ecd0d9546_42e22e5a-fe9f-49aa-b403-dca8895a9262.webp?v=1714889136"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46fdd4e2295766b6cd6d2beb52230b0ecd0d9546_42e22e5a-fe9f-49aa-b403-dca8895a9262.webp?v=1714889136","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903566946403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510306403,"product_id":7414033776739,"position":1,"created_at":"2024-05-05T14:05:12+08:00","updated_at":"2024-05-05T14:05:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112","variant_ids":[41903566946403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889804427363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903567241315,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484515352675,"product_id":7414033776739,"position":11,"created_at":"2024-05-05T14:05:36+08:00","updated_at":"2024-05-05T14:05:36+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46fdd4e2295766b6cd6d2beb52230b0ecd0d9546_42e22e5a-fe9f-49aa-b403-dca8895a9262.webp?v=1714889136","variant_ids":[41903567241315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889809473635,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46fdd4e2295766b6cd6d2beb52230b0ecd0d9546_42e22e5a-fe9f-49aa-b403-dca8895a9262.webp?v=1714889136"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903566946403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31484510306403,"product_id":7414033776739,"position":1,"created_at":"2024-05-05T14:05:12+08:00","updated_at":"2024-05-05T14:05:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112","variant_ids":[41903566946403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23889804427363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/471d1dc9e052c724e9043b92582847ebe33906fe_09fc551f-1e81-4846-9dd0-562b57280e38.webp?v=1714889112"}},"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: "停產"
}