$product = {"id":7407616000099,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Sticker-紅","handle":"iphone-15-plus-mod-nx-printable-pb33","description":null,"published_at":"2024-06-11T16:20:39+08:00","created_at":"2024-05-03T10:20:54+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 15 Plus","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":41876824424547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470046937187,"product_id":7407616000099,"position":9,"created_at":"2024-05-03T10:21:20+08:00","updated_at":"2024-05-03T10:21:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e03ddfeee866890531617501108ea482ff58f_74bd15d2-77ab-49d8-adc3-31e1d80a72d9.webp?v=1714702880","variant_ids":[41876824424547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB33","featured_media":{"alt":null,"id":23874949185635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e03ddfeee866890531617501108ea482ff58f_74bd15d2-77ab-49d8-adc3-31e1d80a72d9.webp?v=1714702880"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876824555619,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470046347363,"product_id":7407616000099,"position":8,"created_at":"2024-05-03T10:21:18+08:00","updated_at":"2024-05-03T10:21:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a529cae41b21920b00c9aee87dd4f42026c309_ba21f4d7-7bce-4fb8-a911-3ac767c2fb07.webp?v=1714702878","variant_ids":[41876824555619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PB33","featured_media":{"alt":null,"id":23874948497507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a529cae41b21920b00c9aee87dd4f42026c309_ba21f4d7-7bce-4fb8-a911-3ac767c2fb07.webp?v=1714702878"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f713a92b1acfcd8ce2b0999e8526d38c4f80477_55535a22-1adb-418e-9cea-2a021c941edd.webp?v=1714702857","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c9411a0d53e55fffe444bbeafe9092d81ffc54_70d5d030-be6f-4a66-b8cf-2c2225e6178c.webp?v=1714702860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7746d727d8d7d0382a87b9e971317174dc7037c_e657cc5f-8eea-41a1-b190-f014504689ba.webp?v=1714702862","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c6f28e5e069ece74a5c428eb200054a44c451d6_e2bbe9af-9ad4-46cd-bb3c-aa7e5f78216d.webp?v=1714702865","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01be57765f9a644680e5ee0eaf76b4af8ec1e897_df6c0d26-f4e0-4845-9c23-7117bd4993eb.webp?v=1714702867","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dac362f52da408a7a4ad126883a56c52773296b_8652f05b-5d9d-4da8-9ebb-ca308728c67d.webp?v=1714702872","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d8ab46199e68ea1b469e7d3ad70f873bdde2bfb_58a2812b-463d-468f-9ffc-9373787970ca.webp?v=1714702875","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a529cae41b21920b00c9aee87dd4f42026c309_ba21f4d7-7bce-4fb8-a911-3ac767c2fb07.webp?v=1714702878","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e03ddfeee866890531617501108ea482ff58f_74bd15d2-77ab-49d8-adc3-31e1d80a72d9.webp?v=1714702880"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f713a92b1acfcd8ce2b0999e8526d38c4f80477_55535a22-1adb-418e-9cea-2a021c941edd.webp?v=1714702857","options":["color"],"media":[{"alt":null,"id":23874942107747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f713a92b1acfcd8ce2b0999e8526d38c4f80477_55535a22-1adb-418e-9cea-2a021c941edd.webp?v=1714702857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f713a92b1acfcd8ce2b0999e8526d38c4f80477_55535a22-1adb-418e-9cea-2a021c941edd.webp?v=1714702857","width":2000},{"alt":null,"id":23874942730339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c9411a0d53e55fffe444bbeafe9092d81ffc54_70d5d030-be6f-4a66-b8cf-2c2225e6178c.webp?v=1714702860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9c9411a0d53e55fffe444bbeafe9092d81ffc54_70d5d030-be6f-4a66-b8cf-2c2225e6178c.webp?v=1714702860","width":2000},{"alt":null,"id":23874943123555,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7746d727d8d7d0382a87b9e971317174dc7037c_e657cc5f-8eea-41a1-b190-f014504689ba.webp?v=1714702862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7746d727d8d7d0382a87b9e971317174dc7037c_e657cc5f-8eea-41a1-b190-f014504689ba.webp?v=1714702862","width":2000},{"alt":null,"id":23874943975523,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c6f28e5e069ece74a5c428eb200054a44c451d6_e2bbe9af-9ad4-46cd-bb3c-aa7e5f78216d.webp?v=1714702865"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c6f28e5e069ece74a5c428eb200054a44c451d6_e2bbe9af-9ad4-46cd-bb3c-aa7e5f78216d.webp?v=1714702865","width":2000},{"alt":null,"id":23874944598115,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01be57765f9a644680e5ee0eaf76b4af8ec1e897_df6c0d26-f4e0-4845-9c23-7117bd4993eb.webp?v=1714702867"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01be57765f9a644680e5ee0eaf76b4af8ec1e897_df6c0d26-f4e0-4845-9c23-7117bd4993eb.webp?v=1714702867","width":2000},{"alt":null,"id":23874945679459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dac362f52da408a7a4ad126883a56c52773296b_8652f05b-5d9d-4da8-9ebb-ca308728c67d.webp?v=1714702872"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3dac362f52da408a7a4ad126883a56c52773296b_8652f05b-5d9d-4da8-9ebb-ca308728c67d.webp?v=1714702872","width":2000},{"alt":null,"id":23874947973219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d8ab46199e68ea1b469e7d3ad70f873bdde2bfb_58a2812b-463d-468f-9ffc-9373787970ca.webp?v=1714702875"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1d8ab46199e68ea1b469e7d3ad70f873bdde2bfb_58a2812b-463d-468f-9ffc-9373787970ca.webp?v=1714702875","width":2000},{"alt":null,"id":23874948497507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a529cae41b21920b00c9aee87dd4f42026c309_ba21f4d7-7bce-4fb8-a911-3ac767c2fb07.webp?v=1714702878"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a529cae41b21920b00c9aee87dd4f42026c309_ba21f4d7-7bce-4fb8-a911-3ac767c2fb07.webp?v=1714702878","width":2000},{"alt":null,"id":23874949185635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e03ddfeee866890531617501108ea482ff58f_74bd15d2-77ab-49d8-adc3-31e1d80a72d9.webp?v=1714702880"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e03ddfeee866890531617501108ea482ff58f_74bd15d2-77ab-49d8-adc3-31e1d80a72d9.webp?v=1714702880","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41876824424547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470046937187,"product_id":7407616000099,"position":9,"created_at":"2024-05-03T10:21:20+08:00","updated_at":"2024-05-03T10:21:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e03ddfeee866890531617501108ea482ff58f_74bd15d2-77ab-49d8-adc3-31e1d80a72d9.webp?v=1714702880","variant_ids":[41876824424547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB33","featured_media":{"alt":null,"id":23874949185635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e03ddfeee866890531617501108ea482ff58f_74bd15d2-77ab-49d8-adc3-31e1d80a72d9.webp?v=1714702880"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876824555619,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470046347363,"product_id":7407616000099,"position":8,"created_at":"2024-05-03T10:21:18+08:00","updated_at":"2024-05-03T10:21:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a529cae41b21920b00c9aee87dd4f42026c309_ba21f4d7-7bce-4fb8-a911-3ac767c2fb07.webp?v=1714702878","variant_ids":[41876824555619]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PB33","featured_media":{"alt":null,"id":23874948497507,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3a529cae41b21920b00c9aee87dd4f42026c309_ba21f4d7-7bce-4fb8-a911-3ac767c2fb07.webp?v=1714702878"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41876824424547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB33","requires_shipping":true,"taxable":true,"featured_image":{"id":31470046937187,"product_id":7407616000099,"position":9,"created_at":"2024-05-03T10:21:20+08:00","updated_at":"2024-05-03T10:21:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e03ddfeee866890531617501108ea482ff58f_74bd15d2-77ab-49d8-adc3-31e1d80a72d9.webp?v=1714702880","variant_ids":[41876824424547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PB33","featured_media":{"alt":null,"id":23874949185635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c94e03ddfeee866890531617501108ea482ff58f_74bd15d2-77ab-49d8-adc3-31e1d80a72d9.webp?v=1714702880"}},"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: "停產"
}