$product = {"id":7411160940643,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb62","description":null,"published_at":"2024-06-11T17:37:53+08:00","created_at":"2024-05-04T22:54:44+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 15 Plus","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":41895570866275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31479677157475,"product_id":7411160940643,"position":2,"created_at":"2024-05-04T22:54:49+08:00","updated_at":"2024-05-04T22:54:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b2c521ac1d0803989c84b86d82c837680932bf9_2aa639de-108b-4b4e-974e-ca09885ea178.webp?v=1714834489","variant_ids":[41895570866275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129624-PB62","featured_media":{"alt":null,"id":23884925141091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b2c521ac1d0803989c84b86d82c837680932bf9_2aa639de-108b-4b4e-974e-ca09885ea178.webp?v=1714834489"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895571161187,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31479680794723,"product_id":7411160940643,"position":8,"created_at":"2024-05-04T22:55:05+08:00","updated_at":"2024-05-04T22:55:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6342a7fd4cff2d1c5b9e31fd0f27c097f852cf_c8c32987-9a27-4675-9e21-40e26e1d8399.webp?v=1714834505","variant_ids":[41895571161187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129657-PB62","featured_media":{"alt":null,"id":23884928712803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6342a7fd4cff2d1c5b9e31fd0f27c097f852cf_c8c32987-9a27-4675-9e21-40e26e1d8399.webp?v=1714834505"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4bdf4da2bd937425c18fd386f7ecb1cb8d815_fe6e5e31-59bc-4528-a856-232d9c5571e6.webp?v=1714834486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b2c521ac1d0803989c84b86d82c837680932bf9_2aa639de-108b-4b4e-974e-ca09885ea178.webp?v=1714834489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819df5cd3c7b554f6677a4f8d9640f8c56613d42_7e1af568-2171-42c8-8ebb-c723e8f7740f.webp?v=1714834491","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a241565ac2bed14bdbf8afcb07615069388b7d18_f97775d3-3951-4e8c-aae4-bbb86d935270.webp?v=1714834493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba8f3015fda3f3a97fd176f84b776da949b52cc_75f93b85-0810-4b15-81b5-016de57e4d6c.webp?v=1714834496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9d646eaddd1e19d619e3ca359ca0978f59eea7b_05f43f10-ea78-4805-94ee-596d7f2ba9d6.webp?v=1714834500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3bd478165c91fba2f864c79644e86682377733_7adc107e-6e73-4dd1-96a7-2d4ec6a1c683.webp?v=1714834502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6342a7fd4cff2d1c5b9e31fd0f27c097f852cf_c8c32987-9a27-4675-9e21-40e26e1d8399.webp?v=1714834505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca75fb4a4456a3c11690a5d806bfcb7d0ab0a28_fcd53208-92db-43e2-8e0f-bfe48e16cf9d.webp?v=1714834507"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4bdf4da2bd937425c18fd386f7ecb1cb8d815_fe6e5e31-59bc-4528-a856-232d9c5571e6.webp?v=1714834486","options":["color"],"media":[{"alt":null,"id":23884924715107,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4bdf4da2bd937425c18fd386f7ecb1cb8d815_fe6e5e31-59bc-4528-a856-232d9c5571e6.webp?v=1714834486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a4bdf4da2bd937425c18fd386f7ecb1cb8d815_fe6e5e31-59bc-4528-a856-232d9c5571e6.webp?v=1714834486","width":2000},{"alt":null,"id":23884925141091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b2c521ac1d0803989c84b86d82c837680932bf9_2aa639de-108b-4b4e-974e-ca09885ea178.webp?v=1714834489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b2c521ac1d0803989c84b86d82c837680932bf9_2aa639de-108b-4b4e-974e-ca09885ea178.webp?v=1714834489","width":2000},{"alt":null,"id":23884925501539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819df5cd3c7b554f6677a4f8d9640f8c56613d42_7e1af568-2171-42c8-8ebb-c723e8f7740f.webp?v=1714834491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/819df5cd3c7b554f6677a4f8d9640f8c56613d42_7e1af568-2171-42c8-8ebb-c723e8f7740f.webp?v=1714834491","width":2000},{"alt":null,"id":23884926025827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a241565ac2bed14bdbf8afcb07615069388b7d18_f97775d3-3951-4e8c-aae4-bbb86d935270.webp?v=1714834493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a241565ac2bed14bdbf8afcb07615069388b7d18_f97775d3-3951-4e8c-aae4-bbb86d935270.webp?v=1714834493","width":2000},{"alt":null,"id":23884926484579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba8f3015fda3f3a97fd176f84b776da949b52cc_75f93b85-0810-4b15-81b5-016de57e4d6c.webp?v=1714834496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eba8f3015fda3f3a97fd176f84b776da949b52cc_75f93b85-0810-4b15-81b5-016de57e4d6c.webp?v=1714834496","width":2000},{"alt":null,"id":23884927729763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9d646eaddd1e19d619e3ca359ca0978f59eea7b_05f43f10-ea78-4805-94ee-596d7f2ba9d6.webp?v=1714834500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9d646eaddd1e19d619e3ca359ca0978f59eea7b_05f43f10-ea78-4805-94ee-596d7f2ba9d6.webp?v=1714834500","width":2000},{"alt":null,"id":23884928221283,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3bd478165c91fba2f864c79644e86682377733_7adc107e-6e73-4dd1-96a7-2d4ec6a1c683.webp?v=1714834502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d3bd478165c91fba2f864c79644e86682377733_7adc107e-6e73-4dd1-96a7-2d4ec6a1c683.webp?v=1714834502","width":2000},{"alt":null,"id":23884928712803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6342a7fd4cff2d1c5b9e31fd0f27c097f852cf_c8c32987-9a27-4675-9e21-40e26e1d8399.webp?v=1714834505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6342a7fd4cff2d1c5b9e31fd0f27c097f852cf_c8c32987-9a27-4675-9e21-40e26e1d8399.webp?v=1714834505","width":2000},{"alt":null,"id":23884929237091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca75fb4a4456a3c11690a5d806bfcb7d0ab0a28_fcd53208-92db-43e2-8e0f-bfe48e16cf9d.webp?v=1714834507"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca75fb4a4456a3c11690a5d806bfcb7d0ab0a28_fcd53208-92db-43e2-8e0f-bfe48e16cf9d.webp?v=1714834507","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41895570866275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31479677157475,"product_id":7411160940643,"position":2,"created_at":"2024-05-04T22:54:49+08:00","updated_at":"2024-05-04T22:54:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b2c521ac1d0803989c84b86d82c837680932bf9_2aa639de-108b-4b4e-974e-ca09885ea178.webp?v=1714834489","variant_ids":[41895570866275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129624-PB62","featured_media":{"alt":null,"id":23884925141091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b2c521ac1d0803989c84b86d82c837680932bf9_2aa639de-108b-4b4e-974e-ca09885ea178.webp?v=1714834489"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895571161187,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31479680794723,"product_id":7411160940643,"position":8,"created_at":"2024-05-04T22:55:05+08:00","updated_at":"2024-05-04T22:55:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6342a7fd4cff2d1c5b9e31fd0f27c097f852cf_c8c32987-9a27-4675-9e21-40e26e1d8399.webp?v=1714834505","variant_ids":[41895571161187]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129657-PB62","featured_media":{"alt":null,"id":23884928712803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e6342a7fd4cff2d1c5b9e31fd0f27c097f852cf_c8c32987-9a27-4675-9e21-40e26e1d8399.webp?v=1714834505"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41895570866275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31479677157475,"product_id":7411160940643,"position":2,"created_at":"2024-05-04T22:54:49+08:00","updated_at":"2024-05-04T22:54:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b2c521ac1d0803989c84b86d82c837680932bf9_2aa639de-108b-4b4e-974e-ca09885ea178.webp?v=1714834489","variant_ids":[41895570866275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 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":"MPB0129624-PB62","featured_media":{"alt":null,"id":23884925141091,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b2c521ac1d0803989c84b86d82c837680932bf9_2aa639de-108b-4b4e-974e-ca09885ea178.webp?v=1714834489"}},"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: "停產"
}