$product = {"id":7414670295139,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-黑","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb09","description":null,"published_at":"2024-06-11T17:52:59+08:00","created_at":"2024-05-05T14:36:59+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":41908178354275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485988208739,"product_id":7414670295139,"position":7,"created_at":"2024-05-05T14:37:16+08:00","updated_at":"2024-05-05T14:37:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7ce1020771bfb8e09a2d0492e7b13cbec0084d5_01e8a26d-0d1b-49d6-8887-757aeb618b1d.webp?v=1714891036","variant_ids":[41908178354275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23891322798179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7ce1020771bfb8e09a2d0492e7b13cbec0084d5_01e8a26d-0d1b-49d6-8887-757aeb618b1d.webp?v=1714891036"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908178911331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485984374883,"product_id":7414670295139,"position":2,"created_at":"2024-05-05T14:37:04+08:00","updated_at":"2024-05-05T14:37:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a46ee19bcca24c1c986441e0497720175c22112_8ea89f40-cf5b-4670-8510-60d227d62e64.webp?v=1714891024","variant_ids":[41908178911331]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23891319226467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a46ee19bcca24c1c986441e0497720175c22112_8ea89f40-cf5b-4670-8510-60d227d62e64.webp?v=1714891024"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4adb0d6485c447a25bd73692c84b1985359f43a_d52292d9-8f8e-4644-b204-c8f18f49c8e9.webp?v=1714891022","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a46ee19bcca24c1c986441e0497720175c22112_8ea89f40-cf5b-4670-8510-60d227d62e64.webp?v=1714891024","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a51e207c5cb7891298bea59a1fecf34e1ad1f5c_a30559fc-9ec9-464e-b51a-f5f613254c8c.webp?v=1714891026","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79eae8b14f5f24a3662f4cfaac609f10b7ea6838_374571f9-7fac-43fd-8bf4-31ee2a096a3e.webp?v=1714891029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b79ca1a250f9fca42429189e9166db4028bc417b_96f3a954-a980-4dc8-b4b6-0530343949a2.webp?v=1714891031","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0946df1f84052a1580aa4f2fb0d6b439b836b91a_bfc79a9b-952a-4132-b481-511cca917279.webp?v=1714891034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7ce1020771bfb8e09a2d0492e7b13cbec0084d5_01e8a26d-0d1b-49d6-8887-757aeb618b1d.webp?v=1714891036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ac16119a7112052ddc234905b3b96aa0a50af_26841f6f-d249-4701-8db7-e789e18edb77.webp?v=1714891039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/024a36f6592cc196daafdc48bdc2922d24e355bb_afea913f-b509-4a06-b646-fc2e8f25f897.webp?v=1714891041","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69802199a851c1083d4a93908dbf42d82ebed6d6_0dbb9070-252d-4f99-a9db-98a84a4c70fc.webp?v=1714891043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2075f6675f0610ee4a2c0c1dbdee6ae60d12696_b2226a6e-b370-44b9-a953-3752a0f2476b.webp?v=1714891045"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4adb0d6485c447a25bd73692c84b1985359f43a_d52292d9-8f8e-4644-b204-c8f18f49c8e9.webp?v=1714891022","options":["color"],"media":[{"alt":null,"id":23891318538339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4adb0d6485c447a25bd73692c84b1985359f43a_d52292d9-8f8e-4644-b204-c8f18f49c8e9.webp?v=1714891022"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f4adb0d6485c447a25bd73692c84b1985359f43a_d52292d9-8f8e-4644-b204-c8f18f49c8e9.webp?v=1714891022","width":2000},{"alt":null,"id":23891319226467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a46ee19bcca24c1c986441e0497720175c22112_8ea89f40-cf5b-4670-8510-60d227d62e64.webp?v=1714891024"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a46ee19bcca24c1c986441e0497720175c22112_8ea89f40-cf5b-4670-8510-60d227d62e64.webp?v=1714891024","width":2000},{"alt":null,"id":23891320537187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a51e207c5cb7891298bea59a1fecf34e1ad1f5c_a30559fc-9ec9-464e-b51a-f5f613254c8c.webp?v=1714891026"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a51e207c5cb7891298bea59a1fecf34e1ad1f5c_a30559fc-9ec9-464e-b51a-f5f613254c8c.webp?v=1714891026","width":2000},{"alt":null,"id":23891321356387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79eae8b14f5f24a3662f4cfaac609f10b7ea6838_374571f9-7fac-43fd-8bf4-31ee2a096a3e.webp?v=1714891029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/79eae8b14f5f24a3662f4cfaac609f10b7ea6838_374571f9-7fac-43fd-8bf4-31ee2a096a3e.webp?v=1714891029","width":2000},{"alt":null,"id":23891322208355,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b79ca1a250f9fca42429189e9166db4028bc417b_96f3a954-a980-4dc8-b4b6-0530343949a2.webp?v=1714891031"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b79ca1a250f9fca42429189e9166db4028bc417b_96f3a954-a980-4dc8-b4b6-0530343949a2.webp?v=1714891031","width":2000},{"alt":null,"id":23891322503267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0946df1f84052a1580aa4f2fb0d6b439b836b91a_bfc79a9b-952a-4132-b481-511cca917279.webp?v=1714891034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0946df1f84052a1580aa4f2fb0d6b439b836b91a_bfc79a9b-952a-4132-b481-511cca917279.webp?v=1714891034","width":2000},{"alt":null,"id":23891322798179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7ce1020771bfb8e09a2d0492e7b13cbec0084d5_01e8a26d-0d1b-49d6-8887-757aeb618b1d.webp?v=1714891036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7ce1020771bfb8e09a2d0492e7b13cbec0084d5_01e8a26d-0d1b-49d6-8887-757aeb618b1d.webp?v=1714891036","width":2000},{"alt":null,"id":23891323453539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ac16119a7112052ddc234905b3b96aa0a50af_26841f6f-d249-4701-8db7-e789e18edb77.webp?v=1714891039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ac16119a7112052ddc234905b3b96aa0a50af_26841f6f-d249-4701-8db7-e789e18edb77.webp?v=1714891039","width":2000},{"alt":null,"id":23891325223011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/024a36f6592cc196daafdc48bdc2922d24e355bb_afea913f-b509-4a06-b646-fc2e8f25f897.webp?v=1714891041"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/024a36f6592cc196daafdc48bdc2922d24e355bb_afea913f-b509-4a06-b646-fc2e8f25f897.webp?v=1714891041","width":2000},{"alt":null,"id":23891326599267,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69802199a851c1083d4a93908dbf42d82ebed6d6_0dbb9070-252d-4f99-a9db-98a84a4c70fc.webp?v=1714891043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69802199a851c1083d4a93908dbf42d82ebed6d6_0dbb9070-252d-4f99-a9db-98a84a4c70fc.webp?v=1714891043","width":2000},{"alt":null,"id":23891328368739,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2075f6675f0610ee4a2c0c1dbdee6ae60d12696_b2226a6e-b370-44b9-a953-3752a0f2476b.webp?v=1714891045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2075f6675f0610ee4a2c0c1dbdee6ae60d12696_b2226a6e-b370-44b9-a953-3752a0f2476b.webp?v=1714891045","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41908178354275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485988208739,"product_id":7414670295139,"position":7,"created_at":"2024-05-05T14:37:16+08:00","updated_at":"2024-05-05T14:37:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7ce1020771bfb8e09a2d0492e7b13cbec0084d5_01e8a26d-0d1b-49d6-8887-757aeb618b1d.webp?v=1714891036","variant_ids":[41908178354275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23891322798179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7ce1020771bfb8e09a2d0492e7b13cbec0084d5_01e8a26d-0d1b-49d6-8887-757aeb618b1d.webp?v=1714891036"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41908178911331,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485984374883,"product_id":7414670295139,"position":2,"created_at":"2024-05-05T14:37:04+08:00","updated_at":"2024-05-05T14:37:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a46ee19bcca24c1c986441e0497720175c22112_8ea89f40-cf5b-4670-8510-60d227d62e64.webp?v=1714891024","variant_ids":[41908178911331]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23891319226467,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a46ee19bcca24c1c986441e0497720175c22112_8ea89f40-cf5b-4670-8510-60d227d62e64.webp?v=1714891024"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41908178354275,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31485988208739,"product_id":7414670295139,"position":7,"created_at":"2024-05-05T14:37:16+08:00","updated_at":"2024-05-05T14:37:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7ce1020771bfb8e09a2d0492e7b13cbec0084d5_01e8a26d-0d1b-49d6-8887-757aeb618b1d.webp?v=1714891036","variant_ids":[41908178354275]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - POP全載具1-黑 - 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-PB09","featured_media":{"alt":null,"id":23891322798179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7ce1020771bfb8e09a2d0492e7b13cbec0084d5_01e8a26d-0d1b-49d6-8887-757aeb618b1d.webp?v=1714891036"}},"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: "停產" }