$product = {"id":7411386843235,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb48","description":null,"published_at":"2024-06-11T17:43:34+08:00","created_at":"2024-05-05T00:19: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 14 Plus","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":41898243489891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480298995811,"product_id":7411386843235,"position":4,"created_at":"2024-05-05T00:20:06+08:00","updated_at":"2024-05-05T00:20:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44663b5c6c45c5c48b06e50a3cc077c4e70957ac_bad62a24-229d-4a5d-965a-7a34a3511bf3.webp?v=1714839606","variant_ids":[41898243489891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB0126124-PB48","featured_media":{"alt":null,"id":23885550354531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44663b5c6c45c5c48b06e50a3cc077c4e70957ac_bad62a24-229d-4a5d-965a-7a34a3511bf3.webp?v=1714839606"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b46e5c97413f67ec2112d5d9cba592f09e9cb833_ac228f65-6a14-465a-8ade-1c67df2a9909.webp?v=1714839599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef56dce717da37628d8fa4b69a5e7ba3b997959_b0e26cec-d44c-4339-bb5f-caf0efb44959.webp?v=1714839601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/633f42a0df61d211e4d6d68516d1e3bf80aa2330_16c35fcf-9f80-4928-a457-5c7583ab80c4.webp?v=1714839603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44663b5c6c45c5c48b06e50a3cc077c4e70957ac_bad62a24-229d-4a5d-965a-7a34a3511bf3.webp?v=1714839606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b99469bbf9a873ef66e9afdaf83aec9bf734262c_0e963911-8e25-4dfe-b530-374a50b68464.webp?v=1714839608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39819f04f94e9cbf2c00fd279caf8c298d6037b3_bc423d67-c4c1-494a-acfb-47434b0b9f88.webp?v=1714839611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/384bd937a8196563a4d867f8fff2136ef86040bb_45b850a4-e15b-4d78-9aa1-c5aa3e358877.webp?v=1714839614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dfd97ff172aa8d2c6272838bfc0c5f7431459e_bf3059f2-c559-474f-b415-42df557534d7.webp?v=1714839616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87f73b91afc8d0f83a16da11d16daa96bf0639bc_06fe727d-0116-4348-9f40-757a5b826285.webp?v=1714839619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f6cfafed7d55290b3215117328d84a2139774d_7ead16d8-c41f-40e4-8024-84995694c61d.webp?v=1714839621"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b46e5c97413f67ec2112d5d9cba592f09e9cb833_ac228f65-6a14-465a-8ade-1c67df2a9909.webp?v=1714839599","options":["color"],"media":[{"alt":null,"id":23885548683363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b46e5c97413f67ec2112d5d9cba592f09e9cb833_ac228f65-6a14-465a-8ade-1c67df2a9909.webp?v=1714839599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b46e5c97413f67ec2112d5d9cba592f09e9cb833_ac228f65-6a14-465a-8ade-1c67df2a9909.webp?v=1714839599","width":2000},{"alt":null,"id":23885549240419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef56dce717da37628d8fa4b69a5e7ba3b997959_b0e26cec-d44c-4339-bb5f-caf0efb44959.webp?v=1714839601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ef56dce717da37628d8fa4b69a5e7ba3b997959_b0e26cec-d44c-4339-bb5f-caf0efb44959.webp?v=1714839601","width":2000},{"alt":null,"id":23885549699171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/633f42a0df61d211e4d6d68516d1e3bf80aa2330_16c35fcf-9f80-4928-a457-5c7583ab80c4.webp?v=1714839603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/633f42a0df61d211e4d6d68516d1e3bf80aa2330_16c35fcf-9f80-4928-a457-5c7583ab80c4.webp?v=1714839603","width":2000},{"alt":null,"id":23885550354531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44663b5c6c45c5c48b06e50a3cc077c4e70957ac_bad62a24-229d-4a5d-965a-7a34a3511bf3.webp?v=1714839606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44663b5c6c45c5c48b06e50a3cc077c4e70957ac_bad62a24-229d-4a5d-965a-7a34a3511bf3.webp?v=1714839606","width":2000},{"alt":null,"id":23885550911587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b99469bbf9a873ef66e9afdaf83aec9bf734262c_0e963911-8e25-4dfe-b530-374a50b68464.webp?v=1714839608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b99469bbf9a873ef66e9afdaf83aec9bf734262c_0e963911-8e25-4dfe-b530-374a50b68464.webp?v=1714839608","width":2000},{"alt":null,"id":23885551534179,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39819f04f94e9cbf2c00fd279caf8c298d6037b3_bc423d67-c4c1-494a-acfb-47434b0b9f88.webp?v=1714839611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39819f04f94e9cbf2c00fd279caf8c298d6037b3_bc423d67-c4c1-494a-acfb-47434b0b9f88.webp?v=1714839611","width":2000},{"alt":null,"id":23885552058467,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/384bd937a8196563a4d867f8fff2136ef86040bb_45b850a4-e15b-4d78-9aa1-c5aa3e358877.webp?v=1714839614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/384bd937a8196563a4d867f8fff2136ef86040bb_45b850a4-e15b-4d78-9aa1-c5aa3e358877.webp?v=1714839614","width":2000},{"alt":null,"id":23885552648291,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dfd97ff172aa8d2c6272838bfc0c5f7431459e_bf3059f2-c559-474f-b415-42df557534d7.webp?v=1714839616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5dfd97ff172aa8d2c6272838bfc0c5f7431459e_bf3059f2-c559-474f-b415-42df557534d7.webp?v=1714839616","width":2000},{"alt":null,"id":23885553107043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87f73b91afc8d0f83a16da11d16daa96bf0639bc_06fe727d-0116-4348-9f40-757a5b826285.webp?v=1714839619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87f73b91afc8d0f83a16da11d16daa96bf0639bc_06fe727d-0116-4348-9f40-757a5b826285.webp?v=1714839619","width":2000},{"alt":null,"id":23885553500259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f6cfafed7d55290b3215117328d84a2139774d_7ead16d8-c41f-40e4-8024-84995694c61d.webp?v=1714839621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4f6cfafed7d55290b3215117328d84a2139774d_7ead16d8-c41f-40e4-8024-84995694c61d.webp?v=1714839621","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41898243489891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480298995811,"product_id":7411386843235,"position":4,"created_at":"2024-05-05T00:20:06+08:00","updated_at":"2024-05-05T00:20:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44663b5c6c45c5c48b06e50a3cc077c4e70957ac_bad62a24-229d-4a5d-965a-7a34a3511bf3.webp?v=1714839606","variant_ids":[41898243489891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB0126124-PB48","featured_media":{"alt":null,"id":23885550354531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44663b5c6c45c5c48b06e50a3cc077c4e70957ac_bad62a24-229d-4a5d-965a-7a34a3511bf3.webp?v=1714839606"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41898243489891,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB48","requires_shipping":true,"taxable":true,"featured_image":{"id":31480298995811,"product_id":7411386843235,"position":4,"created_at":"2024-05-05T00:20:06+08:00","updated_at":"2024-05-05T00:20:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44663b5c6c45c5c48b06e50a3cc077c4e70957ac_bad62a24-229d-4a5d-965a-7a34a3511bf3.webp?v=1714839606","variant_ids":[41898243489891]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - JEDI ORDER 原力-潮流系列 - 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":"MPB0126124-PB48","featured_media":{"alt":null,"id":23885550354531,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44663b5c6c45c5c48b06e50a3cc077c4e70957ac_bad62a24-229d-4a5d-965a-7a34a3511bf3.webp?v=1714839606"}},"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: "停產"
}