$product = {"id":7407472443491,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報","handle":"iphone-15-plus-mod-nx-printable-pb102","description":null,"published_at":"2024-06-11T16:16:48+08:00","created_at":"2024-05-03T09:54:36+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":41875459997795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31469664993379,"product_id":7407472443491,"position":9,"created_at":"2024-05-03T09:54:58+08:00","updated_at":"2024-05-03T09:54:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3926d2466dab5d6f3323a626f6a1be8b07c66492_3bee435a-9f1a-4464-9f96-df489d4db839.webp?v=1714701298","variant_ids":[41875459997795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23874566488163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3926d2466dab5d6f3323a626f6a1be8b07c66492_3bee435a-9f1a-4464-9f96-df489d4db839.webp?v=1714701298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875460128867,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31469660471395,"product_id":7407472443491,"position":3,"created_at":"2024-05-03T09:54:44+08:00","updated_at":"2024-05-03T09:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4206d9a027bdb7d0c69e3df9372a4d0c50097562_61ecb4b1-f4c0-40f9-91e7-af9598b5dba4.webp?v=1714701284","variant_ids":[41875460128867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23874561802339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4206d9a027bdb7d0c69e3df9372a4d0c50097562_61ecb4b1-f4c0-40f9-91e7-af9598b5dba4.webp?v=1714701284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada0290dd22c0a9da5aa3fcf90b46ff1b2b38e9f_8980a0df-19e2-4ea6-a8bd-5d95c03f0502.webp?v=1714701279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63a0012ae9e67858d923472d447dc0549ce8c967_1c449291-8420-40da-92e2-7cd1f1dd5770.webp?v=1714701281","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4206d9a027bdb7d0c69e3df9372a4d0c50097562_61ecb4b1-f4c0-40f9-91e7-af9598b5dba4.webp?v=1714701284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5b95f282d841af3b9a1e0376295dc798b3c06c3_0281afd9-4556-4eda-9f48-16f67651025b.webp?v=1714701286","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637bfb5a157f0cc1b294b5722cd232348d2b347c_5328d2d7-0ef2-4c20-99ca-cb19e58b6412.webp?v=1714701289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64180b5cc9751d0f295a8489c81e7a461cfb238_a3027b07-d2a8-4635-b655-1b3113b90120.webp?v=1714701291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5124466836c985d01dd2bcceca8e620f116dc573_074da162-da4a-4ee5-8c2a-c5656c0ed3bf.webp?v=1714701294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d15afd1d46737da9552647b6b3b2aac5c54e19e_52cddcf0-8677-419f-bb81-7d6bd27da22f.webp?v=1714701296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3926d2466dab5d6f3323a626f6a1be8b07c66492_3bee435a-9f1a-4464-9f96-df489d4db839.webp?v=1714701298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b215be6602835ebce00d145b538fc293f434a616_53b99f26-f702-4687-b466-22db07e65292.webp?v=1714701301"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada0290dd22c0a9da5aa3fcf90b46ff1b2b38e9f_8980a0df-19e2-4ea6-a8bd-5d95c03f0502.webp?v=1714701279","options":["color"],"media":[{"alt":null,"id":23874560622691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada0290dd22c0a9da5aa3fcf90b46ff1b2b38e9f_8980a0df-19e2-4ea6-a8bd-5d95c03f0502.webp?v=1714701279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ada0290dd22c0a9da5aa3fcf90b46ff1b2b38e9f_8980a0df-19e2-4ea6-a8bd-5d95c03f0502.webp?v=1714701279","width":2000},{"alt":null,"id":23874561212515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63a0012ae9e67858d923472d447dc0549ce8c967_1c449291-8420-40da-92e2-7cd1f1dd5770.webp?v=1714701281"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63a0012ae9e67858d923472d447dc0549ce8c967_1c449291-8420-40da-92e2-7cd1f1dd5770.webp?v=1714701281","width":2000},{"alt":null,"id":23874561802339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4206d9a027bdb7d0c69e3df9372a4d0c50097562_61ecb4b1-f4c0-40f9-91e7-af9598b5dba4.webp?v=1714701284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4206d9a027bdb7d0c69e3df9372a4d0c50097562_61ecb4b1-f4c0-40f9-91e7-af9598b5dba4.webp?v=1714701284","width":2000},{"alt":null,"id":23874562359395,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5b95f282d841af3b9a1e0376295dc798b3c06c3_0281afd9-4556-4eda-9f48-16f67651025b.webp?v=1714701286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5b95f282d841af3b9a1e0376295dc798b3c06c3_0281afd9-4556-4eda-9f48-16f67651025b.webp?v=1714701286","width":2000},{"alt":null,"id":23874563113059,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637bfb5a157f0cc1b294b5722cd232348d2b347c_5328d2d7-0ef2-4c20-99ca-cb19e58b6412.webp?v=1714701289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/637bfb5a157f0cc1b294b5722cd232348d2b347c_5328d2d7-0ef2-4c20-99ca-cb19e58b6412.webp?v=1714701289","width":2000},{"alt":null,"id":23874564325475,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64180b5cc9751d0f295a8489c81e7a461cfb238_a3027b07-d2a8-4635-b655-1b3113b90120.webp?v=1714701291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e64180b5cc9751d0f295a8489c81e7a461cfb238_a3027b07-d2a8-4635-b655-1b3113b90120.webp?v=1714701291","width":2000},{"alt":null,"id":23874564849763,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5124466836c985d01dd2bcceca8e620f116dc573_074da162-da4a-4ee5-8c2a-c5656c0ed3bf.webp?v=1714701294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5124466836c985d01dd2bcceca8e620f116dc573_074da162-da4a-4ee5-8c2a-c5656c0ed3bf.webp?v=1714701294","width":2000},{"alt":null,"id":23874565734499,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d15afd1d46737da9552647b6b3b2aac5c54e19e_52cddcf0-8677-419f-bb81-7d6bd27da22f.webp?v=1714701296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d15afd1d46737da9552647b6b3b2aac5c54e19e_52cddcf0-8677-419f-bb81-7d6bd27da22f.webp?v=1714701296","width":2000},{"alt":null,"id":23874566488163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3926d2466dab5d6f3323a626f6a1be8b07c66492_3bee435a-9f1a-4464-9f96-df489d4db839.webp?v=1714701298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3926d2466dab5d6f3323a626f6a1be8b07c66492_3bee435a-9f1a-4464-9f96-df489d4db839.webp?v=1714701298","width":2000},{"alt":null,"id":23874567209059,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b215be6602835ebce00d145b538fc293f434a616_53b99f26-f702-4687-b466-22db07e65292.webp?v=1714701301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b215be6602835ebce00d145b538fc293f434a616_53b99f26-f702-4687-b466-22db07e65292.webp?v=1714701301","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41875459997795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31469664993379,"product_id":7407472443491,"position":9,"created_at":"2024-05-03T09:54:58+08:00","updated_at":"2024-05-03T09:54:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3926d2466dab5d6f3323a626f6a1be8b07c66492_3bee435a-9f1a-4464-9f96-df489d4db839.webp?v=1714701298","variant_ids":[41875459997795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23874566488163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3926d2466dab5d6f3323a626f6a1be8b07c66492_3bee435a-9f1a-4464-9f96-df489d4db839.webp?v=1714701298"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875460128867,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31469660471395,"product_id":7407472443491,"position":3,"created_at":"2024-05-03T09:54:44+08:00","updated_at":"2024-05-03T09:54:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4206d9a027bdb7d0c69e3df9372a4d0c50097562_61ecb4b1-f4c0-40f9-91e7-af9598b5dba4.webp?v=1714701284","variant_ids":[41875460128867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23874561802339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4206d9a027bdb7d0c69e3df9372a4d0c50097562_61ecb4b1-f4c0-40f9-91e7-af9598b5dba4.webp?v=1714701284"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41875459997795,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PB102","requires_shipping":true,"taxable":true,"featured_image":{"id":31469664993379,"product_id":7407472443491,"position":9,"created_at":"2024-05-03T09:54:58+08:00","updated_at":"2024-05-03T09:54:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3926d2466dab5d6f3323a626f6a1be8b07c66492_3bee435a-9f1a-4464-9f96-df489d4db839.webp?v=1714701298","variant_ids":[41875459997795]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 路克\u0026莉亞公主-電影海報 - 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-PB102","featured_media":{"alt":null,"id":23874566488163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3926d2466dab5d6f3323a626f6a1be8b07c66492_3bee435a-9f1a-4464-9f96-df489d4db839.webp?v=1714701298"}},"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: "停產"
}