$product = {"id":7830921576547,"title":"iPhone 14 Plus Mod NX 不只是情人節:愛的方程式 愛的方程式:同心愛(白)","handle":"iphone-14-plus-mod-nx-bumper-original-design-dk05","description":null,"published_at":"2025-07-04T10:01:57+08:00","created_at":"2025-07-03T16:17:05+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":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":43507516473443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116824498275,"product_id":7830921576547,"position":5,"created_at":"2025-07-03T16:17:08+08:00","updated_at":"2025-07-03T16:17:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/536fda9f42595702f57b0fa438e182b3898f247e.webp?v=1751530630","variant_ids":[43507516473443]},"available":true,"name":"iPhone 14 Plus Mod NX 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-DK05","featured_media":{"alt":null,"id":25769665658979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/536fda9f42595702f57b0fa438e182b3898f247e.webp?v=1751530630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e75c772b801b3743dc7768b60205bfe7ecfa37.webp?v=1751530628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113bdee9c0a0acd31351ba1d1b8876ebe357e5b4.webp?v=1751530629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/831503ac8848d768223f103fc773de6a7d248751.webp?v=1751530629","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b1803c74f3e1292230edfbba4e0c6c5a51d80e.webp?v=1751530630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/536fda9f42595702f57b0fa438e182b3898f247e.webp?v=1751530630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c179e123fe153182e5a452b72f9cff39179f7455.webp?v=1751530631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43fd6cf9d806b7498d9a4fa8de6daf8e8037c920.webp?v=1751530631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d36ddf706884a4434d3fdf4a0ad96752626b9adc.webp?v=1751530632","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/596481b10e83e14e02fc2b99c123c6b11829a996.webp?v=1751530633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ef3d2688eb3013da0225543a976e71fe36661a.webp?v=1751530633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b674373146c0bf8c96e226803aa9589de23c938e.webp?v=1751530634","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477d0ec65c439fc4954cbf9e5c09f4113e52292a.webp?v=1751530635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6c4cf8fcf11e812d588b39237bc7cde2915e12.webp?v=1751530635"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e75c772b801b3743dc7768b60205bfe7ecfa37.webp?v=1751530628","options":["color"],"media":[{"alt":null,"id":25769664905315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e75c772b801b3743dc7768b60205bfe7ecfa37.webp?v=1751530628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e75c772b801b3743dc7768b60205bfe7ecfa37.webp?v=1751530628","width":2000},{"alt":null,"id":25769665167459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113bdee9c0a0acd31351ba1d1b8876ebe357e5b4.webp?v=1751530629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113bdee9c0a0acd31351ba1d1b8876ebe357e5b4.webp?v=1751530629","width":2000},{"alt":null,"id":25769665364067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/831503ac8848d768223f103fc773de6a7d248751.webp?v=1751530629"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/831503ac8848d768223f103fc773de6a7d248751.webp?v=1751530629","width":2000},{"alt":null,"id":25769665462371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b1803c74f3e1292230edfbba4e0c6c5a51d80e.webp?v=1751530630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/66b1803c74f3e1292230edfbba4e0c6c5a51d80e.webp?v=1751530630","width":2000},{"alt":null,"id":25769665658979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/536fda9f42595702f57b0fa438e182b3898f247e.webp?v=1751530630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/536fda9f42595702f57b0fa438e182b3898f247e.webp?v=1751530630","width":2000},{"alt":null,"id":25769665822819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c179e123fe153182e5a452b72f9cff39179f7455.webp?v=1751530631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c179e123fe153182e5a452b72f9cff39179f7455.webp?v=1751530631","width":2000},{"alt":null,"id":25769665953891,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43fd6cf9d806b7498d9a4fa8de6daf8e8037c920.webp?v=1751530631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43fd6cf9d806b7498d9a4fa8de6daf8e8037c920.webp?v=1751530631","width":2000},{"alt":null,"id":25769666117731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d36ddf706884a4434d3fdf4a0ad96752626b9adc.webp?v=1751530632"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d36ddf706884a4434d3fdf4a0ad96752626b9adc.webp?v=1751530632","width":2000},{"alt":null,"id":25769666281571,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/596481b10e83e14e02fc2b99c123c6b11829a996.webp?v=1751530633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/596481b10e83e14e02fc2b99c123c6b11829a996.webp?v=1751530633","width":2000},{"alt":null,"id":25769666510947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ef3d2688eb3013da0225543a976e71fe36661a.webp?v=1751530633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9ef3d2688eb3013da0225543a976e71fe36661a.webp?v=1751530633","width":2000},{"alt":null,"id":25769666740323,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b674373146c0bf8c96e226803aa9589de23c938e.webp?v=1751530634"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b674373146c0bf8c96e226803aa9589de23c938e.webp?v=1751530634","width":2000},{"alt":null,"id":25769667035235,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477d0ec65c439fc4954cbf9e5c09f4113e52292a.webp?v=1751530635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/477d0ec65c439fc4954cbf9e5c09f4113e52292a.webp?v=1751530635","width":2000},{"alt":null,"id":25769667199075,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6c4cf8fcf11e812d588b39237bc7cde2915e12.webp?v=1751530635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b6c4cf8fcf11e812d588b39237bc7cde2915e12.webp?v=1751530635","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43507516473443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116824498275,"product_id":7830921576547,"position":5,"created_at":"2025-07-03T16:17:08+08:00","updated_at":"2025-07-03T16:17:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/536fda9f42595702f57b0fa438e182b3898f247e.webp?v=1751530630","variant_ids":[43507516473443]},"available":true,"name":"iPhone 14 Plus Mod NX 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-DK05","featured_media":{"alt":null,"id":25769665658979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/536fda9f42595702f57b0fa438e182b3898f247e.webp?v=1751530630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43507516473443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-DK05","requires_shipping":true,"taxable":true,"featured_image":{"id":34116824498275,"product_id":7830921576547,"position":5,"created_at":"2025-07-03T16:17:08+08:00","updated_at":"2025-07-03T16:17:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/536fda9f42595702f57b0fa438e182b3898f247e.webp?v=1751530630","variant_ids":[43507516473443]},"available":true,"name":"iPhone 14 Plus Mod NX 不只是情人節:愛的方程式 愛的方程式:同心愛(白) - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-DK05","featured_media":{"alt":null,"id":25769665658979,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/536fda9f42595702f57b0fa438e182b3898f247e.webp?v=1751530630"}},"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: "停產"
}