$product = {"id":7414664560739,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 史迪奇 - 夏威夷系列-每天搞怪","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-yf06","description":null,"published_at":"2024-06-11T17:52:56+08:00","created_at":"2024-05-05T14:36:39+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 13 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":41908150108259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485981884515,"product_id":7414664560739,"position":8,"created_at":"2024-05-05T14:36:57+08:00","updated_at":"2024-05-05T14:36:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a2d4af4f8e12dcad0ec60ad84e1cd10d0a21a2_e3cdb9ed-fce2-4839-abc7-be3194795ff8.webp?v=1714891017","variant_ids":[41908150108259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-YF06","featured_media":{"alt":null,"id":23891316899939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a2d4af4f8e12dcad0ec60ad84e1cd10d0a21a2_e3cdb9ed-fce2-4839-abc7-be3194795ff8.webp?v=1714891017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908150403171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485972742243,"product_id":7414664560739,"position":1,"created_at":"2024-05-05T14:36:41+08:00","updated_at":"2024-05-05T14:36:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6399d1e6f8c7211dfd21633098adcdaa75b86af4_2ecd2ac3-8714-4832-9859-738fbf4ce7eb.webp?v=1714891002","variant_ids":[41908150403171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-YF06","featured_media":{"alt":null,"id":23891308281955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6399d1e6f8c7211dfd21633098adcdaa75b86af4_2ecd2ac3-8714-4832-9859-738fbf4ce7eb.webp?v=1714891002"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6399d1e6f8c7211dfd21633098adcdaa75b86af4_2ecd2ac3-8714-4832-9859-738fbf4ce7eb.webp?v=1714891002","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d46fef59c8ff6d7916fd640c84d322f1da418f1c_e2f05574-15e1-4c8e-b985-42b14ab5c53d.webp?v=1714891004","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff89ef4a4838d7f85f53fbe3001485e6fb5ea31d_8d5ea1cf-5d38-4dc5-a237-0b7639a56db2.webp?v=1714891006","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2eae57d3816a07dcd4aeeb5d152cb3830d01efb_a7439623-450d-48ce-b13f-b659d9765d5b.webp?v=1714891008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99d1816a901e3d7fed9ff121d2d5b4cefa1ad9c7_7f28c5f1-cb8b-4394-aced-552930c13221.webp?v=1714891010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1faa98b870979b97200c50407d980f9ce370dc4d_619f7cfd-f1de-4293-92a5-a66074cf2183.webp?v=1714891013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d90d52c8fbe2099b8823fe74b74bf9d85d6d5c31_435dfcfc-da4d-4172-9905-7b2bf7693457.webp?v=1714891015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a2d4af4f8e12dcad0ec60ad84e1cd10d0a21a2_e3cdb9ed-fce2-4839-abc7-be3194795ff8.webp?v=1714891017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf99c15adc61f70c8c7171cc4d81fa233a2cb87_0dd6b907-f3ee-42ad-9ff9-dfb6e643e810.webp?v=1714891020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4edf4ac421eb57e164ca98218ebb72cb8e6605d2_35549338-8881-4ba5-a596-bb663dab81a4.webp?v=1714891022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cab09072c2f4b634164f690a0f56263c3e5b54d_854b319e-40aa-4a01-af9f-43f80940d4a9.webp?v=1714891024"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6399d1e6f8c7211dfd21633098adcdaa75b86af4_2ecd2ac3-8714-4832-9859-738fbf4ce7eb.webp?v=1714891002","options":["color"],"media":[{"alt":null,"id":23891308281955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6399d1e6f8c7211dfd21633098adcdaa75b86af4_2ecd2ac3-8714-4832-9859-738fbf4ce7eb.webp?v=1714891002"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6399d1e6f8c7211dfd21633098adcdaa75b86af4_2ecd2ac3-8714-4832-9859-738fbf4ce7eb.webp?v=1714891002","width":2000},{"alt":null,"id":23891309756515,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d46fef59c8ff6d7916fd640c84d322f1da418f1c_e2f05574-15e1-4c8e-b985-42b14ab5c53d.webp?v=1714891004"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d46fef59c8ff6d7916fd640c84d322f1da418f1c_e2f05574-15e1-4c8e-b985-42b14ab5c53d.webp?v=1714891004","width":2000},{"alt":null,"id":23891311100003,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff89ef4a4838d7f85f53fbe3001485e6fb5ea31d_8d5ea1cf-5d38-4dc5-a237-0b7639a56db2.webp?v=1714891006"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff89ef4a4838d7f85f53fbe3001485e6fb5ea31d_8d5ea1cf-5d38-4dc5-a237-0b7639a56db2.webp?v=1714891006","width":2000},{"alt":null,"id":23891312640099,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2eae57d3816a07dcd4aeeb5d152cb3830d01efb_a7439623-450d-48ce-b13f-b659d9765d5b.webp?v=1714891008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2eae57d3816a07dcd4aeeb5d152cb3830d01efb_a7439623-450d-48ce-b13f-b659d9765d5b.webp?v=1714891008","width":2000},{"alt":null,"id":23891313918051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99d1816a901e3d7fed9ff121d2d5b4cefa1ad9c7_7f28c5f1-cb8b-4394-aced-552930c13221.webp?v=1714891010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/99d1816a901e3d7fed9ff121d2d5b4cefa1ad9c7_7f28c5f1-cb8b-4394-aced-552930c13221.webp?v=1714891010","width":2000},{"alt":null,"id":23891314933859,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1faa98b870979b97200c50407d980f9ce370dc4d_619f7cfd-f1de-4293-92a5-a66074cf2183.webp?v=1714891013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1faa98b870979b97200c50407d980f9ce370dc4d_619f7cfd-f1de-4293-92a5-a66074cf2183.webp?v=1714891013","width":2000},{"alt":null,"id":23891315949667,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d90d52c8fbe2099b8823fe74b74bf9d85d6d5c31_435dfcfc-da4d-4172-9905-7b2bf7693457.webp?v=1714891015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d90d52c8fbe2099b8823fe74b74bf9d85d6d5c31_435dfcfc-da4d-4172-9905-7b2bf7693457.webp?v=1714891015","width":2000},{"alt":null,"id":23891316899939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a2d4af4f8e12dcad0ec60ad84e1cd10d0a21a2_e3cdb9ed-fce2-4839-abc7-be3194795ff8.webp?v=1714891017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a2d4af4f8e12dcad0ec60ad84e1cd10d0a21a2_e3cdb9ed-fce2-4839-abc7-be3194795ff8.webp?v=1714891017","width":2000},{"alt":null,"id":23891317784675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf99c15adc61f70c8c7171cc4d81fa233a2cb87_0dd6b907-f3ee-42ad-9ff9-dfb6e643e810.webp?v=1714891020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf99c15adc61f70c8c7171cc4d81fa233a2cb87_0dd6b907-f3ee-42ad-9ff9-dfb6e643e810.webp?v=1714891020","width":2000},{"alt":null,"id":23891318636643,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4edf4ac421eb57e164ca98218ebb72cb8e6605d2_35549338-8881-4ba5-a596-bb663dab81a4.webp?v=1714891022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4edf4ac421eb57e164ca98218ebb72cb8e6605d2_35549338-8881-4ba5-a596-bb663dab81a4.webp?v=1714891022","width":2000},{"alt":null,"id":23891319586915,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cab09072c2f4b634164f690a0f56263c3e5b54d_854b319e-40aa-4a01-af9f-43f80940d4a9.webp?v=1714891024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6cab09072c2f4b634164f690a0f56263c3e5b54d_854b319e-40aa-4a01-af9f-43f80940d4a9.webp?v=1714891024","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41908150108259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485981884515,"product_id":7414664560739,"position":8,"created_at":"2024-05-05T14:36:57+08:00","updated_at":"2024-05-05T14:36:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a2d4af4f8e12dcad0ec60ad84e1cd10d0a21a2_e3cdb9ed-fce2-4839-abc7-be3194795ff8.webp?v=1714891017","variant_ids":[41908150108259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-YF06","featured_media":{"alt":null,"id":23891316899939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a2d4af4f8e12dcad0ec60ad84e1cd10d0a21a2_e3cdb9ed-fce2-4839-abc7-be3194795ff8.webp?v=1714891017"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908150403171,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485972742243,"product_id":7414664560739,"position":1,"created_at":"2024-05-05T14:36:41+08:00","updated_at":"2024-05-05T14:36:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6399d1e6f8c7211dfd21633098adcdaa75b86af4_2ecd2ac3-8714-4832-9859-738fbf4ce7eb.webp?v=1714891002","variant_ids":[41908150403171]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB01232J5-YF06","featured_media":{"alt":null,"id":23891308281955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6399d1e6f8c7211dfd21633098adcdaa75b86af4_2ecd2ac3-8714-4832-9859-738fbf4ce7eb.webp?v=1714891002"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41908150108259,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-YF06","requires_shipping":true,"taxable":true,"featured_image":{"id":31485981884515,"product_id":7414664560739,"position":8,"created_at":"2024-05-05T14:36:57+08:00","updated_at":"2024-05-05T14:36:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a2d4af4f8e12dcad0ec60ad84e1cd10d0a21a2_e3cdb9ed-fce2-4839-abc7-be3194795ff8.webp?v=1714891017","variant_ids":[41908150108259]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 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":"MPB0123224-YF06","featured_media":{"alt":null,"id":23891316899939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/78a2d4af4f8e12dcad0ec60ad84e1cd10d0a21a2_e3cdb9ed-fce2-4839-abc7-be3194795ff8.webp?v=1714891017"}},"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: "停產"
}