$product = {"id":7411021283427,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 小圖款-BB8","handle":"iphone-15-plus-mod-nx-magsafe-printable-pc04","description":null,"published_at":"2024-06-11T17:34:13+08:00","created_at":"2024-05-04T22:28:10+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 15 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":41894187532387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479309140067,"product_id":7411021283427,"position":7,"created_at":"2024-05-04T22:28:28+08:00","updated_at":"2024-05-04T22:28:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56273a6e0775c38d392944d17bf9de7895e2a4cf_b84d47bf-048b-418a-b145-504bfa7de4e3.webp?v=1714832908","variant_ids":[41894187532387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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":"MPB0129624-PC04","featured_media":{"alt":null,"id":23884556402787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56273a6e0775c38d392944d17bf9de7895e2a4cf_b84d47bf-048b-418a-b145-504bfa7de4e3.webp?v=1714832908"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894187696227,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479305896035,"product_id":7411021283427,"position":2,"created_at":"2024-05-04T22:28:15+08:00","updated_at":"2024-05-04T22:28:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752bb3b1674c0fd1944303ce2c08e97d7df038db_7a525e32-fd8d-4b86-8486-36e862f3f63e.webp?v=1714832895","variant_ids":[41894187696227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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":"MPB0129657-PC04","featured_media":{"alt":null,"id":23884553125987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752bb3b1674c0fd1944303ce2c08e97d7df038db_7a525e32-fd8d-4b86-8486-36e862f3f63e.webp?v=1714832895"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7028ea2a5943860b3de6ad6d575656456df3f9db_30785314-eba4-48f4-830e-cd6367ca787d.webp?v=1714832892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752bb3b1674c0fd1944303ce2c08e97d7df038db_7a525e32-fd8d-4b86-8486-36e862f3f63e.webp?v=1714832895","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8cca8a44101e7040cbba483c4ed7c9976b086d_e1a8f411-53d8-44b7-b2ce-789afc52060b.webp?v=1714832897","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167abe5702ba61b57a1ef572f24ef1947235c292_8d7c1cec-38c2-409d-b81b-18a904b1624a.webp?v=1714832899","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ebf758549e1edba4d0cfd66c982571a47154763_823cd5ce-d9f3-418f-80bb-dcdac71bb1aa.webp?v=1714832902","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bade93512dc0a5d2039f2d5549c6c3228fe7187_06ddb07e-8f7f-43cb-994d-e5749128ae85.webp?v=1714832906","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56273a6e0775c38d392944d17bf9de7895e2a4cf_b84d47bf-048b-418a-b145-504bfa7de4e3.webp?v=1714832908","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dc5db3940634ec78a04ec43d16f35b9c9cf0fc1_e0d7535f-d8e3-4691-85a4-7c8dc3a169e6.webp?v=1714832911","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7978a23739e11e4833c5f39dd14acf02b088bbc9_98b1ff50-a9bd-4d4e-b52c-c21e4e24af7e.webp?v=1714832913"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7028ea2a5943860b3de6ad6d575656456df3f9db_30785314-eba4-48f4-830e-cd6367ca787d.webp?v=1714832892","options":["color"],"media":[{"alt":null,"id":23884552601699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7028ea2a5943860b3de6ad6d575656456df3f9db_30785314-eba4-48f4-830e-cd6367ca787d.webp?v=1714832892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7028ea2a5943860b3de6ad6d575656456df3f9db_30785314-eba4-48f4-830e-cd6367ca787d.webp?v=1714832892","width":2000},{"alt":null,"id":23884553125987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752bb3b1674c0fd1944303ce2c08e97d7df038db_7a525e32-fd8d-4b86-8486-36e862f3f63e.webp?v=1714832895"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752bb3b1674c0fd1944303ce2c08e97d7df038db_7a525e32-fd8d-4b86-8486-36e862f3f63e.webp?v=1714832895","width":2000},{"alt":null,"id":23884553519203,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8cca8a44101e7040cbba483c4ed7c9976b086d_e1a8f411-53d8-44b7-b2ce-789afc52060b.webp?v=1714832897"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f8cca8a44101e7040cbba483c4ed7c9976b086d_e1a8f411-53d8-44b7-b2ce-789afc52060b.webp?v=1714832897","width":2000},{"alt":null,"id":23884554043491,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167abe5702ba61b57a1ef572f24ef1947235c292_8d7c1cec-38c2-409d-b81b-18a904b1624a.webp?v=1714832899"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/167abe5702ba61b57a1ef572f24ef1947235c292_8d7c1cec-38c2-409d-b81b-18a904b1624a.webp?v=1714832899","width":2000},{"alt":null,"id":23884554698851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ebf758549e1edba4d0cfd66c982571a47154763_823cd5ce-d9f3-418f-80bb-dcdac71bb1aa.webp?v=1714832902"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ebf758549e1edba4d0cfd66c982571a47154763_823cd5ce-d9f3-418f-80bb-dcdac71bb1aa.webp?v=1714832902","width":2000},{"alt":null,"id":23884555616355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bade93512dc0a5d2039f2d5549c6c3228fe7187_06ddb07e-8f7f-43cb-994d-e5749128ae85.webp?v=1714832906"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bade93512dc0a5d2039f2d5549c6c3228fe7187_06ddb07e-8f7f-43cb-994d-e5749128ae85.webp?v=1714832906","width":2000},{"alt":null,"id":23884556402787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56273a6e0775c38d392944d17bf9de7895e2a4cf_b84d47bf-048b-418a-b145-504bfa7de4e3.webp?v=1714832908"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56273a6e0775c38d392944d17bf9de7895e2a4cf_b84d47bf-048b-418a-b145-504bfa7de4e3.webp?v=1714832908","width":2000},{"alt":null,"id":23884557058147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dc5db3940634ec78a04ec43d16f35b9c9cf0fc1_e0d7535f-d8e3-4691-85a4-7c8dc3a169e6.webp?v=1714832911"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9dc5db3940634ec78a04ec43d16f35b9c9cf0fc1_e0d7535f-d8e3-4691-85a4-7c8dc3a169e6.webp?v=1714832911","width":2000},{"alt":null,"id":23884557582435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7978a23739e11e4833c5f39dd14acf02b088bbc9_98b1ff50-a9bd-4d4e-b52c-c21e4e24af7e.webp?v=1714832913"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7978a23739e11e4833c5f39dd14acf02b088bbc9_98b1ff50-a9bd-4d4e-b52c-c21e4e24af7e.webp?v=1714832913","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41894187532387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479309140067,"product_id":7411021283427,"position":7,"created_at":"2024-05-04T22:28:28+08:00","updated_at":"2024-05-04T22:28:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56273a6e0775c38d392944d17bf9de7895e2a4cf_b84d47bf-048b-418a-b145-504bfa7de4e3.webp?v=1714832908","variant_ids":[41894187532387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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":"MPB0129624-PC04","featured_media":{"alt":null,"id":23884556402787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56273a6e0775c38d392944d17bf9de7895e2a4cf_b84d47bf-048b-418a-b145-504bfa7de4e3.webp?v=1714832908"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41894187696227,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"MPB0129657-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479305896035,"product_id":7411021283427,"position":2,"created_at":"2024-05-04T22:28:15+08:00","updated_at":"2024-05-04T22:28:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752bb3b1674c0fd1944303ce2c08e97d7df038db_7a525e32-fd8d-4b86-8486-36e862f3f63e.webp?v=1714832895","variant_ids":[41894187696227]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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":"MPB0129657-PC04","featured_media":{"alt":null,"id":23884553125987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/752bb3b1674c0fd1944303ce2c08e97d7df038db_7a525e32-fd8d-4b86-8486-36e862f3f63e.webp?v=1714832895"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41894187532387,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0129624-PC04","requires_shipping":true,"taxable":true,"featured_image":{"id":31479309140067,"product_id":7411021283427,"position":7,"created_at":"2024-05-04T22:28:28+08:00","updated_at":"2024-05-04T22:28:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56273a6e0775c38d392944d17bf9de7895e2a4cf_b84d47bf-048b-418a-b145-504bfa7de4e3.webp?v=1714832908","variant_ids":[41894187532387]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 15 Plus - 迪士尼-星際大戰 Star Wars - 小圖款-BB8 - 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":"MPB0129624-PC04","featured_media":{"alt":null,"id":23884556402787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56273a6e0775c38d392944d17bf9de7895e2a4cf_b84d47bf-048b-418a-b145-504bfa7de4e3.webp?v=1714832908"}},"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: "停產"
}