$product = {"id":7415025303651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 熱帶音樂系列-慶祝","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-yf04","description":null,"published_at":"2024-06-11T17:55:57+08:00","created_at":"2024-05-05T20:08:43+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區史迪奇","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-stitch","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-stitch","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":41911065509987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31487960449123,"product_id":7415025303651,"position":6,"created_at":"2024-05-05T20:08:59+08:00","updated_at":"2024-05-05T20:08:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42b802aac4f3938e4d92cd4a1abdaf2c17efffd_a7bb7766-d1d7-460a-954b-e9cc1272b5e8.webp?v=1714910939","variant_ids":[41911065509987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 熱帶音樂系列-慶祝 - 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":"MPB0118724-YF04","featured_media":{"alt":null,"id":23893304672355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42b802aac4f3938e4d92cd4a1abdaf2c17efffd_a7bb7766-d1d7-460a-954b-e9cc1272b5e8.webp?v=1714910939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c048862671cdfca9ca019da7582b112f738bdeb6_0ed40309-634b-4731-aeaa-73020ed8c84f.webp?v=1714910926","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/126294861c862a3fa967dd17ba37c2d0b457dd73_229aa26a-d20a-4c13-921e-b88813835b0d.webp?v=1714910929","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d32a0e3a00af88d8939915240dff80bdab04ccc3_dc31d83a-fad2-4cf7-8569-1e34c95e8e12.webp?v=1714910932","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87595173e63dcb18fe133171eefc6d36e3d53a63_278b17de-a62f-4607-a925-3ca1d9c45bc0.webp?v=1714910934","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4133c635407f8e2ecd48a64cc608dc2282b119c8_af4a8dae-5479-4f24-8d9a-630620425866.webp?v=1714910937","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42b802aac4f3938e4d92cd4a1abdaf2c17efffd_a7bb7766-d1d7-460a-954b-e9cc1272b5e8.webp?v=1714910939","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f3b6ccb376369d09b54bc220f184bcad010d3f4_34b42dd2-eb79-44b2-bf20-1af82ca05497.webp?v=1714910942","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c500cf0b1bebf4ab0c1e54ad664b1eeeac50fa52_3f2665f5-98a4-4541-8760-2b8c3567eef8.webp?v=1714910944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641ebd0013c5fbfd2b09e1570681bd2c20d5de54_3dc48133-dbc4-4d6d-832c-758ccec3353f.webp?v=1714910947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6229c1c5c9dd12cae9b2b5a5fca2682adb7b3177_02ab8f0d-bd1b-4072-a75e-7f31ac6f108e.webp?v=1714910949"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c048862671cdfca9ca019da7582b112f738bdeb6_0ed40309-634b-4731-aeaa-73020ed8c84f.webp?v=1714910926","options":["color"],"media":[{"alt":null,"id":23893301297251,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c048862671cdfca9ca019da7582b112f738bdeb6_0ed40309-634b-4731-aeaa-73020ed8c84f.webp?v=1714910926"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c048862671cdfca9ca019da7582b112f738bdeb6_0ed40309-634b-4731-aeaa-73020ed8c84f.webp?v=1714910926","width":2000},{"alt":null,"id":23893301723235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/126294861c862a3fa967dd17ba37c2d0b457dd73_229aa26a-d20a-4c13-921e-b88813835b0d.webp?v=1714910929"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/126294861c862a3fa967dd17ba37c2d0b457dd73_229aa26a-d20a-4c13-921e-b88813835b0d.webp?v=1714910929","width":2000},{"alt":null,"id":23893302673507,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d32a0e3a00af88d8939915240dff80bdab04ccc3_dc31d83a-fad2-4cf7-8569-1e34c95e8e12.webp?v=1714910932"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d32a0e3a00af88d8939915240dff80bdab04ccc3_dc31d83a-fad2-4cf7-8569-1e34c95e8e12.webp?v=1714910932","width":2000},{"alt":null,"id":23893303427171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87595173e63dcb18fe133171eefc6d36e3d53a63_278b17de-a62f-4607-a925-3ca1d9c45bc0.webp?v=1714910934"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87595173e63dcb18fe133171eefc6d36e3d53a63_278b17de-a62f-4607-a925-3ca1d9c45bc0.webp?v=1714910934","width":2000},{"alt":null,"id":23893303918691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4133c635407f8e2ecd48a64cc608dc2282b119c8_af4a8dae-5479-4f24-8d9a-630620425866.webp?v=1714910937"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4133c635407f8e2ecd48a64cc608dc2282b119c8_af4a8dae-5479-4f24-8d9a-630620425866.webp?v=1714910937","width":2000},{"alt":null,"id":23893304672355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42b802aac4f3938e4d92cd4a1abdaf2c17efffd_a7bb7766-d1d7-460a-954b-e9cc1272b5e8.webp?v=1714910939"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42b802aac4f3938e4d92cd4a1abdaf2c17efffd_a7bb7766-d1d7-460a-954b-e9cc1272b5e8.webp?v=1714910939","width":2000},{"alt":null,"id":23893305491555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f3b6ccb376369d09b54bc220f184bcad010d3f4_34b42dd2-eb79-44b2-bf20-1af82ca05497.webp?v=1714910942"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f3b6ccb376369d09b54bc220f184bcad010d3f4_34b42dd2-eb79-44b2-bf20-1af82ca05497.webp?v=1714910942","width":2000},{"alt":null,"id":23893305884771,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c500cf0b1bebf4ab0c1e54ad664b1eeeac50fa52_3f2665f5-98a4-4541-8760-2b8c3567eef8.webp?v=1714910944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c500cf0b1bebf4ab0c1e54ad664b1eeeac50fa52_3f2665f5-98a4-4541-8760-2b8c3567eef8.webp?v=1714910944","width":2000},{"alt":null,"id":23893306474595,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641ebd0013c5fbfd2b09e1570681bd2c20d5de54_3dc48133-dbc4-4d6d-832c-758ccec3353f.webp?v=1714910947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/641ebd0013c5fbfd2b09e1570681bd2c20d5de54_3dc48133-dbc4-4d6d-832c-758ccec3353f.webp?v=1714910947","width":2000},{"alt":null,"id":23893306802275,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6229c1c5c9dd12cae9b2b5a5fca2682adb7b3177_02ab8f0d-bd1b-4072-a75e-7f31ac6f108e.webp?v=1714910949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6229c1c5c9dd12cae9b2b5a5fca2682adb7b3177_02ab8f0d-bd1b-4072-a75e-7f31ac6f108e.webp?v=1714910949","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911065509987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31487960449123,"product_id":7415025303651,"position":6,"created_at":"2024-05-05T20:08:59+08:00","updated_at":"2024-05-05T20:08:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42b802aac4f3938e4d92cd4a1abdaf2c17efffd_a7bb7766-d1d7-460a-954b-e9cc1272b5e8.webp?v=1714910939","variant_ids":[41911065509987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 熱帶音樂系列-慶祝 - 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":"MPB0118724-YF04","featured_media":{"alt":null,"id":23893304672355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42b802aac4f3938e4d92cd4a1abdaf2c17efffd_a7bb7766-d1d7-460a-954b-e9cc1272b5e8.webp?v=1714910939"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911065509987,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-YF04","requires_shipping":true,"taxable":true,"featured_image":{"id":31487960449123,"product_id":7415025303651,"position":6,"created_at":"2024-05-05T20:08:59+08:00","updated_at":"2024-05-05T20:08:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42b802aac4f3938e4d92cd4a1abdaf2c17efffd_a7bb7766-d1d7-460a-954b-e9cc1272b5e8.webp?v=1714910939","variant_ids":[41911065509987]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 史迪奇 - 熱帶音樂系列-慶祝 - 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":"MPB0118724-YF04","featured_media":{"alt":null,"id":23893304672355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c42b802aac4f3938e4d92cd4a1abdaf2c17efffd_a7bb7766-d1d7-460a-954b-e9cc1272b5e8.webp?v=1714910939"}},"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: "停產"
}