$product = {"id":7414448652387,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-黑","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb11","description":null,"published_at":"2024-06-11T17:51:21+08:00","created_at":"2024-05-05T14:25:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41906568757347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485494231139,"product_id":7414448652387,"position":3,"created_at":"2024-05-05T14:26:04+08:00","updated_at":"2024-05-05T14:26:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc560c99a3149e054f65ab65e10e2dcc526a0aae_36f760db-67af-4e00-a204-656edbff78bc.webp?v=1714890364","variant_ids":[41906568757347]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-黑 - 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-PB11","featured_media":{"alt":null,"id":23890811060323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc560c99a3149e054f65ab65e10e2dcc526a0aae_36f760db-67af-4e00-a204-656edbff78bc.webp?v=1714890364"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906569314403,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485502062691,"product_id":7414448652387,"position":6,"created_at":"2024-05-05T14:26:12+08:00","updated_at":"2024-05-05T14:26:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d46a7dde58a06904bc1a0f2e0712b503c9f102_abb425f0-eb55-4f9e-ba9f-fa99806b4fe6.webp?v=1714890372","variant_ids":[41906569314403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-黑 - 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-PB11","featured_media":{"alt":null,"id":23890818760803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d46a7dde58a06904bc1a0f2e0712b503c9f102_abb425f0-eb55-4f9e-ba9f-fa99806b4fe6.webp?v=1714890372"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3631be8ca40cf732cbc72ed9170bcb460bf4f518_af468f00-2455-42f9-9245-1d186434edfe.webp?v=1714890359","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffc2c9a7f49d62004ca5f38479949f74d5455b2c_643fc723-4f51-4de0-b41f-d557d409ce63.webp?v=1714890362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc560c99a3149e054f65ab65e10e2dcc526a0aae_36f760db-67af-4e00-a204-656edbff78bc.webp?v=1714890364","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b65e8bc87051f2a979712e3990fa85416000b5d_986e49d1-86bb-4cc4-bc8f-d28436380610.webp?v=1714890367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a745cdc15a82b89fd2a22d149e823eaa5b907f_c434e592-a7a0-475e-a3a2-932cbe591c10.webp?v=1714890369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d46a7dde58a06904bc1a0f2e0712b503c9f102_abb425f0-eb55-4f9e-ba9f-fa99806b4fe6.webp?v=1714890372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87eaa9811cc6bb15af46651487fe5a6bfce4e48e_62ce8789-4861-42d6-b608-972b1e0ff03d.webp?v=1714890374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99b9d24a739b32b3c0a1e96be3098c22f847491_006a941b-5f36-4c20-a555-e3f9cf9995c3.webp?v=1714890377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32953fb228f7850520d3a5bbcdb3b83aa94911c4_5ffbd0d8-4b51-490b-a441-b8675ace4e6e.webp?v=1714890380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03acddebc28fb4c14ed519cdec128c357eefc3a9_16eef0f2-3783-49a2-a805-9a18f1ac4c6e.webp?v=1714890383","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9372adde4705c8969c31a90ec6dc20b46d6ea0_d2a9a0b0-833b-47dd-b4e8-dbbb3b0a280b.webp?v=1714890385"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3631be8ca40cf732cbc72ed9170bcb460bf4f518_af468f00-2455-42f9-9245-1d186434edfe.webp?v=1714890359","options":["color"],"media":[{"alt":null,"id":23890804834403,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3631be8ca40cf732cbc72ed9170bcb460bf4f518_af468f00-2455-42f9-9245-1d186434edfe.webp?v=1714890359"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3631be8ca40cf732cbc72ed9170bcb460bf4f518_af468f00-2455-42f9-9245-1d186434edfe.webp?v=1714890359","width":2000},{"alt":null,"id":23890808242275,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffc2c9a7f49d62004ca5f38479949f74d5455b2c_643fc723-4f51-4de0-b41f-d557d409ce63.webp?v=1714890362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffc2c9a7f49d62004ca5f38479949f74d5455b2c_643fc723-4f51-4de0-b41f-d557d409ce63.webp?v=1714890362","width":2000},{"alt":null,"id":23890811060323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc560c99a3149e054f65ab65e10e2dcc526a0aae_36f760db-67af-4e00-a204-656edbff78bc.webp?v=1714890364"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc560c99a3149e054f65ab65e10e2dcc526a0aae_36f760db-67af-4e00-a204-656edbff78bc.webp?v=1714890364","width":2000},{"alt":null,"id":23890814074979,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b65e8bc87051f2a979712e3990fa85416000b5d_986e49d1-86bb-4cc4-bc8f-d28436380610.webp?v=1714890367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b65e8bc87051f2a979712e3990fa85416000b5d_986e49d1-86bb-4cc4-bc8f-d28436380610.webp?v=1714890367","width":2000},{"alt":null,"id":23890816139363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a745cdc15a82b89fd2a22d149e823eaa5b907f_c434e592-a7a0-475e-a3a2-932cbe591c10.webp?v=1714890369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9a745cdc15a82b89fd2a22d149e823eaa5b907f_c434e592-a7a0-475e-a3a2-932cbe591c10.webp?v=1714890369","width":2000},{"alt":null,"id":23890818760803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d46a7dde58a06904bc1a0f2e0712b503c9f102_abb425f0-eb55-4f9e-ba9f-fa99806b4fe6.webp?v=1714890372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d46a7dde58a06904bc1a0f2e0712b503c9f102_abb425f0-eb55-4f9e-ba9f-fa99806b4fe6.webp?v=1714890372","width":2000},{"alt":null,"id":23890821087331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87eaa9811cc6bb15af46651487fe5a6bfce4e48e_62ce8789-4861-42d6-b608-972b1e0ff03d.webp?v=1714890374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87eaa9811cc6bb15af46651487fe5a6bfce4e48e_62ce8789-4861-42d6-b608-972b1e0ff03d.webp?v=1714890374","width":2000},{"alt":null,"id":23890823938147,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99b9d24a739b32b3c0a1e96be3098c22f847491_006a941b-5f36-4c20-a555-e3f9cf9995c3.webp?v=1714890377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c99b9d24a739b32b3c0a1e96be3098c22f847491_006a941b-5f36-4c20-a555-e3f9cf9995c3.webp?v=1714890377","width":2000},{"alt":null,"id":23890826133603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32953fb228f7850520d3a5bbcdb3b83aa94911c4_5ffbd0d8-4b51-490b-a441-b8675ace4e6e.webp?v=1714890380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/32953fb228f7850520d3a5bbcdb3b83aa94911c4_5ffbd0d8-4b51-490b-a441-b8675ace4e6e.webp?v=1714890380","width":2000},{"alt":null,"id":23890828394595,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03acddebc28fb4c14ed519cdec128c357eefc3a9_16eef0f2-3783-49a2-a805-9a18f1ac4c6e.webp?v=1714890383"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03acddebc28fb4c14ed519cdec128c357eefc3a9_16eef0f2-3783-49a2-a805-9a18f1ac4c6e.webp?v=1714890383","width":2000},{"alt":null,"id":23890830295139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9372adde4705c8969c31a90ec6dc20b46d6ea0_d2a9a0b0-833b-47dd-b4e8-dbbb3b0a280b.webp?v=1714890385"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a9372adde4705c8969c31a90ec6dc20b46d6ea0_d2a9a0b0-833b-47dd-b4e8-dbbb3b0a280b.webp?v=1714890385","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906568757347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485494231139,"product_id":7414448652387,"position":3,"created_at":"2024-05-05T14:26:04+08:00","updated_at":"2024-05-05T14:26:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc560c99a3149e054f65ab65e10e2dcc526a0aae_36f760db-67af-4e00-a204-656edbff78bc.webp?v=1714890364","variant_ids":[41906568757347]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-黑 - 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-PB11","featured_media":{"alt":null,"id":23890811060323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc560c99a3149e054f65ab65e10e2dcc526a0aae_36f760db-67af-4e00-a204-656edbff78bc.webp?v=1714890364"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906569314403,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485502062691,"product_id":7414448652387,"position":6,"created_at":"2024-05-05T14:26:12+08:00","updated_at":"2024-05-05T14:26:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d46a7dde58a06904bc1a0f2e0712b503c9f102_abb425f0-eb55-4f9e-ba9f-fa99806b4fe6.webp?v=1714890372","variant_ids":[41906569314403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-黑 - 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-PB11","featured_media":{"alt":null,"id":23890818760803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2d46a7dde58a06904bc1a0f2e0712b503c9f102_abb425f0-eb55-4f9e-ba9f-fa99806b4fe6.webp?v=1714890372"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906568757347,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485494231139,"product_id":7414448652387,"position":3,"created_at":"2024-05-05T14:26:04+08:00","updated_at":"2024-05-05T14:26:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc560c99a3149e054f65ab65e10e2dcc526a0aae_36f760db-67af-4e00-a204-656edbff78bc.webp?v=1714890364","variant_ids":[41906568757347]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具2-黑 - 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-PB11","featured_media":{"alt":null,"id":23890811060323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc560c99a3149e054f65ab65e10e2dcc526a0aae_36f760db-67af-4e00-a204-656edbff78bc.webp?v=1714890364"}},"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: "停產" }