$product = {"id":7411033636963,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 波巴費特-噴漆白","handle":"iphone-15-plus-mod-nx-magsafe-printable-pb06","description":null,"published_at":"2024-06-11T17:34:33+08:00","created_at":"2024-05-04T22:30:34+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":41894308937827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479342006371,"product_id":7411033636963,"position":7,"created_at":"2024-05-04T22:30:52+08:00","updated_at":"2024-05-04T22:30:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb192489f9d0a25c2d301fda343fd19b0c2055d_7027ace3-d91c-4211-ac67-77c8515f1c2f.webp?v=1714833052","variant_ids":[41894308937827]},"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-PB06","featured_media":{"alt":null,"id":23884589334627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb192489f9d0a25c2d301fda343fd19b0c2055d_7027ace3-d91c-4211-ac67-77c8515f1c2f.webp?v=1714833052"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894309068899,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479339221091,"product_id":7411033636963,"position":4,"created_at":"2024-05-04T22:30:43+08:00","updated_at":"2024-05-04T22:30:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7f95776ca3bb9993f3e8ba4be99aebcbd36229_5933d2d1-0b67-413b-ae19-25a95347b713.webp?v=1714833043","variant_ids":[41894309068899]},"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-PB06","featured_media":{"alt":null,"id":23884586877027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7f95776ca3bb9993f3e8ba4be99aebcbd36229_5933d2d1-0b67-413b-ae19-25a95347b713.webp?v=1714833043"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8ca55bbcc90cc6844d952e509afa87b8ba2f4a_ce9b1b04-236d-4092-addb-c6dc37417fe6.webp?v=1714833036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99922945d629731966287ad559c29e33df2ccfb6_004b32fa-4a5f-4834-9312-882605ae852b.webp?v=1714833039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85bbe4e25af6ea4754a8ca2888cf8276b24a3e_3869a524-bc1f-46df-9500-614b4d73581b.webp?v=1714833041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7f95776ca3bb9993f3e8ba4be99aebcbd36229_5933d2d1-0b67-413b-ae19-25a95347b713.webp?v=1714833043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9721f16b0e9e620ca1733778c8c604eee560cf_a5675fa9-3f5f-4d9b-bb92-152e6fb081fb.webp?v=1714833046","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef50ca19c9485470a5e4448a1b83ef7c3bf22141_9142c86b-bb42-443e-8494-a8947b9765d5.webp?v=1714833050","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb192489f9d0a25c2d301fda343fd19b0c2055d_7027ace3-d91c-4211-ac67-77c8515f1c2f.webp?v=1714833052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7cbfd65c60510ed8a30152bd34616450e2eebe_b52d1e85-d06e-4d1f-8855-fda19de02ed5.webp?v=1714833055","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b34835e04241e09cea0577a916ad5745a2d9fae0_92ced538-13fe-4ded-9e8c-3bce08900659.webp?v=1714833057"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8ca55bbcc90cc6844d952e509afa87b8ba2f4a_ce9b1b04-236d-4092-addb-c6dc37417fe6.webp?v=1714833036","options":["color"],"media":[{"alt":null,"id":23884584878179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8ca55bbcc90cc6844d952e509afa87b8ba2f4a_ce9b1b04-236d-4092-addb-c6dc37417fe6.webp?v=1714833036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8ca55bbcc90cc6844d952e509afa87b8ba2f4a_ce9b1b04-236d-4092-addb-c6dc37417fe6.webp?v=1714833036","width":2000},{"alt":null,"id":23884585369699,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99922945d629731966287ad559c29e33df2ccfb6_004b32fa-4a5f-4834-9312-882605ae852b.webp?v=1714833039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99922945d629731966287ad559c29e33df2ccfb6_004b32fa-4a5f-4834-9312-882605ae852b.webp?v=1714833039","width":2000},{"alt":null,"id":23884586221667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85bbe4e25af6ea4754a8ca2888cf8276b24a3e_3869a524-bc1f-46df-9500-614b4d73581b.webp?v=1714833041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f85bbe4e25af6ea4754a8ca2888cf8276b24a3e_3869a524-bc1f-46df-9500-614b4d73581b.webp?v=1714833041","width":2000},{"alt":null,"id":23884586877027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7f95776ca3bb9993f3e8ba4be99aebcbd36229_5933d2d1-0b67-413b-ae19-25a95347b713.webp?v=1714833043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7f95776ca3bb9993f3e8ba4be99aebcbd36229_5933d2d1-0b67-413b-ae19-25a95347b713.webp?v=1714833043","width":2000},{"alt":null,"id":23884587499619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9721f16b0e9e620ca1733778c8c604eee560cf_a5675fa9-3f5f-4d9b-bb92-152e6fb081fb.webp?v=1714833046"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9721f16b0e9e620ca1733778c8c604eee560cf_a5675fa9-3f5f-4d9b-bb92-152e6fb081fb.webp?v=1714833046","width":2000},{"alt":null,"id":23884588679267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef50ca19c9485470a5e4448a1b83ef7c3bf22141_9142c86b-bb42-443e-8494-a8947b9765d5.webp?v=1714833050"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef50ca19c9485470a5e4448a1b83ef7c3bf22141_9142c86b-bb42-443e-8494-a8947b9765d5.webp?v=1714833050","width":2000},{"alt":null,"id":23884589334627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb192489f9d0a25c2d301fda343fd19b0c2055d_7027ace3-d91c-4211-ac67-77c8515f1c2f.webp?v=1714833052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb192489f9d0a25c2d301fda343fd19b0c2055d_7027ace3-d91c-4211-ac67-77c8515f1c2f.webp?v=1714833052","width":2000},{"alt":null,"id":23884589957219,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7cbfd65c60510ed8a30152bd34616450e2eebe_b52d1e85-d06e-4d1f-8855-fda19de02ed5.webp?v=1714833055"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d7cbfd65c60510ed8a30152bd34616450e2eebe_b52d1e85-d06e-4d1f-8855-fda19de02ed5.webp?v=1714833055","width":2000},{"alt":null,"id":23884590743651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b34835e04241e09cea0577a916ad5745a2d9fae0_92ced538-13fe-4ded-9e8c-3bce08900659.webp?v=1714833057"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b34835e04241e09cea0577a916ad5745a2d9fae0_92ced538-13fe-4ded-9e8c-3bce08900659.webp?v=1714833057","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41894308937827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479342006371,"product_id":7411033636963,"position":7,"created_at":"2024-05-04T22:30:52+08:00","updated_at":"2024-05-04T22:30:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb192489f9d0a25c2d301fda343fd19b0c2055d_7027ace3-d91c-4211-ac67-77c8515f1c2f.webp?v=1714833052","variant_ids":[41894308937827]},"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-PB06","featured_media":{"alt":null,"id":23884589334627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb192489f9d0a25c2d301fda343fd19b0c2055d_7027ace3-d91c-4211-ac67-77c8515f1c2f.webp?v=1714833052"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894309068899,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479339221091,"product_id":7411033636963,"position":4,"created_at":"2024-05-04T22:30:43+08:00","updated_at":"2024-05-04T22:30:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7f95776ca3bb9993f3e8ba4be99aebcbd36229_5933d2d1-0b67-413b-ae19-25a95347b713.webp?v=1714833043","variant_ids":[41894309068899]},"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-PB06","featured_media":{"alt":null,"id":23884586877027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa7f95776ca3bb9993f3e8ba4be99aebcbd36229_5933d2d1-0b67-413b-ae19-25a95347b713.webp?v=1714833043"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41894308937827,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PB06","requires_shipping":true,"taxable":true,"featured_image":{"id":31479342006371,"product_id":7411033636963,"position":7,"created_at":"2024-05-04T22:30:52+08:00","updated_at":"2024-05-04T22:30:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb192489f9d0a25c2d301fda343fd19b0c2055d_7027ace3-d91c-4211-ac67-77c8515f1c2f.webp?v=1714833052","variant_ids":[41894308937827]},"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-PB06","featured_media":{"alt":null,"id":23884589334627,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9cb192489f9d0a25c2d301fda343fd19b0c2055d_7027ace3-d91c-4211-ac67-77c8515f1c2f.webp?v=1714833052"}},"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: "停產"
}