$product = {"id":7769573392483,"title":"iPhone 14 Plus Mod NX ilovedoodle White Cat Flowers - 白貓花朵","handle":"iphone-14-plus-mod-nx-printable-xf49","description":null,"published_at":"2025-07-16T17:22:19+08:00","created_at":"2025-04-15T17:56:08+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-I Love Doodle","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ilovedoodle","device-iPhone 14 Plus","merge","reseller-ilovedoodle"],"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":43302991593571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197064745059,"product_id":7769573392483,"position":9,"created_at":"2025-07-16T14:57:47+08:00","updated_at":"2025-07-16T14:57:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f649fd7f2cb469c9fed39825c845c648dd621094_396428d6-4b53-47a6-b2fd-e94fa1e0efb2.webp?v=1752649069","variant_ids":[43302991593571]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25829695553635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f649fd7f2cb469c9fed39825c845c648dd621094_396428d6-4b53-47a6-b2fd-e94fa1e0efb2.webp?v=1752649069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f041e91f2ef8b59b5b02ee1ce9930b4f0a8aecc_4a5654e2-63bd-496c-bc21-90b10601ae7c.webp?v=1744710975","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4237193bc64b5a8e0eb35a03ed5c3c9a9d74145f_f58b3497-857e-4d33-90d1-9e067a9a113f.webp?v=1752649065","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea70c62b51932564377ec4b77902ae4076fa352_79bf3df5-db26-49d8-8ebd-8d202c3bc977.webp?v=1752649066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f2c5d68e2a779fc53b01b44ac6c7dd39dd2dc_08973a0a-98aa-4c21-9e9d-2c2f3f44a77c.webp?v=1752649066","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d194d6c8307c891d250e6740d3f06e28d46a619_dac30470-e856-489e-9f68-4262dcf8d541.webp?v=1752649067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e3d6042cf7a1ceb9a003a8b0f669e90a4fd54c_e4f8233d-1d2f-4fec-9dca-14952128d371.webp?v=1752649067","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7062685e4755385941a303c1d59359b0a6c088fd_022a2d95-a62d-4e44-a2d3-21c009992261.webp?v=1752649068","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf15cf0108e64ea3afdaf426fe78e0822fe22bac_c0dde09b-ce6c-457c-b309-2836f25a13a6.webp?v=1752649069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f649fd7f2cb469c9fed39825c845c648dd621094_396428d6-4b53-47a6-b2fd-e94fa1e0efb2.webp?v=1752649069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a553cc708f06317fd86f2b78151d1729f2476d7e_688dc7be-36fa-4972-b99b-08a05ff2c872.webp?v=1752649069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e9c1035cad27f3f18a733095bc4a940cf3c4798_884fbb4e-62ad-4c8d-8e12-a492d350595c.webp?v=1752649070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a937293ad7bf05277d16917006aa99b5f5969b53_c74bb8ae-59af-4a1c-9c87-0cb78b1dba78.webp?v=1752649070","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c53ac656d31ab8e1b831c0040a62c10a1a814d_0b9007ee-764c-4b26-82d2-5d22d2f2a6dc.webp?v=1752649071","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444cee54a6098637181942c9b4321f249f5a4a1f_bf4d7187-79bc-40a7-a9b7-44e1b6ffa576.webp?v=1752649072"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f041e91f2ef8b59b5b02ee1ce9930b4f0a8aecc_4a5654e2-63bd-496c-bc21-90b10601ae7c.webp?v=1744710975","options":["color"],"media":[{"alt":null,"id":25495846682723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f041e91f2ef8b59b5b02ee1ce9930b4f0a8aecc_4a5654e2-63bd-496c-bc21-90b10601ae7c.webp?v=1744710975"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f041e91f2ef8b59b5b02ee1ce9930b4f0a8aecc_4a5654e2-63bd-496c-bc21-90b10601ae7c.webp?v=1744710975","width":2000},{"alt":null,"id":25829693587555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4237193bc64b5a8e0eb35a03ed5c3c9a9d74145f_f58b3497-857e-4d33-90d1-9e067a9a113f.webp?v=1752649065"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4237193bc64b5a8e0eb35a03ed5c3c9a9d74145f_f58b3497-857e-4d33-90d1-9e067a9a113f.webp?v=1752649065","width":2000},{"alt":null,"id":25829693882467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea70c62b51932564377ec4b77902ae4076fa352_79bf3df5-db26-49d8-8ebd-8d202c3bc977.webp?v=1752649066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8ea70c62b51932564377ec4b77902ae4076fa352_79bf3df5-db26-49d8-8ebd-8d202c3bc977.webp?v=1752649066","width":2000},{"alt":null,"id":25829694144611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f2c5d68e2a779fc53b01b44ac6c7dd39dd2dc_08973a0a-98aa-4c21-9e9d-2c2f3f44a77c.webp?v=1752649066"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c2f2c5d68e2a779fc53b01b44ac6c7dd39dd2dc_08973a0a-98aa-4c21-9e9d-2c2f3f44a77c.webp?v=1752649066","width":2000},{"alt":null,"id":25829694406755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d194d6c8307c891d250e6740d3f06e28d46a619_dac30470-e856-489e-9f68-4262dcf8d541.webp?v=1752649067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d194d6c8307c891d250e6740d3f06e28d46a619_dac30470-e856-489e-9f68-4262dcf8d541.webp?v=1752649067","width":2000},{"alt":null,"id":25829694636131,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e3d6042cf7a1ceb9a003a8b0f669e90a4fd54c_e4f8233d-1d2f-4fec-9dca-14952128d371.webp?v=1752649067"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b4e3d6042cf7a1ceb9a003a8b0f669e90a4fd54c_e4f8233d-1d2f-4fec-9dca-14952128d371.webp?v=1752649067","width":2000},{"alt":null,"id":25829694832739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7062685e4755385941a303c1d59359b0a6c088fd_022a2d95-a62d-4e44-a2d3-21c009992261.webp?v=1752649068"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7062685e4755385941a303c1d59359b0a6c088fd_022a2d95-a62d-4e44-a2d3-21c009992261.webp?v=1752649068","width":2000},{"alt":null,"id":25829695258723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf15cf0108e64ea3afdaf426fe78e0822fe22bac_c0dde09b-ce6c-457c-b309-2836f25a13a6.webp?v=1752649069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf15cf0108e64ea3afdaf426fe78e0822fe22bac_c0dde09b-ce6c-457c-b309-2836f25a13a6.webp?v=1752649069","width":2000},{"alt":null,"id":25829695553635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f649fd7f2cb469c9fed39825c845c648dd621094_396428d6-4b53-47a6-b2fd-e94fa1e0efb2.webp?v=1752649069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f649fd7f2cb469c9fed39825c845c648dd621094_396428d6-4b53-47a6-b2fd-e94fa1e0efb2.webp?v=1752649069","width":2000},{"alt":null,"id":25829695946851,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a553cc708f06317fd86f2b78151d1729f2476d7e_688dc7be-36fa-4972-b99b-08a05ff2c872.webp?v=1752649069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a553cc708f06317fd86f2b78151d1729f2476d7e_688dc7be-36fa-4972-b99b-08a05ff2c872.webp?v=1752649069","width":2000},{"alt":null,"id":25829696143459,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e9c1035cad27f3f18a733095bc4a940cf3c4798_884fbb4e-62ad-4c8d-8e12-a492d350595c.webp?v=1752649070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e9c1035cad27f3f18a733095bc4a940cf3c4798_884fbb4e-62ad-4c8d-8e12-a492d350595c.webp?v=1752649070","width":2000},{"alt":null,"id":25829696372835,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a937293ad7bf05277d16917006aa99b5f5969b53_c74bb8ae-59af-4a1c-9c87-0cb78b1dba78.webp?v=1752649070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a937293ad7bf05277d16917006aa99b5f5969b53_c74bb8ae-59af-4a1c-9c87-0cb78b1dba78.webp?v=1752649070","width":2000},{"alt":null,"id":25829696569443,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c53ac656d31ab8e1b831c0040a62c10a1a814d_0b9007ee-764c-4b26-82d2-5d22d2f2a6dc.webp?v=1752649071"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c53ac656d31ab8e1b831c0040a62c10a1a814d_0b9007ee-764c-4b26-82d2-5d22d2f2a6dc.webp?v=1752649071","width":2000},{"alt":null,"id":25829696766051,"position":14,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444cee54a6098637181942c9b4321f249f5a4a1f_bf4d7187-79bc-40a7-a9b7-44e1b6ffa576.webp?v=1752649072"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/444cee54a6098637181942c9b4321f249f5a4a1f_bf4d7187-79bc-40a7-a9b7-44e1b6ffa576.webp?v=1752649072","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43302991593571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197064745059,"product_id":7769573392483,"position":9,"created_at":"2025-07-16T14:57:47+08:00","updated_at":"2025-07-16T14:57:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f649fd7f2cb469c9fed39825c845c648dd621094_396428d6-4b53-47a6-b2fd-e94fa1e0efb2.webp?v=1752649069","variant_ids":[43302991593571]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25829695553635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f649fd7f2cb469c9fed39825c845c648dd621094_396428d6-4b53-47a6-b2fd-e94fa1e0efb2.webp?v=1752649069"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43302991593571,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XF49","requires_shipping":true,"taxable":true,"featured_image":{"id":34197064745059,"product_id":7769573392483,"position":9,"created_at":"2025-07-16T14:57:47+08:00","updated_at":"2025-07-16T14:57:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f649fd7f2cb469c9fed39825c845c648dd621094_396428d6-4b53-47a6-b2fd-e94fa1e0efb2.webp?v=1752649069","variant_ids":[43302991593571]},"available":true,"name":"iPhone 14 Plus Mod NX ilovedoodle White Cat Flowers - 白貓花朵 - 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-XF49","featured_media":{"alt":null,"id":25829695553635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f649fd7f2cb469c9fed39825c845c648dd621094_396428d6-4b53-47a6-b2fd-e94fa1e0efb2.webp?v=1752649069"}},"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: "停產"
}