$product = {"id":7769446121571,"title":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Hug One Line - 愛與擁抱","handle":"iphone-8-mod-nx-printable-xf55","description":null,"published_at":"2025-07-16T17:35:32+08:00","created_at":"2025-04-15T16:14:35+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 8","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":43302386368611,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197589164131,"product_id":7769446121571,"position":2,"created_at":"2025-07-16T15:09:46+08:00","updated_at":"2025-07-16T15:09:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd845fbb9a77fc13911dada74ab74ae54be5d07_e6f427bd-2e21-4ecb-b2fb-ff324f34fad0.webp?v=1752649788","variant_ids":[43302386368611]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF55","featured_media":{"alt":null,"id":25829979553891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd845fbb9a77fc13911dada74ab74ae54be5d07_e6f427bd-2e21-4ecb-b2fb-ff324f34fad0.webp?v=1752649788"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c854f15cf7368cd57539a2d5f3ddf8109da8b1e.webp?v=1744704882","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd845fbb9a77fc13911dada74ab74ae54be5d07_e6f427bd-2e21-4ecb-b2fb-ff324f34fad0.webp?v=1752649788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ea6cc4721442688e2bf3de9c444777c12ff9fc_14b83747-5525-4566-8456-5ddd71099d61.webp?v=1752649788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b44792fbdb8788c92231c5f63ee95b8c2773b79e_da2e104e-2920-445b-865e-9169d096b9f2.webp?v=1752649788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15a25ddbbf6f91b13b42af163d07c1eb8b7eb8f4_bce54a8c-1c94-4d81-a5e4-99bff70a0117.webp?v=1752649789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c800d5f0c1576e22927844374a7b51895734403_b36b67e0-78f2-4e25-bb79-afdf5bb007ef.webp?v=1752649790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4670974603c8d8791d7781a3f311f127f51ef25c_222740a9-e23d-471a-8ac5-f09bf5f4798d.webp?v=1752649790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcf5b715022660130fac037f22e535f55b59f582_b48a3a2f-7a07-479d-9686-3ba3163d2e7c.webp?v=1752649791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d24f464ada07b566923102d4b7ef8a5e99ffd1c_fc4dafc0-c85f-4c08-a45c-cee971b3ac41.webp?v=1752649791"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c854f15cf7368cd57539a2d5f3ddf8109da8b1e.webp?v=1744704882","options":["color"],"media":[{"alt":null,"id":25495458414691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c854f15cf7368cd57539a2d5f3ddf8109da8b1e.webp?v=1744704882"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c854f15cf7368cd57539a2d5f3ddf8109da8b1e.webp?v=1744704882","width":2000},{"alt":null,"id":25829979553891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd845fbb9a77fc13911dada74ab74ae54be5d07_e6f427bd-2e21-4ecb-b2fb-ff324f34fad0.webp?v=1752649788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd845fbb9a77fc13911dada74ab74ae54be5d07_e6f427bd-2e21-4ecb-b2fb-ff324f34fad0.webp?v=1752649788","width":2000},{"alt":null,"id":25829979914339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ea6cc4721442688e2bf3de9c444777c12ff9fc_14b83747-5525-4566-8456-5ddd71099d61.webp?v=1752649788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/20ea6cc4721442688e2bf3de9c444777c12ff9fc_14b83747-5525-4566-8456-5ddd71099d61.webp?v=1752649788","width":2000},{"alt":null,"id":25829980209251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b44792fbdb8788c92231c5f63ee95b8c2773b79e_da2e104e-2920-445b-865e-9169d096b9f2.webp?v=1752649788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b44792fbdb8788c92231c5f63ee95b8c2773b79e_da2e104e-2920-445b-865e-9169d096b9f2.webp?v=1752649788","width":2000},{"alt":null,"id":25829980405859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15a25ddbbf6f91b13b42af163d07c1eb8b7eb8f4_bce54a8c-1c94-4d81-a5e4-99bff70a0117.webp?v=1752649789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15a25ddbbf6f91b13b42af163d07c1eb8b7eb8f4_bce54a8c-1c94-4d81-a5e4-99bff70a0117.webp?v=1752649789","width":2000},{"alt":null,"id":25829980700771,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c800d5f0c1576e22927844374a7b51895734403_b36b67e0-78f2-4e25-bb79-afdf5bb007ef.webp?v=1752649790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c800d5f0c1576e22927844374a7b51895734403_b36b67e0-78f2-4e25-bb79-afdf5bb007ef.webp?v=1752649790","width":2000},{"alt":null,"id":25829980962915,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4670974603c8d8791d7781a3f311f127f51ef25c_222740a9-e23d-471a-8ac5-f09bf5f4798d.webp?v=1752649790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4670974603c8d8791d7781a3f311f127f51ef25c_222740a9-e23d-471a-8ac5-f09bf5f4798d.webp?v=1752649790","width":2000},{"alt":null,"id":25829981225059,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcf5b715022660130fac037f22e535f55b59f582_b48a3a2f-7a07-479d-9686-3ba3163d2e7c.webp?v=1752649791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcf5b715022660130fac037f22e535f55b59f582_b48a3a2f-7a07-479d-9686-3ba3163d2e7c.webp?v=1752649791","width":2000},{"alt":null,"id":25829981454435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d24f464ada07b566923102d4b7ef8a5e99ffd1c_fc4dafc0-c85f-4c08-a45c-cee971b3ac41.webp?v=1752649791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7d24f464ada07b566923102d4b7ef8a5e99ffd1c_fc4dafc0-c85f-4c08-a45c-cee971b3ac41.webp?v=1752649791","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43302386368611,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197589164131,"product_id":7769446121571,"position":2,"created_at":"2025-07-16T15:09:46+08:00","updated_at":"2025-07-16T15:09:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd845fbb9a77fc13911dada74ab74ae54be5d07_e6f427bd-2e21-4ecb-b2fb-ff324f34fad0.webp?v=1752649788","variant_ids":[43302386368611]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF55","featured_media":{"alt":null,"id":25829979553891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd845fbb9a77fc13911dada74ab74ae54be5d07_e6f427bd-2e21-4ecb-b2fb-ff324f34fad0.webp?v=1752649788"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43302386368611,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0105424-XF55","requires_shipping":true,"taxable":true,"featured_image":{"id":34197589164131,"product_id":7769446121571,"position":2,"created_at":"2025-07-16T15:09:46+08:00","updated_at":"2025-07-16T15:09:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd845fbb9a77fc13911dada74ab74ae54be5d07_e6f427bd-2e21-4ecb-b2fb-ff324f34fad0.webp?v=1752649788","variant_ids":[43302386368611]},"available":true,"name":"iPhone 7 \/ 8 \/ SE \/ SE2 Mod NX ilovedoodle Hug One Line - 愛與擁抱 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0105424-XF55","featured_media":{"alt":null,"id":25829979553891,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdd845fbb9a77fc13911dada74ab74ae54be5d07_e6f427bd-2e21-4ecb-b2fb-ff324f34fad0.webp?v=1752649788"}},"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: "停產"
}