$product = {"id":7414354149475,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb61","description":null,"published_at":"2024-06-11T17:50:54+08:00","created_at":"2024-05-05T14:22:56+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":41905920933987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31485265870947,"product_id":7414354149475,"position":10,"created_at":"2024-05-05T14:23:19+08:00","updated_at":"2024-05-05T14:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d416e47674fd7757ea96ace542f0ba9424d9356_40dda904-4fea-4ccf-afd6-93615aaa105a.webp?v=1714890199","variant_ids":[41905920933987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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-PB61","featured_media":{"alt":null,"id":23890582175843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d416e47674fd7757ea96ace542f0ba9424d9356_40dda904-4fea-4ccf-afd6-93615aaa105a.webp?v=1714890199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905922048099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31485260005475,"product_id":7414354149475,"position":8,"created_at":"2024-05-05T14:23:14+08:00","updated_at":"2024-05-05T14:23:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3fc62507ff471e164f7eed934d899a0b5a34b5_3199a8c4-3207-4d9d-9ca3-8ed793e0d1a0.webp?v=1714890194","variant_ids":[41905922048099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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-PB61","featured_media":{"alt":null,"id":23890576146531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3fc62507ff471e164f7eed934d899a0b5a34b5_3199a8c4-3207-4d9d-9ca3-8ed793e0d1a0.webp?v=1714890194"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b40ce2154c063f6e4a6ba4871ef6941989b3b9_c358134b-15e8-4b4e-b869-d2f634271fc2.webp?v=1714890178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21a0f3f103dacb083ca22b054933b6c0d0a4336_88547493-b6a2-4488-a029-65a15779e581.webp?v=1714890180","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a52da74f91ff492b5069d6e90bdea6df0c5c2df_57d2347a-1fa1-4e1c-a183-74eaa2176da1.webp?v=1714890183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022243b6a6a9b1c9a94986c89417cd38fd02de02_0eca8890-5101-48c4-beb8-ebed8fcc35b1.webp?v=1714890185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c3249e95876aa5d9ca2eea01da30324d1cf924_47dbbf2c-db09-4126-9e5b-c6551c8463bb.webp?v=1714890187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d85daf1fb41101f5c2db5c266031e2dc353a4a_3e2c05d9-156e-4520-9da8-b7a874a7ba43.webp?v=1714890190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef3d65e15db445ef3e6d54522e3095abef8e30c_81df16c4-3608-431f-b232-67b9718384f4.webp?v=1714890192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3fc62507ff471e164f7eed934d899a0b5a34b5_3199a8c4-3207-4d9d-9ca3-8ed793e0d1a0.webp?v=1714890194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f117c1d312ea1e684420be105f44e9884e1768e_1b07e0c6-16d9-4ffe-9a0a-16007b549623.webp?v=1714890197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d416e47674fd7757ea96ace542f0ba9424d9356_40dda904-4fea-4ccf-afd6-93615aaa105a.webp?v=1714890199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bf78e9672dcb743fa0710a1b829aff7c6e18cf_b245e418-9317-483d-aa53-a4cf14d46d41.webp?v=1714890201"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b40ce2154c063f6e4a6ba4871ef6941989b3b9_c358134b-15e8-4b4e-b869-d2f634271fc2.webp?v=1714890178","options":["color"],"media":[{"alt":null,"id":23890553045091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b40ce2154c063f6e4a6ba4871ef6941989b3b9_c358134b-15e8-4b4e-b869-d2f634271fc2.webp?v=1714890178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76b40ce2154c063f6e4a6ba4871ef6941989b3b9_c358134b-15e8-4b4e-b869-d2f634271fc2.webp?v=1714890178","width":2000},{"alt":null,"id":23890557042787,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21a0f3f103dacb083ca22b054933b6c0d0a4336_88547493-b6a2-4488-a029-65a15779e581.webp?v=1714890180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d21a0f3f103dacb083ca22b054933b6c0d0a4336_88547493-b6a2-4488-a029-65a15779e581.webp?v=1714890180","width":2000},{"alt":null,"id":23890560516195,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a52da74f91ff492b5069d6e90bdea6df0c5c2df_57d2347a-1fa1-4e1c-a183-74eaa2176da1.webp?v=1714890183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a52da74f91ff492b5069d6e90bdea6df0c5c2df_57d2347a-1fa1-4e1c-a183-74eaa2176da1.webp?v=1714890183","width":2000},{"alt":null,"id":23890564186211,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022243b6a6a9b1c9a94986c89417cd38fd02de02_0eca8890-5101-48c4-beb8-ebed8fcc35b1.webp?v=1714890185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/022243b6a6a9b1c9a94986c89417cd38fd02de02_0eca8890-5101-48c4-beb8-ebed8fcc35b1.webp?v=1714890185","width":2000},{"alt":null,"id":23890567004259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c3249e95876aa5d9ca2eea01da30324d1cf924_47dbbf2c-db09-4126-9e5b-c6551c8463bb.webp?v=1714890187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13c3249e95876aa5d9ca2eea01da30324d1cf924_47dbbf2c-db09-4126-9e5b-c6551c8463bb.webp?v=1714890187","width":2000},{"alt":null,"id":23890570215523,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d85daf1fb41101f5c2db5c266031e2dc353a4a_3e2c05d9-156e-4520-9da8-b7a874a7ba43.webp?v=1714890190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27d85daf1fb41101f5c2db5c266031e2dc353a4a_3e2c05d9-156e-4520-9da8-b7a874a7ba43.webp?v=1714890190","width":2000},{"alt":null,"id":23890573557859,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef3d65e15db445ef3e6d54522e3095abef8e30c_81df16c4-3608-431f-b232-67b9718384f4.webp?v=1714890192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef3d65e15db445ef3e6d54522e3095abef8e30c_81df16c4-3608-431f-b232-67b9718384f4.webp?v=1714890192","width":2000},{"alt":null,"id":23890576146531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3fc62507ff471e164f7eed934d899a0b5a34b5_3199a8c4-3207-4d9d-9ca3-8ed793e0d1a0.webp?v=1714890194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3fc62507ff471e164f7eed934d899a0b5a34b5_3199a8c4-3207-4d9d-9ca3-8ed793e0d1a0.webp?v=1714890194","width":2000},{"alt":null,"id":23890579226723,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f117c1d312ea1e684420be105f44e9884e1768e_1b07e0c6-16d9-4ffe-9a0a-16007b549623.webp?v=1714890197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f117c1d312ea1e684420be105f44e9884e1768e_1b07e0c6-16d9-4ffe-9a0a-16007b549623.webp?v=1714890197","width":2000},{"alt":null,"id":23890582175843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d416e47674fd7757ea96ace542f0ba9424d9356_40dda904-4fea-4ccf-afd6-93615aaa105a.webp?v=1714890199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d416e47674fd7757ea96ace542f0ba9424d9356_40dda904-4fea-4ccf-afd6-93615aaa105a.webp?v=1714890199","width":2000},{"alt":null,"id":23890584633443,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bf78e9672dcb743fa0710a1b829aff7c6e18cf_b245e418-9317-483d-aa53-a4cf14d46d41.webp?v=1714890201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/93bf78e9672dcb743fa0710a1b829aff7c6e18cf_b245e418-9317-483d-aa53-a4cf14d46d41.webp?v=1714890201","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41905920933987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31485265870947,"product_id":7414354149475,"position":10,"created_at":"2024-05-05T14:23:19+08:00","updated_at":"2024-05-05T14:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d416e47674fd7757ea96ace542f0ba9424d9356_40dda904-4fea-4ccf-afd6-93615aaa105a.webp?v=1714890199","variant_ids":[41905920933987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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-PB61","featured_media":{"alt":null,"id":23890582175843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d416e47674fd7757ea96ace542f0ba9424d9356_40dda904-4fea-4ccf-afd6-93615aaa105a.webp?v=1714890199"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41905922048099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31485260005475,"product_id":7414354149475,"position":8,"created_at":"2024-05-05T14:23:14+08:00","updated_at":"2024-05-05T14:23:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3fc62507ff471e164f7eed934d899a0b5a34b5_3199a8c4-3207-4d9d-9ca3-8ed793e0d1a0.webp?v=1714890194","variant_ids":[41905922048099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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-PB61","featured_media":{"alt":null,"id":23890576146531,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f3fc62507ff471e164f7eed934d899a0b5a34b5_3199a8c4-3207-4d9d-9ca3-8ed793e0d1a0.webp?v=1714890194"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41905920933987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31485265870947,"product_id":7414354149475,"position":10,"created_at":"2024-05-05T14:23:19+08:00","updated_at":"2024-05-05T14:23:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d416e47674fd7757ea96ace542f0ba9424d9356_40dda904-4fea-4ccf-afd6-93615aaa105a.webp?v=1714890199","variant_ids":[41905920933987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - 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-PB61","featured_media":{"alt":null,"id":23890582175843,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d416e47674fd7757ea96ace542f0ba9424d9356_40dda904-4fea-4ccf-afd6-93615aaa105a.webp?v=1714890199"}},"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: "停產"
}