$product = {"id":7411113623651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭貓貓","handle":"iphone-15-plus-mod-nx-magsafe-printable-hq01","description":null,"published_at":"2024-06-11T17:36:39+08:00","created_at":"2024-05-04T22:45:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Pixel Jeff 皮傑","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-pixeljeff","device-iPhone 15 Plus","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-pixeljeff","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":41895098024035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479545069667,"product_id":7411113623651,"position":1,"created_at":"2024-05-04T22:45:28+08:00","updated_at":"2024-05-04T22:45:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928","variant_ids":[41895098024035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-HQ01","featured_media":{"alt":null,"id":23884792758371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895098155107,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479545430115,"product_id":7411113623651,"position":3,"created_at":"2024-05-04T22:45:32+08:00","updated_at":"2024-05-04T22:45:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d058414181be43a2f66ea0249a570bb3dbf3306c_2dcf6038-0d26-465f-b102-60e08fc6c7bd.webp?v=1714833932","variant_ids":[41895098155107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-HQ01","featured_media":{"alt":null,"id":23884793118819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d058414181be43a2f66ea0249a570bb3dbf3306c_2dcf6038-0d26-465f-b102-60e08fc6c7bd.webp?v=1714833932"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6ba1205cfcd52383d1b891e50015f2874c116_36f1b4bf-e41b-49b4-8014-219dbbbb60f9.webp?v=1714833930","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d058414181be43a2f66ea0249a570bb3dbf3306c_2dcf6038-0d26-465f-b102-60e08fc6c7bd.webp?v=1714833932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6c70b0d07c602beff6c12d269d901d5dad9c05_bb367fc2-0184-4c75-b567-7ae3524249e2.webp?v=1714833935","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f20b0b37cc4246525d77776b2de3fb73b84a4d51_67c33845-b764-4ff2-8701-5121269d7f8c.webp?v=1714833937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cacbd049e31985a3cde2ef41141a6a9e9cee897e_a0fbb7c2-baa3-4b22-bc2c-2d000e3e7068.webp?v=1714833941","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c8d1a96337e8cf4fc093fbb2b55fa4537c1a0d4_7f01ef4d-840b-43e8-977d-29a41b189854.webp?v=1714833944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e65ccd24e0d38bf794a5c9d6afbc9bb316bab8a_d3e2135d-378d-4efb-b987-bdfabaaaea03.webp?v=1714833946","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c53feba91d8badf67adff6fbf4f9b858e6b148_72932d3d-21bd-44be-94ea-785fd02c98bc.webp?v=1714833948"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928","options":["color"],"media":[{"alt":null,"id":23884792758371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928","width":2000},{"alt":null,"id":23884792922211,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6ba1205cfcd52383d1b891e50015f2874c116_36f1b4bf-e41b-49b4-8014-219dbbbb60f9.webp?v=1714833930"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0f6ba1205cfcd52383d1b891e50015f2874c116_36f1b4bf-e41b-49b4-8014-219dbbbb60f9.webp?v=1714833930","width":2000},{"alt":null,"id":23884793118819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d058414181be43a2f66ea0249a570bb3dbf3306c_2dcf6038-0d26-465f-b102-60e08fc6c7bd.webp?v=1714833932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d058414181be43a2f66ea0249a570bb3dbf3306c_2dcf6038-0d26-465f-b102-60e08fc6c7bd.webp?v=1714833932","width":2000},{"alt":null,"id":23884793544803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6c70b0d07c602beff6c12d269d901d5dad9c05_bb367fc2-0184-4c75-b567-7ae3524249e2.webp?v=1714833935"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6c70b0d07c602beff6c12d269d901d5dad9c05_bb367fc2-0184-4c75-b567-7ae3524249e2.webp?v=1714833935","width":2000},{"alt":null,"id":23884794069091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f20b0b37cc4246525d77776b2de3fb73b84a4d51_67c33845-b764-4ff2-8701-5121269d7f8c.webp?v=1714833937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f20b0b37cc4246525d77776b2de3fb73b84a4d51_67c33845-b764-4ff2-8701-5121269d7f8c.webp?v=1714833937","width":2000},{"alt":null,"id":23884795412579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cacbd049e31985a3cde2ef41141a6a9e9cee897e_a0fbb7c2-baa3-4b22-bc2c-2d000e3e7068.webp?v=1714833941"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cacbd049e31985a3cde2ef41141a6a9e9cee897e_a0fbb7c2-baa3-4b22-bc2c-2d000e3e7068.webp?v=1714833941","width":2000},{"alt":null,"id":23884795871331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c8d1a96337e8cf4fc093fbb2b55fa4537c1a0d4_7f01ef4d-840b-43e8-977d-29a41b189854.webp?v=1714833944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c8d1a96337e8cf4fc093fbb2b55fa4537c1a0d4_7f01ef4d-840b-43e8-977d-29a41b189854.webp?v=1714833944","width":2000},{"alt":null,"id":23884796297315,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e65ccd24e0d38bf794a5c9d6afbc9bb316bab8a_d3e2135d-378d-4efb-b987-bdfabaaaea03.webp?v=1714833946"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e65ccd24e0d38bf794a5c9d6afbc9bb316bab8a_d3e2135d-378d-4efb-b987-bdfabaaaea03.webp?v=1714833946","width":2000},{"alt":null,"id":23884796854371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c53feba91d8badf67adff6fbf4f9b858e6b148_72932d3d-21bd-44be-94ea-785fd02c98bc.webp?v=1714833948"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84c53feba91d8badf67adff6fbf4f9b858e6b148_72932d3d-21bd-44be-94ea-785fd02c98bc.webp?v=1714833948","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41895098024035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479545069667,"product_id":7411113623651,"position":1,"created_at":"2024-05-04T22:45:28+08:00","updated_at":"2024-05-04T22:45:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928","variant_ids":[41895098024035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-HQ01","featured_media":{"alt":null,"id":23884792758371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41895098155107,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479545430115,"product_id":7411113623651,"position":3,"created_at":"2024-05-04T22:45:32+08:00","updated_at":"2024-05-04T22:45:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d058414181be43a2f66ea0249a570bb3dbf3306c_2dcf6038-0d26-465f-b102-60e08fc6c7bd.webp?v=1714833932","variant_ids":[41895098155107]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-櫻花粉邊框","public_title":"Mod NX-櫻花粉邊框","options":["Mod NX-櫻花粉邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129657-HQ01","featured_media":{"alt":null,"id":23884793118819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d058414181be43a2f66ea0249a570bb3dbf3306c_2dcf6038-0d26-465f-b102-60e08fc6c7bd.webp?v=1714833932"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41895098024035,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-HQ01","requires_shipping":true,"taxable":true,"featured_image":{"id":31479545069667,"product_id":7411113623651,"position":1,"created_at":"2024-05-04T22:45:28+08:00","updated_at":"2024-05-04T22:45:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928","variant_ids":[41895098024035]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - Pixel Jeff 皮傑 - 街頭貓貓 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0129624-HQ01","featured_media":{"alt":null,"id":23884792758371,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b71d64fbef373117f1c91b2fc98682a1dade8f2c_00031d0d-e8f1-45ff-ada7-b53130035565.webp?v=1714833928"}},"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: "停產"
}