$product = {"id":7415080091747,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-pc11","description":null,"published_at":"2024-06-11T17:57:25+08:00","created_at":"2024-05-05T20:18:58+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 12 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":41911652515939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31488105873507,"product_id":7415080091747,"position":5,"created_at":"2024-05-05T20:19:09+08:00","updated_at":"2024-05-05T20:19:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c57352351d7d8f8b441b6217cba37eb956e5e89_3b7f386c-d8fc-4a35-94ab-e2c64661823a.webp?v=1714911549","variant_ids":[41911652515939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - 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-PC11","featured_media":{"alt":null,"id":23893450457187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c57352351d7d8f8b441b6217cba37eb956e5e89_3b7f386c-d8fc-4a35-94ab-e2c64661823a.webp?v=1714911549"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550c115f0ea5b84b5f5f583cc085d17958e3aa9f_4c64fc87-a618-44c0-bf2c-9566d8776ad1.webp?v=1714911540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50c3ea138e9dd3457d578f54fcc94e5f6f37b96_dc45750a-77a8-4ff3-8505-c87f5fff173c.webp?v=1714911543","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16f68ffb930669e88327bd17f2019a327e162934_53c70fb0-5391-42c5-ac6d-0e035fedcb90.webp?v=1714911545","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b31fc8c4d8b57787ab4a1089458a81e4e08e881_5b636af7-671b-4c7b-a5d4-53c4eb0083b9.webp?v=1714911547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c57352351d7d8f8b441b6217cba37eb956e5e89_3b7f386c-d8fc-4a35-94ab-e2c64661823a.webp?v=1714911549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/998456cff34f84b59d6da5a4d7fa48e7031caadc_df84a0b3-90df-4199-a919-8469ac8abfc2.webp?v=1714911551","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eca52d581f59a74aeb543a5f950b3365b042d42_e6d35f63-e432-4226-94ee-30bcb3b8a075.webp?v=1714911554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62d58f9a7368fd2803eb4a7ee4b415ff0fe3807b_7af6de79-4e52-496b-81a3-cc1997243e8a.webp?v=1714911556","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5109a6d9b0392dd3205a904f875f757847fb24_3a6c3041-fb46-48fc-9912-8dba079f1d4a.webp?v=1714911558","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a5d0c458d28c259d1228480933c327dc23e1037_974aa683-af6e-442f-ac23-8304d21afacb.webp?v=1714911560"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550c115f0ea5b84b5f5f583cc085d17958e3aa9f_4c64fc87-a618-44c0-bf2c-9566d8776ad1.webp?v=1714911540","options":["color"],"media":[{"alt":null,"id":23893447835747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550c115f0ea5b84b5f5f583cc085d17958e3aa9f_4c64fc87-a618-44c0-bf2c-9566d8776ad1.webp?v=1714911540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/550c115f0ea5b84b5f5f583cc085d17958e3aa9f_4c64fc87-a618-44c0-bf2c-9566d8776ad1.webp?v=1714911540","width":2000},{"alt":null,"id":23893448851555,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50c3ea138e9dd3457d578f54fcc94e5f6f37b96_dc45750a-77a8-4ff3-8505-c87f5fff173c.webp?v=1714911543"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e50c3ea138e9dd3457d578f54fcc94e5f6f37b96_dc45750a-77a8-4ff3-8505-c87f5fff173c.webp?v=1714911543","width":2000},{"alt":null,"id":23893449441379,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16f68ffb930669e88327bd17f2019a327e162934_53c70fb0-5391-42c5-ac6d-0e035fedcb90.webp?v=1714911545"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16f68ffb930669e88327bd17f2019a327e162934_53c70fb0-5391-42c5-ac6d-0e035fedcb90.webp?v=1714911545","width":2000},{"alt":null,"id":23893449965667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b31fc8c4d8b57787ab4a1089458a81e4e08e881_5b636af7-671b-4c7b-a5d4-53c4eb0083b9.webp?v=1714911547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b31fc8c4d8b57787ab4a1089458a81e4e08e881_5b636af7-671b-4c7b-a5d4-53c4eb0083b9.webp?v=1714911547","width":2000},{"alt":null,"id":23893450457187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c57352351d7d8f8b441b6217cba37eb956e5e89_3b7f386c-d8fc-4a35-94ab-e2c64661823a.webp?v=1714911549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c57352351d7d8f8b441b6217cba37eb956e5e89_3b7f386c-d8fc-4a35-94ab-e2c64661823a.webp?v=1714911549","width":2000},{"alt":null,"id":23893450883171,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/998456cff34f84b59d6da5a4d7fa48e7031caadc_df84a0b3-90df-4199-a919-8469ac8abfc2.webp?v=1714911551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/998456cff34f84b59d6da5a4d7fa48e7031caadc_df84a0b3-90df-4199-a919-8469ac8abfc2.webp?v=1714911551","width":2000},{"alt":null,"id":23893451604067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eca52d581f59a74aeb543a5f950b3365b042d42_e6d35f63-e432-4226-94ee-30bcb3b8a075.webp?v=1714911554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1eca52d581f59a74aeb543a5f950b3365b042d42_e6d35f63-e432-4226-94ee-30bcb3b8a075.webp?v=1714911554","width":2000},{"alt":null,"id":23893452062819,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62d58f9a7368fd2803eb4a7ee4b415ff0fe3807b_7af6de79-4e52-496b-81a3-cc1997243e8a.webp?v=1714911556"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62d58f9a7368fd2803eb4a7ee4b415ff0fe3807b_7af6de79-4e52-496b-81a3-cc1997243e8a.webp?v=1714911556","width":2000},{"alt":null,"id":23893452783715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5109a6d9b0392dd3205a904f875f757847fb24_3a6c3041-fb46-48fc-9912-8dba079f1d4a.webp?v=1714911558"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5109a6d9b0392dd3205a904f875f757847fb24_3a6c3041-fb46-48fc-9912-8dba079f1d4a.webp?v=1714911558","width":2000},{"alt":null,"id":23893453340771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a5d0c458d28c259d1228480933c327dc23e1037_974aa683-af6e-442f-ac23-8304d21afacb.webp?v=1714911560"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a5d0c458d28c259d1228480933c327dc23e1037_974aa683-af6e-442f-ac23-8304d21afacb.webp?v=1714911560","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41911652515939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31488105873507,"product_id":7415080091747,"position":5,"created_at":"2024-05-05T20:19:09+08:00","updated_at":"2024-05-05T20:19:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c57352351d7d8f8b441b6217cba37eb956e5e89_3b7f386c-d8fc-4a35-94ab-e2c64661823a.webp?v=1714911549","variant_ids":[41911652515939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - 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-PC11","featured_media":{"alt":null,"id":23893450457187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c57352351d7d8f8b441b6217cba37eb956e5e89_3b7f386c-d8fc-4a35-94ab-e2c64661823a.webp?v=1714911549"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41911652515939,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-PC11","requires_shipping":true,"taxable":true,"featured_image":{"id":31488105873507,"product_id":7415080091747,"position":5,"created_at":"2024-05-05T20:19:09+08:00","updated_at":"2024-05-05T20:19:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c57352351d7d8f8b441b6217cba37eb956e5e89_3b7f386c-d8fc-4a35-94ab-e2c64661823a.webp?v=1714911549","variant_ids":[41911652515939]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-溜溜球炫技-幽默系列 - 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-PC11","featured_media":{"alt":null,"id":23893450457187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6c57352351d7d8f8b441b6217cba37eb956e5e89_3b7f386c-d8fc-4a35-94ab-e2c64661823a.webp?v=1714911549"}},"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: "停產" }