$product = {"id":7830932062307,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心動頻率(紅)","handle":"iphone-14-plus-mod-nx-magsafe-bumper-original-design-dk03","description":null,"published_at":"2025-07-04T09:58:10+08:00","created_at":"2025-07-03T16:18:41+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer-valentines-day-collection","device-iPhone 14 Plus","discountable-item","merge","original-design","reseller-valentines-day-collection"],"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":43507552714851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116904484963,"product_id":7830932062307,"position":5,"created_at":"2025-07-03T16:18:45+08:00","updated_at":"2025-07-03T16:18:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6c2208e6edc3c3f3d41f65a27605fca17034c.webp?v=1751530727","variant_ids":[43507552714851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心動頻率(紅) - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-DK03","featured_media":{"alt":null,"id":25769707995235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6c2208e6edc3c3f3d41f65a27605fca17034c.webp?v=1751530727"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e93e6f8efa94152777308e0f19edfacdd4013c93.webp?v=1751530724","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde91d67454ae5b1c8d91a1ca5ee726e60c2d31c.webp?v=1751530725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645a720c8e1ea209dab92c23aa24b1056feb69d7.webp?v=1751530725","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f248b59344fa4bc8e7e28728565324cc2c10c114.webp?v=1751530726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6c2208e6edc3c3f3d41f65a27605fca17034c.webp?v=1751530727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1f95bf1aa2d33f1c9b52323fb0df2c290ab137.webp?v=1751530727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72303d4bc580ed6ca0bb0f5a10fec313fe36cf2e.webp?v=1751530728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340fa56e02f3555ea82fe320a142783b7da35cbb.webp?v=1751530728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8555d3582493931d1595279f94f85befe8f92b1.webp?v=1751530729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1a3d8d4866e8cbbd5eae4a14c39285d372732b9.webp?v=1751530729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ad88b9afd266492ced5c55ad594e64be37ed70.webp?v=1751530729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c020db7aa801df62b44ef81fdb3430174b4614.webp?v=1751530730","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad23b17e17eed92d741ddea776289d2cca4e8195.webp?v=1751530731"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e93e6f8efa94152777308e0f19edfacdd4013c93.webp?v=1751530724","options":["color"],"media":[{"alt":null,"id":25769707012195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e93e6f8efa94152777308e0f19edfacdd4013c93.webp?v=1751530724"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e93e6f8efa94152777308e0f19edfacdd4013c93.webp?v=1751530724","width":2000},{"alt":null,"id":25769707274339,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde91d67454ae5b1c8d91a1ca5ee726e60c2d31c.webp?v=1751530725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cde91d67454ae5b1c8d91a1ca5ee726e60c2d31c.webp?v=1751530725","width":2000},{"alt":null,"id":25769707536483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645a720c8e1ea209dab92c23aa24b1056feb69d7.webp?v=1751530725"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/645a720c8e1ea209dab92c23aa24b1056feb69d7.webp?v=1751530725","width":2000},{"alt":null,"id":25769707765859,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f248b59344fa4bc8e7e28728565324cc2c10c114.webp?v=1751530726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f248b59344fa4bc8e7e28728565324cc2c10c114.webp?v=1751530726","width":2000},{"alt":null,"id":25769707995235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6c2208e6edc3c3f3d41f65a27605fca17034c.webp?v=1751530727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6c2208e6edc3c3f3d41f65a27605fca17034c.webp?v=1751530727","width":2000},{"alt":null,"id":25769708585059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1f95bf1aa2d33f1c9b52323fb0df2c290ab137.webp?v=1751530727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1f95bf1aa2d33f1c9b52323fb0df2c290ab137.webp?v=1751530727","width":2000},{"alt":null,"id":25769709043811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72303d4bc580ed6ca0bb0f5a10fec313fe36cf2e.webp?v=1751530728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72303d4bc580ed6ca0bb0f5a10fec313fe36cf2e.webp?v=1751530728","width":2000},{"alt":null,"id":25769709207651,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340fa56e02f3555ea82fe320a142783b7da35cbb.webp?v=1751530728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/340fa56e02f3555ea82fe320a142783b7da35cbb.webp?v=1751530728","width":2000},{"alt":null,"id":25769709371491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8555d3582493931d1595279f94f85befe8f92b1.webp?v=1751530729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8555d3582493931d1595279f94f85befe8f92b1.webp?v=1751530729","width":2000},{"alt":null,"id":25769709502563,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1a3d8d4866e8cbbd5eae4a14c39285d372732b9.webp?v=1751530729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1a3d8d4866e8cbbd5eae4a14c39285d372732b9.webp?v=1751530729","width":2000},{"alt":null,"id":25769709600867,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ad88b9afd266492ced5c55ad594e64be37ed70.webp?v=1751530729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ad88b9afd266492ced5c55ad594e64be37ed70.webp?v=1751530729","width":2000},{"alt":null,"id":25769709961315,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c020db7aa801df62b44ef81fdb3430174b4614.webp?v=1751530730"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c020db7aa801df62b44ef81fdb3430174b4614.webp?v=1751530730","width":2000},{"alt":null,"id":25769710026851,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad23b17e17eed92d741ddea776289d2cca4e8195.webp?v=1751530731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad23b17e17eed92d741ddea776289d2cca4e8195.webp?v=1751530731","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43507552714851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116904484963,"product_id":7830932062307,"position":5,"created_at":"2025-07-03T16:18:45+08:00","updated_at":"2025-07-03T16:18:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6c2208e6edc3c3f3d41f65a27605fca17034c.webp?v=1751530727","variant_ids":[43507552714851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心動頻率(紅) - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-DK03","featured_media":{"alt":null,"id":25769707995235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6c2208e6edc3c3f3d41f65a27605fca17034c.webp?v=1751530727"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43507552714851,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-DK03","requires_shipping":true,"taxable":true,"featured_image":{"id":34116904484963,"product_id":7830932062307,"position":5,"created_at":"2025-07-03T16:18:45+08:00","updated_at":"2025-07-03T16:18:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6c2208e6edc3c3f3d41f65a27605fca17034c.webp?v=1751530727","variant_ids":[43507552714851]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 不只是情人節:愛的方程式 愛的方程式:心動頻率(紅) - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-DK03","featured_media":{"alt":null,"id":25769707995235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ae6c2208e6edc3c3f3d41f65a27605fca17034c.webp?v=1751530727"}},"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: "停產"
}