$product = {"id":7416358371427,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - We are together","handle":"iphone-8-mod-nx-printable-yb14","description":null,"published_at":"2024-06-11T16:56:52+08:00","created_at":"2024-05-06T14:41:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","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":41918872911971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31491930488931,"product_id":7416358371427,"position":5,"created_at":"2024-05-06T14:41:37+08:00","updated_at":"2024-05-06T14:41:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd9cc84ef897c127816d540458733497d4b3fce_baf8150e-10fc-4ca0-9b75-e17b0dcaea44.webp?v=1714977697","variant_ids":[41918872911971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - We are together - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-YB14","featured_media":{"alt":null,"id":23897343492195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd9cc84ef897c127816d540458733497d4b3fce_baf8150e-10fc-4ca0-9b75-e17b0dcaea44.webp?v=1714977697"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf15c031b1fb1c2e01f71cea9f6ea47fcdd40b9_8239b1e8-b256-447b-94d0-ab81ecd12a2b.webp?v=1714977687","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b8e143908f2ea67ea5e7fe46d1f012b7796bc3c_16e676be-0707-42ca-9a09-61c51ef83b0f.webp?v=1714977690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ad889db62dfe1e8d777ff554274e514eb3fa73e_945bfa1f-37d4-4c8c-b67a-c2ac431270c9.webp?v=1714977692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83c20e787f0671b5f8492cdbc94c0221eeea5985_672e42e4-848f-429d-9e89-fdf992575687.webp?v=1714977694","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd9cc84ef897c127816d540458733497d4b3fce_baf8150e-10fc-4ca0-9b75-e17b0dcaea44.webp?v=1714977697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dafd6d5b6b2ad73ad2c0445084620652b283bf87_de122061-e03b-4dc3-8aab-b114964e4119.webp?v=1714977699","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46bca6df47284d78b68d74874dd380659545bb2b_5e116927-caff-4d0b-b836-bc842921d317.webp?v=1714977702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f729c8094197a1a4cd2456b4dd01692a4b454c4c_39bc81f3-942d-478c-9d4c-d6e5beb64040.webp?v=1714977704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/543774636e192f5b371891d24a9690a2c650a890_438f5cbc-890d-440e-98be-0fe9a7df214e.webp?v=1714977707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e26a59dc33c45e03b9c623536b2e5c179c603c8_45099d7c-be9f-44bd-9f89-cfccf56c4c9a.webp?v=1714977709"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf15c031b1fb1c2e01f71cea9f6ea47fcdd40b9_8239b1e8-b256-447b-94d0-ab81ecd12a2b.webp?v=1714977687","options":["color"],"media":[{"alt":null,"id":23897341591651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf15c031b1fb1c2e01f71cea9f6ea47fcdd40b9_8239b1e8-b256-447b-94d0-ab81ecd12a2b.webp?v=1714977687"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abf15c031b1fb1c2e01f71cea9f6ea47fcdd40b9_8239b1e8-b256-447b-94d0-ab81ecd12a2b.webp?v=1714977687","width":2000},{"alt":null,"id":23897342247011,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b8e143908f2ea67ea5e7fe46d1f012b7796bc3c_16e676be-0707-42ca-9a09-61c51ef83b0f.webp?v=1714977690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b8e143908f2ea67ea5e7fe46d1f012b7796bc3c_16e676be-0707-42ca-9a09-61c51ef83b0f.webp?v=1714977690","width":2000},{"alt":null,"id":23897342607459,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ad889db62dfe1e8d777ff554274e514eb3fa73e_945bfa1f-37d4-4c8c-b67a-c2ac431270c9.webp?v=1714977692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ad889db62dfe1e8d777ff554274e514eb3fa73e_945bfa1f-37d4-4c8c-b67a-c2ac431270c9.webp?v=1714977692","width":2000},{"alt":null,"id":23897343033443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83c20e787f0671b5f8492cdbc94c0221eeea5985_672e42e4-848f-429d-9e89-fdf992575687.webp?v=1714977694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83c20e787f0671b5f8492cdbc94c0221eeea5985_672e42e4-848f-429d-9e89-fdf992575687.webp?v=1714977694","width":2000},{"alt":null,"id":23897343492195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd9cc84ef897c127816d540458733497d4b3fce_baf8150e-10fc-4ca0-9b75-e17b0dcaea44.webp?v=1714977697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd9cc84ef897c127816d540458733497d4b3fce_baf8150e-10fc-4ca0-9b75-e17b0dcaea44.webp?v=1714977697","width":2000},{"alt":null,"id":23897344049251,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dafd6d5b6b2ad73ad2c0445084620652b283bf87_de122061-e03b-4dc3-8aab-b114964e4119.webp?v=1714977699"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dafd6d5b6b2ad73ad2c0445084620652b283bf87_de122061-e03b-4dc3-8aab-b114964e4119.webp?v=1714977699","width":2000},{"alt":null,"id":23897344606307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46bca6df47284d78b68d74874dd380659545bb2b_5e116927-caff-4d0b-b836-bc842921d317.webp?v=1714977702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46bca6df47284d78b68d74874dd380659545bb2b_5e116927-caff-4d0b-b836-bc842921d317.webp?v=1714977702","width":2000},{"alt":null,"id":23897345196131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f729c8094197a1a4cd2456b4dd01692a4b454c4c_39bc81f3-942d-478c-9d4c-d6e5beb64040.webp?v=1714977704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f729c8094197a1a4cd2456b4dd01692a4b454c4c_39bc81f3-942d-478c-9d4c-d6e5beb64040.webp?v=1714977704","width":2000},{"alt":null,"id":23897347653731,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/543774636e192f5b371891d24a9690a2c650a890_438f5cbc-890d-440e-98be-0fe9a7df214e.webp?v=1714977707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/543774636e192f5b371891d24a9690a2c650a890_438f5cbc-890d-440e-98be-0fe9a7df214e.webp?v=1714977707","width":2000},{"alt":null,"id":23897348079715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e26a59dc33c45e03b9c623536b2e5c179c603c8_45099d7c-be9f-44bd-9f89-cfccf56c4c9a.webp?v=1714977709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e26a59dc33c45e03b9c623536b2e5c179c603c8_45099d7c-be9f-44bd-9f89-cfccf56c4c9a.webp?v=1714977709","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41918872911971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31491930488931,"product_id":7416358371427,"position":5,"created_at":"2024-05-06T14:41:37+08:00","updated_at":"2024-05-06T14:41:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd9cc84ef897c127816d540458733497d4b3fce_baf8150e-10fc-4ca0-9b75-e17b0dcaea44.webp?v=1714977697","variant_ids":[41918872911971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - We are together - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-YB14","featured_media":{"alt":null,"id":23897343492195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd9cc84ef897c127816d540458733497d4b3fce_baf8150e-10fc-4ca0-9b75-e17b0dcaea44.webp?v=1714977697"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41918872911971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-YB14","requires_shipping":true,"taxable":true,"featured_image":{"id":31491930488931,"product_id":7416358371427,"position":5,"created_at":"2024-05-06T14:41:37+08:00","updated_at":"2024-05-06T14:41:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd9cc84ef897c127816d540458733497d4b3fce_baf8150e-10fc-4ca0-9b75-e17b0dcaea44.webp?v=1714977697","variant_ids":[41918872911971]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - Care Bears - We are together - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-YB14","featured_media":{"alt":null,"id":23897343492195,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5fd9cc84ef897c127816d540458733497d4b3fce_baf8150e-10fc-4ca0-9b75-e17b0dcaea44.webp?v=1714977697"}},"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: "停產"
}