$product = {"id":7408495296611,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 貼紙系列-夏威夷紀念","handle":"iphone-12-pro-max-mod-nx-printable-yf05","description":null,"published_at":"2024-06-11T16:38:50+08:00","created_at":"2024-05-03T15:37:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-stitch","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41886128799843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472427728995,"product_id":7408495296611,"position":10,"created_at":"2024-05-03T15:38:17+08:00","updated_at":"2024-05-03T15:38:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99af79767e8e9ae3b746071f34768ad19e2a0dfc_5edcbd9d-a711-49de-938e-3f37114a92bb.webp?v=1714721897","variant_ids":[41886128799843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 貼紙系列-夏威夷紀念 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YF05","featured_media":{"alt":null,"id":23877344657507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99af79767e8e9ae3b746071f34768ad19e2a0dfc_5edcbd9d-a711-49de-938e-3f37114a92bb.webp?v=1714721897"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5a5c5b837a7984cc222ab120b26bf672180d94_b972f072-1c7f-40e2-9296-6eb26e3dfd64.webp?v=1714721875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae09a458a8c9f70c3fe3786a4976a4035ba3436b_7b3bddde-60bb-498e-ac35-c2d1b85a727d.webp?v=1714721878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2c8f5b552868a3df10c1471d386ec944b1f6ff_8c0c7b47-43b6-497d-a3ff-46eeda56fecb.webp?v=1714721880","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79b0f0854560c0fe06061b8832891428d5221ea6_690569c9-853f-4bf3-994e-7fc3d42d3648.webp?v=1714721882","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b177a1e878070d9a798117fda795ac43899d13c_a5f2fe9a-b110-4fe2-abff-c503abb27bb7.webp?v=1714721885","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0178d9d28c848395b4da4cc0b5af3dea94d5f6f5_6d62e8cf-5991-4f47-8da1-4eede6fc21bb.webp?v=1714721887","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a4c6944504a1c56ee81ed41a7362c2cf87eb55_694c34ba-67e4-4fa2-affb-c811b5569d0e.webp?v=1714721890","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a21d53e3a6218e3bf47cfc3a96492550f09c929b_38408188-4998-46e2-ad3e-661d9cb9c0d1.webp?v=1714721892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7801369d926befbef10118b64aa084b9b73ad56d_7a1e7702-e4fe-408b-8b51-950fee5d521d.webp?v=1714721895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99af79767e8e9ae3b746071f34768ad19e2a0dfc_5edcbd9d-a711-49de-938e-3f37114a92bb.webp?v=1714721897"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5a5c5b837a7984cc222ab120b26bf672180d94_b972f072-1c7f-40e2-9296-6eb26e3dfd64.webp?v=1714721875","options":["color"],"media":[{"alt":null,"id":23877339644003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5a5c5b837a7984cc222ab120b26bf672180d94_b972f072-1c7f-40e2-9296-6eb26e3dfd64.webp?v=1714721875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f5a5c5b837a7984cc222ab120b26bf672180d94_b972f072-1c7f-40e2-9296-6eb26e3dfd64.webp?v=1714721875","width":2000},{"alt":null,"id":23877340069987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae09a458a8c9f70c3fe3786a4976a4035ba3436b_7b3bddde-60bb-498e-ac35-c2d1b85a727d.webp?v=1714721878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae09a458a8c9f70c3fe3786a4976a4035ba3436b_7b3bddde-60bb-498e-ac35-c2d1b85a727d.webp?v=1714721878","width":2000},{"alt":null,"id":23877340692579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2c8f5b552868a3df10c1471d386ec944b1f6ff_8c0c7b47-43b6-497d-a3ff-46eeda56fecb.webp?v=1714721880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be2c8f5b552868a3df10c1471d386ec944b1f6ff_8c0c7b47-43b6-497d-a3ff-46eeda56fecb.webp?v=1714721880","width":2000},{"alt":null,"id":23877341184099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79b0f0854560c0fe06061b8832891428d5221ea6_690569c9-853f-4bf3-994e-7fc3d42d3648.webp?v=1714721882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79b0f0854560c0fe06061b8832891428d5221ea6_690569c9-853f-4bf3-994e-7fc3d42d3648.webp?v=1714721882","width":2000},{"alt":null,"id":23877341806691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b177a1e878070d9a798117fda795ac43899d13c_a5f2fe9a-b110-4fe2-abff-c503abb27bb7.webp?v=1714721885"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b177a1e878070d9a798117fda795ac43899d13c_a5f2fe9a-b110-4fe2-abff-c503abb27bb7.webp?v=1714721885","width":2000},{"alt":null,"id":23877342298211,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0178d9d28c848395b4da4cc0b5af3dea94d5f6f5_6d62e8cf-5991-4f47-8da1-4eede6fc21bb.webp?v=1714721887"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0178d9d28c848395b4da4cc0b5af3dea94d5f6f5_6d62e8cf-5991-4f47-8da1-4eede6fc21bb.webp?v=1714721887","width":2000},{"alt":null,"id":23877342888035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a4c6944504a1c56ee81ed41a7362c2cf87eb55_694c34ba-67e4-4fa2-affb-c811b5569d0e.webp?v=1714721890"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11a4c6944504a1c56ee81ed41a7362c2cf87eb55_694c34ba-67e4-4fa2-affb-c811b5569d0e.webp?v=1714721890","width":2000},{"alt":null,"id":23877343412323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a21d53e3a6218e3bf47cfc3a96492550f09c929b_38408188-4998-46e2-ad3e-661d9cb9c0d1.webp?v=1714721892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a21d53e3a6218e3bf47cfc3a96492550f09c929b_38408188-4998-46e2-ad3e-661d9cb9c0d1.webp?v=1714721892","width":2000},{"alt":null,"id":23877343936611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7801369d926befbef10118b64aa084b9b73ad56d_7a1e7702-e4fe-408b-8b51-950fee5d521d.webp?v=1714721895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7801369d926befbef10118b64aa084b9b73ad56d_7a1e7702-e4fe-408b-8b51-950fee5d521d.webp?v=1714721895","width":2000},{"alt":null,"id":23877344657507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99af79767e8e9ae3b746071f34768ad19e2a0dfc_5edcbd9d-a711-49de-938e-3f37114a92bb.webp?v=1714721897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99af79767e8e9ae3b746071f34768ad19e2a0dfc_5edcbd9d-a711-49de-938e-3f37114a92bb.webp?v=1714721897","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886128799843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472427728995,"product_id":7408495296611,"position":10,"created_at":"2024-05-03T15:38:17+08:00","updated_at":"2024-05-03T15:38:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99af79767e8e9ae3b746071f34768ad19e2a0dfc_5edcbd9d-a711-49de-938e-3f37114a92bb.webp?v=1714721897","variant_ids":[41886128799843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 貼紙系列-夏威夷紀念 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YF05","featured_media":{"alt":null,"id":23877344657507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99af79767e8e9ae3b746071f34768ad19e2a0dfc_5edcbd9d-a711-49de-938e-3f37114a92bb.webp?v=1714721897"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886128799843,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-YF05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472427728995,"product_id":7408495296611,"position":10,"created_at":"2024-05-03T15:38:17+08:00","updated_at":"2024-05-03T15:38:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99af79767e8e9ae3b746071f34768ad19e2a0dfc_5edcbd9d-a711-49de-938e-3f37114a92bb.webp?v=1714721897","variant_ids":[41886128799843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 史迪奇 - 貼紙系列-夏威夷紀念 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-YF05","featured_media":{"alt":null,"id":23877344657507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99af79767e8e9ae3b746071f34768ad19e2a0dfc_5edcbd9d-a711-49de-938e-3f37114a92bb.webp?v=1714721897"}},"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: "停產"
}