$product = {"id":7408001679459,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅","handle":"iphone-13-pro-max-mod-nx-printable-pb33","description":null,"published_at":"2024-06-11T16:28:46+08:00","created_at":"2024-05-03T11:38:28+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","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":41881585975395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470940029027,"product_id":7408001679459,"position":8,"created_at":"2024-05-03T11:38:49+08:00","updated_at":"2024-05-03T11:38:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3173396beeecb3b4520a3c7d0c7e8e160244c9_28561f33-9b5e-4c70-97e8-34dac3cf0fda.webp?v=1714707529","variant_ids":[41881585975395]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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":"NPB0123224-PB33","featured_media":{"alt":null,"id":23875844702307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3173396beeecb3b4520a3c7d0c7e8e160244c9_28561f33-9b5e-4c70-97e8-34dac3cf0fda.webp?v=1714707529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881586303075,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470936555619,"product_id":7408001679459,"position":1,"created_at":"2024-05-03T11:38:31+08:00","updated_at":"2024-05-03T11:38:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1b7d11ba9a939b12fd884206dde3ca2f21ab9_48fcae35-cbb5-4984-93f2-951a48984325.webp?v=1714707511","variant_ids":[41881586303075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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":"NPB01232J5-PB33","featured_media":{"alt":null,"id":23875841228899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1b7d11ba9a939b12fd884206dde3ca2f21ab9_48fcae35-cbb5-4984-93f2-951a48984325.webp?v=1714707511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1b7d11ba9a939b12fd884206dde3ca2f21ab9_48fcae35-cbb5-4984-93f2-951a48984325.webp?v=1714707511","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e58a9e9b219039ebb91bd5b60043299980cf6b_bbee4de8-88fc-4353-aed6-c785c99bd5eb.webp?v=1714707513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aba709085fd8bc5926a03064fcd88998e6d67af_ef88f621-8edb-4e3e-b35e-741dd77aab5e.webp?v=1714707516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685f9fa21df4f02e7196a7c47779df1d18bef2_a676bbb9-19f0-42aa-b207-a27698f6c447.webp?v=1714707519","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/768765ebe89a66bcfe94852bf425fad2ff5e439e_b490dac6-6aaa-4b57-97a8-3ef20332a241.webp?v=1714707521","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c39d3d77877719f6cd4d4feaa0eccf22afa8bd81_c3bc61f5-3fad-4719-a37b-1e5f799ac3de.webp?v=1714707524","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/226c4749847b3e76a80e364a66fa3b4ddbdf7ec8_ff149bf2-d8c4-4966-bc13-4085a6c29eac.webp?v=1714707527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3173396beeecb3b4520a3c7d0c7e8e160244c9_28561f33-9b5e-4c70-97e8-34dac3cf0fda.webp?v=1714707529","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eeaf97da2aaaf5c6ad439bde2948ec0612fe64_a6a1ec1b-f3e5-4518-81f2-86d3ffe0fee2.webp?v=1714707532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29cf23e78f0a12ae63dae47d4637ea5698bb2c49_e0eb1a04-3646-40fd-a8a0-0edd1e212615.webp?v=1714707535"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1b7d11ba9a939b12fd884206dde3ca2f21ab9_48fcae35-cbb5-4984-93f2-951a48984325.webp?v=1714707511","options":["color"],"media":[{"alt":null,"id":23875841228899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1b7d11ba9a939b12fd884206dde3ca2f21ab9_48fcae35-cbb5-4984-93f2-951a48984325.webp?v=1714707511"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1b7d11ba9a939b12fd884206dde3ca2f21ab9_48fcae35-cbb5-4984-93f2-951a48984325.webp?v=1714707511","width":2000},{"alt":null,"id":23875841785955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e58a9e9b219039ebb91bd5b60043299980cf6b_bbee4de8-88fc-4353-aed6-c785c99bd5eb.webp?v=1714707513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0e58a9e9b219039ebb91bd5b60043299980cf6b_bbee4de8-88fc-4353-aed6-c785c99bd5eb.webp?v=1714707513","width":2000},{"alt":null,"id":23875842048099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aba709085fd8bc5926a03064fcd88998e6d67af_ef88f621-8edb-4e3e-b35e-741dd77aab5e.webp?v=1714707516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2aba709085fd8bc5926a03064fcd88998e6d67af_ef88f621-8edb-4e3e-b35e-741dd77aab5e.webp?v=1714707516","width":2000},{"alt":null,"id":23875842637923,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685f9fa21df4f02e7196a7c47779df1d18bef2_a676bbb9-19f0-42aa-b207-a27698f6c447.webp?v=1714707519"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4685f9fa21df4f02e7196a7c47779df1d18bef2_a676bbb9-19f0-42aa-b207-a27698f6c447.webp?v=1714707519","width":2000},{"alt":null,"id":23875843227747,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/768765ebe89a66bcfe94852bf425fad2ff5e439e_b490dac6-6aaa-4b57-97a8-3ef20332a241.webp?v=1714707521"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/768765ebe89a66bcfe94852bf425fad2ff5e439e_b490dac6-6aaa-4b57-97a8-3ef20332a241.webp?v=1714707521","width":2000},{"alt":null,"id":23875843784803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c39d3d77877719f6cd4d4feaa0eccf22afa8bd81_c3bc61f5-3fad-4719-a37b-1e5f799ac3de.webp?v=1714707524"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c39d3d77877719f6cd4d4feaa0eccf22afa8bd81_c3bc61f5-3fad-4719-a37b-1e5f799ac3de.webp?v=1714707524","width":2000},{"alt":null,"id":23875844243555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/226c4749847b3e76a80e364a66fa3b4ddbdf7ec8_ff149bf2-d8c4-4966-bc13-4085a6c29eac.webp?v=1714707527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/226c4749847b3e76a80e364a66fa3b4ddbdf7ec8_ff149bf2-d8c4-4966-bc13-4085a6c29eac.webp?v=1714707527","width":2000},{"alt":null,"id":23875844702307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3173396beeecb3b4520a3c7d0c7e8e160244c9_28561f33-9b5e-4c70-97e8-34dac3cf0fda.webp?v=1714707529"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3173396beeecb3b4520a3c7d0c7e8e160244c9_28561f33-9b5e-4c70-97e8-34dac3cf0fda.webp?v=1714707529","width":2000},{"alt":null,"id":23875845423203,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eeaf97da2aaaf5c6ad439bde2948ec0612fe64_a6a1ec1b-f3e5-4518-81f2-86d3ffe0fee2.webp?v=1714707532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4eeaf97da2aaaf5c6ad439bde2948ec0612fe64_a6a1ec1b-f3e5-4518-81f2-86d3ffe0fee2.webp?v=1714707532","width":2000},{"alt":null,"id":23875845881955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29cf23e78f0a12ae63dae47d4637ea5698bb2c49_e0eb1a04-3646-40fd-a8a0-0edd1e212615.webp?v=1714707535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29cf23e78f0a12ae63dae47d4637ea5698bb2c49_e0eb1a04-3646-40fd-a8a0-0edd1e212615.webp?v=1714707535","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881585975395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470940029027,"product_id":7408001679459,"position":8,"created_at":"2024-05-03T11:38:49+08:00","updated_at":"2024-05-03T11:38:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3173396beeecb3b4520a3c7d0c7e8e160244c9_28561f33-9b5e-4c70-97e8-34dac3cf0fda.webp?v=1714707529","variant_ids":[41881585975395]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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":"NPB0123224-PB33","featured_media":{"alt":null,"id":23875844702307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3173396beeecb3b4520a3c7d0c7e8e160244c9_28561f33-9b5e-4c70-97e8-34dac3cf0fda.webp?v=1714707529"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881586303075,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470936555619,"product_id":7408001679459,"position":1,"created_at":"2024-05-03T11:38:31+08:00","updated_at":"2024-05-03T11:38:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1b7d11ba9a939b12fd884206dde3ca2f21ab9_48fcae35-cbb5-4984-93f2-951a48984325.webp?v=1714707511","variant_ids":[41881586303075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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":"NPB01232J5-PB33","featured_media":{"alt":null,"id":23875841228899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ec1b7d11ba9a939b12fd884206dde3ca2f21ab9_48fcae35-cbb5-4984-93f2-951a48984325.webp?v=1714707511"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881585975395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470940029027,"product_id":7408001679459,"position":8,"created_at":"2024-05-03T11:38:49+08:00","updated_at":"2024-05-03T11:38:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3173396beeecb3b4520a3c7d0c7e8e160244c9_28561f33-9b5e-4c70-97e8-34dac3cf0fda.webp?v=1714707529","variant_ids":[41881585975395]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅 - 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":"NPB0123224-PB33","featured_media":{"alt":null,"id":23875844702307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d3173396beeecb3b4520a3c7d0c7e8e160244c9_28561f33-9b5e-4c70-97e8-34dac3cf0fda.webp?v=1714707529"}},"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: "停產"
}