Home
›
測試
›
犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒
$product = {"id":7369135358051,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒","handle":"iphone-15-plus-mod-nx-printable-pl59","description":null,"published_at":"2024-05-27T12:19:49+08:00","created_at":"2024-04-23T15:31:38+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Snoopy 史努比","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-snoopy","device-iPhone 15 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-ella","reseller-modnx-snoopy","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":41792913834083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386882179171,"product_id":7369135358051,"position":7,"created_at":"2024-04-23T15:31:55+08:00","updated_at":"2024-04-23T15:31:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302b283c40855d12c8dafed6d273b96820cc667e_e1cbbe21-2e41-4c01-a6ab-48076627cf95.webp?v=1713857516","variant_ids":[41792913834083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - 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-PL59","featured_media":{"alt":null,"id":23789120028771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302b283c40855d12c8dafed6d273b96820cc667e_e1cbbe21-2e41-4c01-a6ab-48076627cf95.webp?v=1713857516"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792914227299,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386880606307,"product_id":7369135358051,"position":5,"created_at":"2024-04-23T15:31:50+08:00","updated_at":"2024-04-23T15:31:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3c9c56854c1defadaba10a500927286cb46e7f_f2750f87-c743-4d61-b72f-6c02bbc2b570.webp?v=1713857510","variant_ids":[41792914227299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - 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-PL59","featured_media":{"alt":null,"id":23789118423139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3c9c56854c1defadaba10a500927286cb46e7f_f2750f87-c743-4d61-b72f-6c02bbc2b570.webp?v=1713857510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/711445c80b379450ca07b1eb238ad7b3524e4f18_6220fe3d-316f-479b-9d48-6e5951da512a.webp?v=1713857500","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69350bb3885f7738d8c581412c5dff8b7c81f1d7_7a8c80d1-2039-4384-8f45-db696f6ceeea.webp?v=1713857502","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00afdb102070d58bbcc5b84b4eec21d3ccf7b4_3a720912-69b3-4f7e-acb2-0d3f0713a40a.webp?v=1713857505","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27c399595a57e9d0640aa4c806220c97574d285c_ac673756-fead-4bed-b6a7-aece3fa194eb.webp?v=1713857508","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3c9c56854c1defadaba10a500927286cb46e7f_f2750f87-c743-4d61-b72f-6c02bbc2b570.webp?v=1713857510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75467c8f8bb415582d7f357e31cc20798f44d7c3_f005e84f-b67c-46ec-b39b-addb36df495e.webp?v=1713857512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302b283c40855d12c8dafed6d273b96820cc667e_e1cbbe21-2e41-4c01-a6ab-48076627cf95.webp?v=1713857516","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae9a0c96b325633ec0d08e6dbc51ba26fcfa574_61b71da2-574f-4280-bd9c-5928a223a126.webp?v=1713857518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b61d39f129b19db11a09bfa73ba97643555c1f_a18cf4df-3ae7-4d35-ae43-b7407ea92ce3.webp?v=1713857520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab97a1602ce104cedba2ce0eb20eaf616be8e16_540374ae-e66c-4f5e-9e90-064305eb1ada.webp?v=1713857523"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/711445c80b379450ca07b1eb238ad7b3524e4f18_6220fe3d-316f-479b-9d48-6e5951da512a.webp?v=1713857500","options":["color"],"media":[{"alt":null,"id":23789115900003,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/711445c80b379450ca07b1eb238ad7b3524e4f18_6220fe3d-316f-479b-9d48-6e5951da512a.webp?v=1713857500"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/711445c80b379450ca07b1eb238ad7b3524e4f18_6220fe3d-316f-479b-9d48-6e5951da512a.webp?v=1713857500","width":2000},{"alt":null,"id":23789116424291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69350bb3885f7738d8c581412c5dff8b7c81f1d7_7a8c80d1-2039-4384-8f45-db696f6ceeea.webp?v=1713857502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69350bb3885f7738d8c581412c5dff8b7c81f1d7_7a8c80d1-2039-4384-8f45-db696f6ceeea.webp?v=1713857502","width":2000},{"alt":null,"id":23789117079651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00afdb102070d58bbcc5b84b4eec21d3ccf7b4_3a720912-69b3-4f7e-acb2-0d3f0713a40a.webp?v=1713857505"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d00afdb102070d58bbcc5b84b4eec21d3ccf7b4_3a720912-69b3-4f7e-acb2-0d3f0713a40a.webp?v=1713857505","width":2000},{"alt":null,"id":23789117735011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27c399595a57e9d0640aa4c806220c97574d285c_ac673756-fead-4bed-b6a7-aece3fa194eb.webp?v=1713857508"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27c399595a57e9d0640aa4c806220c97574d285c_ac673756-fead-4bed-b6a7-aece3fa194eb.webp?v=1713857508","width":2000},{"alt":null,"id":23789118423139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3c9c56854c1defadaba10a500927286cb46e7f_f2750f87-c743-4d61-b72f-6c02bbc2b570.webp?v=1713857510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3c9c56854c1defadaba10a500927286cb46e7f_f2750f87-c743-4d61-b72f-6c02bbc2b570.webp?v=1713857510","width":2000},{"alt":null,"id":23789119275107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75467c8f8bb415582d7f357e31cc20798f44d7c3_f005e84f-b67c-46ec-b39b-addb36df495e.webp?v=1713857512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75467c8f8bb415582d7f357e31cc20798f44d7c3_f005e84f-b67c-46ec-b39b-addb36df495e.webp?v=1713857512","width":2000},{"alt":null,"id":23789120028771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302b283c40855d12c8dafed6d273b96820cc667e_e1cbbe21-2e41-4c01-a6ab-48076627cf95.webp?v=1713857516"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302b283c40855d12c8dafed6d273b96820cc667e_e1cbbe21-2e41-4c01-a6ab-48076627cf95.webp?v=1713857516","width":2000},{"alt":null,"id":23789120684131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae9a0c96b325633ec0d08e6dbc51ba26fcfa574_61b71da2-574f-4280-bd9c-5928a223a126.webp?v=1713857518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eae9a0c96b325633ec0d08e6dbc51ba26fcfa574_61b71da2-574f-4280-bd9c-5928a223a126.webp?v=1713857518","width":2000},{"alt":null,"id":23789121405027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b61d39f129b19db11a09bfa73ba97643555c1f_a18cf4df-3ae7-4d35-ae43-b7407ea92ce3.webp?v=1713857520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27b61d39f129b19db11a09bfa73ba97643555c1f_a18cf4df-3ae7-4d35-ae43-b7407ea92ce3.webp?v=1713857520","width":2000},{"alt":null,"id":23789122027619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab97a1602ce104cedba2ce0eb20eaf616be8e16_540374ae-e66c-4f5e-9e90-064305eb1ada.webp?v=1713857523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cab97a1602ce104cedba2ce0eb20eaf616be8e16_540374ae-e66c-4f5e-9e90-064305eb1ada.webp?v=1713857523","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41792913834083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386882179171,"product_id":7369135358051,"position":7,"created_at":"2024-04-23T15:31:55+08:00","updated_at":"2024-04-23T15:31:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302b283c40855d12c8dafed6d273b96820cc667e_e1cbbe21-2e41-4c01-a6ab-48076627cf95.webp?v=1713857516","variant_ids":[41792913834083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - 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-PL59","featured_media":{"alt":null,"id":23789120028771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302b283c40855d12c8dafed6d273b96820cc667e_e1cbbe21-2e41-4c01-a6ab-48076627cf95.webp?v=1713857516"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41792914227299,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386880606307,"product_id":7369135358051,"position":5,"created_at":"2024-04-23T15:31:50+08:00","updated_at":"2024-04-23T15:31:50+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3c9c56854c1defadaba10a500927286cb46e7f_f2750f87-c743-4d61-b72f-6c02bbc2b570.webp?v=1713857510","variant_ids":[41792914227299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - 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-PL59","featured_media":{"alt":null,"id":23789118423139,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dd3c9c56854c1defadaba10a500927286cb46e7f_f2750f87-c743-4d61-b72f-6c02bbc2b570.webp?v=1713857510"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41792913834083,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PL59","requires_shipping":true,"taxable":true,"featured_image":{"id":31386882179171,"product_id":7369135358051,"position":7,"created_at":"2024-04-23T15:31:55+08:00","updated_at":"2024-04-23T15:31:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302b283c40855d12c8dafed6d273b96820cc667e_e1cbbe21-2e41-4c01-a6ab-48076627cf95.webp?v=1713857516","variant_ids":[41792913834083]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - Snoopy 史努比 - 冰淇淋甜筒 - 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-PL59","featured_media":{"alt":null,"id":23789120028771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/302b283c40855d12c8dafed6d273b96820cc667e_e1cbbe21-2e41-4c01-a6ab-48076627cf95.webp?v=1713857516"}},"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: "停產"
}