$product = {"id":7413956444259,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-fz04","description":null,"published_at":"2024-06-11T17:46:05+08:00","created_at":"2024-05-05T13:49:51+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-shiba-says","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":41902661140579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484317499491,"product_id":7413956444259,"position":6,"created_at":"2024-05-05T13:50:05+08:00","updated_at":"2024-05-05T13:50:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c246670b0de1c2cc247114ece4e453960b85a94_46b2373d-59af-485e-b69d-68c469a4459e.webp?v=1714888205","variant_ids":[41902661140579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-FZ04","featured_media":{"alt":null,"id":23889611194467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c246670b0de1c2cc247114ece4e453960b85a94_46b2373d-59af-485e-b69d-68c469a4459e.webp?v=1714888205"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902661632099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484315533411,"product_id":7413956444259,"position":2,"created_at":"2024-05-05T13:49:56+08:00","updated_at":"2024-05-05T13:49:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a1f8f569e6e5d510ba799ddbc67cf9b678f08_1633f11e-0754-4adc-8452-62c1844eef90.webp?v=1714888196","variant_ids":[41902661632099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-FZ04","featured_media":{"alt":null,"id":23889609195619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a1f8f569e6e5d510ba799ddbc67cf9b678f08_1633f11e-0754-4adc-8452-62c1844eef90.webp?v=1714888196"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/357024103e79ecc58e14ad5832255b6fe4ad6e80_271911d3-958b-4f53-b59d-1f528d5cff0f.webp?v=1714888194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a1f8f569e6e5d510ba799ddbc67cf9b678f08_1633f11e-0754-4adc-8452-62c1844eef90.webp?v=1714888196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a1fdf4514e468d1c68d4425d5c1eedd54f135fa_1a528d54-f97e-4b60-aa5e-3af0caf96914.webp?v=1714888198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb6e3b40f9dcf312370dd3c79688e40e24cf3858_a05a3723-e26c-4ef4-834b-de9ba360bcd3.webp?v=1714888200","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/075a68cf0634e8cea6bc540198d6c2263d61508e_4c89d53a-e17e-42ad-8275-df93cc04a6d5.webp?v=1714888203","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c246670b0de1c2cc247114ece4e453960b85a94_46b2373d-59af-485e-b69d-68c469a4459e.webp?v=1714888205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c5495378fee84f747823dd4029b9d9a258d5c1_dc91ae8d-b299-456a-8bd9-c85a482a3bfc.webp?v=1714888207","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3291bf7df8a4da1fa8152a20d3721cea0a20f6_02892ecd-b579-4f66-8b63-a181f6d14ab5.webp?v=1714888209","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8aec8f44fdae8cda06be138359036b8d2ec1b72_0afcf801-085b-4511-8d96-1825d90c2f9b.webp?v=1714888212","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a3507a3cd1077b9243cea2cb960f686b501a4_b760d7e4-c38e-42a2-a610-2d5a526ab91c.webp?v=1714888214","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947f0bf927533ed3919092787f410e2eefe97288_86c70021-3def-42ac-8bfb-c3dcd15fa3dd.webp?v=1714888216"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/357024103e79ecc58e14ad5832255b6fe4ad6e80_271911d3-958b-4f53-b59d-1f528d5cff0f.webp?v=1714888194","options":["color"],"media":[{"alt":null,"id":23889608704099,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/357024103e79ecc58e14ad5832255b6fe4ad6e80_271911d3-958b-4f53-b59d-1f528d5cff0f.webp?v=1714888194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/357024103e79ecc58e14ad5832255b6fe4ad6e80_271911d3-958b-4f53-b59d-1f528d5cff0f.webp?v=1714888194","width":2000},{"alt":null,"id":23889609195619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a1f8f569e6e5d510ba799ddbc67cf9b678f08_1633f11e-0754-4adc-8452-62c1844eef90.webp?v=1714888196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a1f8f569e6e5d510ba799ddbc67cf9b678f08_1633f11e-0754-4adc-8452-62c1844eef90.webp?v=1714888196","width":2000},{"alt":null,"id":23889609719907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a1fdf4514e468d1c68d4425d5c1eedd54f135fa_1a528d54-f97e-4b60-aa5e-3af0caf96914.webp?v=1714888198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a1fdf4514e468d1c68d4425d5c1eedd54f135fa_1a528d54-f97e-4b60-aa5e-3af0caf96914.webp?v=1714888198","width":2000},{"alt":null,"id":23889610178659,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb6e3b40f9dcf312370dd3c79688e40e24cf3858_a05a3723-e26c-4ef4-834b-de9ba360bcd3.webp?v=1714888200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bb6e3b40f9dcf312370dd3c79688e40e24cf3858_a05a3723-e26c-4ef4-834b-de9ba360bcd3.webp?v=1714888200","width":2000},{"alt":null,"id":23889610702947,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/075a68cf0634e8cea6bc540198d6c2263d61508e_4c89d53a-e17e-42ad-8275-df93cc04a6d5.webp?v=1714888203"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/075a68cf0634e8cea6bc540198d6c2263d61508e_4c89d53a-e17e-42ad-8275-df93cc04a6d5.webp?v=1714888203","width":2000},{"alt":null,"id":23889611194467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c246670b0de1c2cc247114ece4e453960b85a94_46b2373d-59af-485e-b69d-68c469a4459e.webp?v=1714888205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c246670b0de1c2cc247114ece4e453960b85a94_46b2373d-59af-485e-b69d-68c469a4459e.webp?v=1714888205","width":2000},{"alt":null,"id":23889611620451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c5495378fee84f747823dd4029b9d9a258d5c1_dc91ae8d-b299-456a-8bd9-c85a482a3bfc.webp?v=1714888207"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80c5495378fee84f747823dd4029b9d9a258d5c1_dc91ae8d-b299-456a-8bd9-c85a482a3bfc.webp?v=1714888207","width":2000},{"alt":null,"id":23889612144739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3291bf7df8a4da1fa8152a20d3721cea0a20f6_02892ecd-b579-4f66-8b63-a181f6d14ab5.webp?v=1714888209"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c3291bf7df8a4da1fa8152a20d3721cea0a20f6_02892ecd-b579-4f66-8b63-a181f6d14ab5.webp?v=1714888209","width":2000},{"alt":null,"id":23889612603491,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8aec8f44fdae8cda06be138359036b8d2ec1b72_0afcf801-085b-4511-8d96-1825d90c2f9b.webp?v=1714888212"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d8aec8f44fdae8cda06be138359036b8d2ec1b72_0afcf801-085b-4511-8d96-1825d90c2f9b.webp?v=1714888212","width":2000},{"alt":null,"id":23889613095011,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a3507a3cd1077b9243cea2cb960f686b501a4_b760d7e4-c38e-42a2-a610-2d5a526ab91c.webp?v=1714888214"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c73a3507a3cd1077b9243cea2cb960f686b501a4_b760d7e4-c38e-42a2-a610-2d5a526ab91c.webp?v=1714888214","width":2000},{"alt":null,"id":23889613520995,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947f0bf927533ed3919092787f410e2eefe97288_86c70021-3def-42ac-8bfb-c3dcd15fa3dd.webp?v=1714888216"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/947f0bf927533ed3919092787f410e2eefe97288_86c70021-3def-42ac-8bfb-c3dcd15fa3dd.webp?v=1714888216","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902661140579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484317499491,"product_id":7413956444259,"position":6,"created_at":"2024-05-05T13:50:05+08:00","updated_at":"2024-05-05T13:50:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c246670b0de1c2cc247114ece4e453960b85a94_46b2373d-59af-485e-b69d-68c469a4459e.webp?v=1714888205","variant_ids":[41902661140579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-FZ04","featured_media":{"alt":null,"id":23889611194467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c246670b0de1c2cc247114ece4e453960b85a94_46b2373d-59af-485e-b69d-68c469a4459e.webp?v=1714888205"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902661632099,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484315533411,"product_id":7413956444259,"position":2,"created_at":"2024-05-05T13:49:56+08:00","updated_at":"2024-05-05T13:49:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a1f8f569e6e5d510ba799ddbc67cf9b678f08_1633f11e-0754-4adc-8452-62c1844eef90.webp?v=1714888196","variant_ids":[41902661632099]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-FZ04","featured_media":{"alt":null,"id":23889609195619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a1f8f569e6e5d510ba799ddbc67cf9b678f08_1633f11e-0754-4adc-8452-62c1844eef90.webp?v=1714888196"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902661140579,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484317499491,"product_id":7413956444259,"position":6,"created_at":"2024-05-05T13:50:05+08:00","updated_at":"2024-05-05T13:50:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c246670b0de1c2cc247114ece4e453960b85a94_46b2373d-59af-485e-b69d-68c469a4459e.webp?v=1714888205","variant_ids":[41902661140579]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-FZ04","featured_media":{"alt":null,"id":23889611194467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c246670b0de1c2cc247114ece4e453960b85a94_46b2373d-59af-485e-b69d-68c469a4459e.webp?v=1714888205"}},"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: "停產"
}