$product = {"id":7414969040995,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sr04","description":null,"published_at":"2024-06-11T17:54:26+08:00","created_at":"2024-05-05T19:57:42+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區The Powerpuff Girls","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-the-power-puff-girls","device-iPhone 12 pro max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-the-power-puff-girls","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":41910458253411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31487803523171,"product_id":7414969040995,"position":4,"created_at":"2024-05-05T19:57:52+08:00","updated_at":"2024-05-05T19:57:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd95c7ed3f5b32b622a4582deef8208fe30cf3a_79ea027e-7219-4f0d-a616-b2a43ddf14bb.webp?v=1714910272","variant_ids":[41910458253411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊 - 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-SR04","featured_media":{"alt":null,"id":23893147549795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd95c7ed3f5b32b622a4582deef8208fe30cf3a_79ea027e-7219-4f0d-a616-b2a43ddf14bb.webp?v=1714910272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0768c305a4529f3e08c62a5da40418bc89d31f89_8bd92039-46ff-47fd-8125-48e28362ab65.webp?v=1714910265","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf8af5ea81ca487b1e47c11f0bb3685d9973335_051ed71a-c6f1-4f2f-b283-62c1c31e3af6.webp?v=1714910267","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24dd7aa05bc40cb1dcf6b98e66fdb6df5bfb5dde_0d7b095c-04e2-4dc3-97b8-a6efc836f119.webp?v=1714910270","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd95c7ed3f5b32b622a4582deef8208fe30cf3a_79ea027e-7219-4f0d-a616-b2a43ddf14bb.webp?v=1714910272","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f00860d4cdfbd2a7a61dece2e0a55279ddc11b6_8372fc4d-962d-4b0d-9a79-412f3789387d.webp?v=1714910274","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a75cb38c78927ede57096196fdb0000f0c0f79a_bad903c3-e9f8-4cc4-ab70-4b8e0caea093.webp?v=1714910277","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/128183552cbea7187a80ec15661a7f4474136edd_5b04d4c4-02b3-41b2-b062-fd02cc62869a.webp?v=1714910279","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da652c37cf605c16550da150f2ff5eeb4373b48_91f10437-c98a-4969-8eb9-f7e243c03449.webp?v=1714910282","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75927037eeb773ac443fdfca7619d6caa24af273_41a9d720-fb02-4f6f-9001-8b68244f2a3a.webp?v=1714910284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddb306913d4cd804943ffed2c70f69588dbc6856_3ec13be8-7e8a-4901-9771-4235d21d5d48.webp?v=1714910286"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0768c305a4529f3e08c62a5da40418bc89d31f89_8bd92039-46ff-47fd-8125-48e28362ab65.webp?v=1714910265","options":["color"],"media":[{"alt":null,"id":23893145845859,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0768c305a4529f3e08c62a5da40418bc89d31f89_8bd92039-46ff-47fd-8125-48e28362ab65.webp?v=1714910265"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0768c305a4529f3e08c62a5da40418bc89d31f89_8bd92039-46ff-47fd-8125-48e28362ab65.webp?v=1714910265","width":2000},{"alt":null,"id":23893146337379,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf8af5ea81ca487b1e47c11f0bb3685d9973335_051ed71a-c6f1-4f2f-b283-62c1c31e3af6.webp?v=1714910267"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bf8af5ea81ca487b1e47c11f0bb3685d9973335_051ed71a-c6f1-4f2f-b283-62c1c31e3af6.webp?v=1714910267","width":2000},{"alt":null,"id":23893146828899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24dd7aa05bc40cb1dcf6b98e66fdb6df5bfb5dde_0d7b095c-04e2-4dc3-97b8-a6efc836f119.webp?v=1714910270"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24dd7aa05bc40cb1dcf6b98e66fdb6df5bfb5dde_0d7b095c-04e2-4dc3-97b8-a6efc836f119.webp?v=1714910270","width":2000},{"alt":null,"id":23893147549795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd95c7ed3f5b32b622a4582deef8208fe30cf3a_79ea027e-7219-4f0d-a616-b2a43ddf14bb.webp?v=1714910272"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd95c7ed3f5b32b622a4582deef8208fe30cf3a_79ea027e-7219-4f0d-a616-b2a43ddf14bb.webp?v=1714910272","width":2000},{"alt":null,"id":23893148270691,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f00860d4cdfbd2a7a61dece2e0a55279ddc11b6_8372fc4d-962d-4b0d-9a79-412f3789387d.webp?v=1714910274"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f00860d4cdfbd2a7a61dece2e0a55279ddc11b6_8372fc4d-962d-4b0d-9a79-412f3789387d.webp?v=1714910274","width":2000},{"alt":null,"id":23893148794979,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a75cb38c78927ede57096196fdb0000f0c0f79a_bad903c3-e9f8-4cc4-ab70-4b8e0caea093.webp?v=1714910277"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a75cb38c78927ede57096196fdb0000f0c0f79a_bad903c3-e9f8-4cc4-ab70-4b8e0caea093.webp?v=1714910277","width":2000},{"alt":null,"id":23893149319267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/128183552cbea7187a80ec15661a7f4474136edd_5b04d4c4-02b3-41b2-b062-fd02cc62869a.webp?v=1714910279"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/128183552cbea7187a80ec15661a7f4474136edd_5b04d4c4-02b3-41b2-b062-fd02cc62869a.webp?v=1714910279","width":2000},{"alt":null,"id":23893150007395,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da652c37cf605c16550da150f2ff5eeb4373b48_91f10437-c98a-4969-8eb9-f7e243c03449.webp?v=1714910282"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da652c37cf605c16550da150f2ff5eeb4373b48_91f10437-c98a-4969-8eb9-f7e243c03449.webp?v=1714910282","width":2000},{"alt":null,"id":23893150662755,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75927037eeb773ac443fdfca7619d6caa24af273_41a9d720-fb02-4f6f-9001-8b68244f2a3a.webp?v=1714910284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75927037eeb773ac443fdfca7619d6caa24af273_41a9d720-fb02-4f6f-9001-8b68244f2a3a.webp?v=1714910284","width":2000},{"alt":null,"id":23893151187043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddb306913d4cd804943ffed2c70f69588dbc6856_3ec13be8-7e8a-4901-9771-4235d21d5d48.webp?v=1714910286"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ddb306913d4cd804943ffed2c70f69588dbc6856_3ec13be8-7e8a-4901-9771-4235d21d5d48.webp?v=1714910286","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41910458253411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31487803523171,"product_id":7414969040995,"position":4,"created_at":"2024-05-05T19:57:52+08:00","updated_at":"2024-05-05T19:57:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd95c7ed3f5b32b622a4582deef8208fe30cf3a_79ea027e-7219-4f0d-a616-b2a43ddf14bb.webp?v=1714910272","variant_ids":[41910458253411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊 - 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-SR04","featured_media":{"alt":null,"id":23893147549795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd95c7ed3f5b32b622a4582deef8208fe30cf3a_79ea027e-7219-4f0d-a616-b2a43ddf14bb.webp?v=1714910272"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41910458253411,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SR04","requires_shipping":true,"taxable":true,"featured_image":{"id":31487803523171,"product_id":7414969040995,"position":4,"created_at":"2024-05-05T19:57:52+08:00","updated_at":"2024-05-05T19:57:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd95c7ed3f5b32b622a4582deef8208fe30cf3a_79ea027e-7219-4f0d-a616-b2a43ddf14bb.webp?v=1714910272","variant_ids":[41910458253411]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - The Powerpuff Girls - 魔人啾啾的攻擊 - 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-SR04","featured_media":{"alt":null,"id":23893147549795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fd95c7ed3f5b32b622a4582deef8208fe30cf3a_79ea027e-7219-4f0d-a616-b2a43ddf14bb.webp?v=1714910272"}},"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: "停產" }