$product = {"id":7411241975907,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pb77","description":null,"published_at":"2024-06-11T17:39:41+08:00","created_at":"2024-05-04T23:52:01+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":41896420933731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479939727459,"product_id":7411241975907,"position":8,"created_at":"2024-05-04T23:52:19+08:00","updated_at":"2024-05-04T23:52:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8492996ed07d3ae47e6bbdf0512d8111e8c617_5ce77ba2-e906-41d5-94f2-6acdffff5f5e.webp?v=1714837939","variant_ids":[41896420933731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - 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-PB77","featured_media":{"alt":null,"id":23885190135907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8492996ed07d3ae47e6bbdf0512d8111e8c617_5ce77ba2-e906-41d5-94f2-6acdffff5f5e.webp?v=1714837939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d70621d0031ac6339c18c9d06a950ea359ad6d7_7c2ea880-4747-404f-89af-37b921d22ada.webp?v=1714837923","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e1fa5d31e5f67a3b0e5dc610651748107adb7f6_718147b0-f911-4481-8248-fa7755b10347.webp?v=1714837926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/472606bf9c1fd719c54d676844a08881ae1d12df_0bdc063a-0c48-41be-aa3e-26b70d52e72d.webp?v=1714837928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65ce4399e2ab0cf7ebfb98e78f9aee1dfba89e1_249bcf37-c196-4831-b806-fd560a45e2f7.webp?v=1714837930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afbb438a044062ea63f5a4397f922238da8bf9_c742e885-73fc-49c3-a328-0a3366624a41.webp?v=1714837933","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62bc673a5367e69cc637bca7d99208843a8e0716_308b817b-712a-4306-935a-4b210e40d383.webp?v=1714837935","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0b7e0d30ad7c5a05da4d32e4a8b27cc2fd796e_95f55438-b93a-4b02-b308-6bef664728c8.webp?v=1714837937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8492996ed07d3ae47e6bbdf0512d8111e8c617_5ce77ba2-e906-41d5-94f2-6acdffff5f5e.webp?v=1714837939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/047e20e80b11af076dafc8988cd6dc210cabb646_a88250da-1676-4205-b3e2-212eeb5b3934.webp?v=1714837942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53034ef7cdc6531ccd0a1193b66a1423012e4a6a_2f4b4f34-3e7f-4090-a3e3-954ab71c8112.webp?v=1714837944"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d70621d0031ac6339c18c9d06a950ea359ad6d7_7c2ea880-4747-404f-89af-37b921d22ada.webp?v=1714837923","options":["color"],"media":[{"alt":null,"id":23885186564195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d70621d0031ac6339c18c9d06a950ea359ad6d7_7c2ea880-4747-404f-89af-37b921d22ada.webp?v=1714837923"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d70621d0031ac6339c18c9d06a950ea359ad6d7_7c2ea880-4747-404f-89af-37b921d22ada.webp?v=1714837923","width":2000},{"alt":null,"id":23885187154019,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e1fa5d31e5f67a3b0e5dc610651748107adb7f6_718147b0-f911-4481-8248-fa7755b10347.webp?v=1714837926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e1fa5d31e5f67a3b0e5dc610651748107adb7f6_718147b0-f911-4481-8248-fa7755b10347.webp?v=1714837926","width":2000},{"alt":null,"id":23885187645539,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/472606bf9c1fd719c54d676844a08881ae1d12df_0bdc063a-0c48-41be-aa3e-26b70d52e72d.webp?v=1714837928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/472606bf9c1fd719c54d676844a08881ae1d12df_0bdc063a-0c48-41be-aa3e-26b70d52e72d.webp?v=1714837928","width":2000},{"alt":null,"id":23885188038755,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65ce4399e2ab0cf7ebfb98e78f9aee1dfba89e1_249bcf37-c196-4831-b806-fd560a45e2f7.webp?v=1714837930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65ce4399e2ab0cf7ebfb98e78f9aee1dfba89e1_249bcf37-c196-4831-b806-fd560a45e2f7.webp?v=1714837930","width":2000},{"alt":null,"id":23885188595811,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afbb438a044062ea63f5a4397f922238da8bf9_c742e885-73fc-49c3-a328-0a3366624a41.webp?v=1714837933"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36afbb438a044062ea63f5a4397f922238da8bf9_c742e885-73fc-49c3-a328-0a3366624a41.webp?v=1714837933","width":2000},{"alt":null,"id":23885188989027,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62bc673a5367e69cc637bca7d99208843a8e0716_308b817b-712a-4306-935a-4b210e40d383.webp?v=1714837935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62bc673a5367e69cc637bca7d99208843a8e0716_308b817b-712a-4306-935a-4b210e40d383.webp?v=1714837935","width":2000},{"alt":null,"id":23885189709923,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0b7e0d30ad7c5a05da4d32e4a8b27cc2fd796e_95f55438-b93a-4b02-b308-6bef664728c8.webp?v=1714837937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f0b7e0d30ad7c5a05da4d32e4a8b27cc2fd796e_95f55438-b93a-4b02-b308-6bef664728c8.webp?v=1714837937","width":2000},{"alt":null,"id":23885190135907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8492996ed07d3ae47e6bbdf0512d8111e8c617_5ce77ba2-e906-41d5-94f2-6acdffff5f5e.webp?v=1714837939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8492996ed07d3ae47e6bbdf0512d8111e8c617_5ce77ba2-e906-41d5-94f2-6acdffff5f5e.webp?v=1714837939","width":2000},{"alt":null,"id":23885190594659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/047e20e80b11af076dafc8988cd6dc210cabb646_a88250da-1676-4205-b3e2-212eeb5b3934.webp?v=1714837942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/047e20e80b11af076dafc8988cd6dc210cabb646_a88250da-1676-4205-b3e2-212eeb5b3934.webp?v=1714837942","width":2000},{"alt":null,"id":23885191020643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53034ef7cdc6531ccd0a1193b66a1423012e4a6a_2f4b4f34-3e7f-4090-a3e3-954ab71c8112.webp?v=1714837944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53034ef7cdc6531ccd0a1193b66a1423012e4a6a_2f4b4f34-3e7f-4090-a3e3-954ab71c8112.webp?v=1714837944","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41896420933731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479939727459,"product_id":7411241975907,"position":8,"created_at":"2024-05-04T23:52:19+08:00","updated_at":"2024-05-04T23:52:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8492996ed07d3ae47e6bbdf0512d8111e8c617_5ce77ba2-e906-41d5-94f2-6acdffff5f5e.webp?v=1714837939","variant_ids":[41896420933731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - 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-PB77","featured_media":{"alt":null,"id":23885190135907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8492996ed07d3ae47e6bbdf0512d8111e8c617_5ce77ba2-e906-41d5-94f2-6acdffff5f5e.webp?v=1714837939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41896420933731,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31479939727459,"product_id":7411241975907,"position":8,"created_at":"2024-05-04T23:52:19+08:00","updated_at":"2024-05-04T23:52:19+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8492996ed07d3ae47e6bbdf0512d8111e8c617_5ce77ba2-e906-41d5-94f2-6acdffff5f5e.webp?v=1714837939","variant_ids":[41896420933731]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列 - 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-PB77","featured_media":{"alt":null,"id":23885190135907,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8492996ed07d3ae47e6bbdf0512d8111e8c617_5ce77ba2-e906-41d5-94f2-6acdffff5f5e.webp?v=1714837939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}