$product = {"id":7408151396451,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白","handle":"iphone-13-pro-max-mod-nx-printable-pb08","description":null,"published_at":"2024-06-11T16:32:46+08:00","created_at":"2024-05-03T12:09:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41883246788707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471326953571,"product_id":7408151396451,"position":10,"created_at":"2024-05-03T12:10:20+08:00","updated_at":"2024-05-03T12:10:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd796b82aa1006441e3c021bd15c6ca556b80b4_2266c407-d7ce-4f6a-b658-5d4ac3a0e8d8.webp?v=1714709420","variant_ids":[41883246788707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-PB08","featured_media":{"alt":null,"id":23876232577123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd796b82aa1006441e3c021bd15c6ca556b80b4_2266c407-d7ce-4f6a-b658-5d4ac3a0e8d8.webp?v=1714709420"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883247575139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471326396515,"product_id":7408151396451,"position":9,"created_at":"2024-05-03T12:10:18+08:00","updated_at":"2024-05-03T12:10:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6aaf7c5c0443c659d3abca3fc0895f9d2c8e6a_f8af8ba8-6441-44b6-91cf-bd7750393f1e.webp?v=1714709418","variant_ids":[41883247575139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-PB08","featured_media":{"alt":null,"id":23876232118371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6aaf7c5c0443c659d3abca3fc0895f9d2c8e6a_f8af8ba8-6441-44b6-91cf-bd7750393f1e.webp?v=1714709418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74349c76833715b1d9f622a1aff35ba225e791a7_b3ceeb36-8870-4861-980a-9e4b080cc29c.webp?v=1714709399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c5246031af3470b94975ae3edd3c852f808759_0fefa62b-cb0c-43fb-97fc-25734467d1dd.webp?v=1714709401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/484a5773bc363e7f52855843c9500f2c72c55e51_337452c2-c20c-4b64-9f38-5b277f51caf3.webp?v=1714709404","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c7806260a5f4302e793dfbafe2ca23ce21bf16_b8933a07-1898-47e9-8d66-7d24a02cd20d.webp?v=1714709406","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f30040e11e31aebad281372dd9590dc0569400a_c587da2b-6b0c-46d6-98e2-c1f2c80d3071.webp?v=1714709408","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593ed0ad28b9cd9ee9e2983ac2322146e9fdc1a5_6a05416a-5858-414f-819c-65eeba64dd60.webp?v=1714709411","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24b93053ff8b774d9545f53e857a12908caeeae7_d241d7f7-6a07-4209-99fd-3644d706389f.webp?v=1714709413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3df980c5a743eea5828b8177eab5a1f3d01bfb_0057ceb0-796e-4fa7-8f6a-74812b82a2bf.webp?v=1714709415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6aaf7c5c0443c659d3abca3fc0895f9d2c8e6a_f8af8ba8-6441-44b6-91cf-bd7750393f1e.webp?v=1714709418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd796b82aa1006441e3c021bd15c6ca556b80b4_2266c407-d7ce-4f6a-b658-5d4ac3a0e8d8.webp?v=1714709420"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74349c76833715b1d9f622a1aff35ba225e791a7_b3ceeb36-8870-4861-980a-9e4b080cc29c.webp?v=1714709399","options":["color"],"media":[{"alt":null,"id":23876228382819,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74349c76833715b1d9f622a1aff35ba225e791a7_b3ceeb36-8870-4861-980a-9e4b080cc29c.webp?v=1714709399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74349c76833715b1d9f622a1aff35ba225e791a7_b3ceeb36-8870-4861-980a-9e4b080cc29c.webp?v=1714709399","width":2000},{"alt":null,"id":23876228743267,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c5246031af3470b94975ae3edd3c852f808759_0fefa62b-cb0c-43fb-97fc-25734467d1dd.webp?v=1714709401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c5246031af3470b94975ae3edd3c852f808759_0fefa62b-cb0c-43fb-97fc-25734467d1dd.webp?v=1714709401","width":2000},{"alt":null,"id":23876229300323,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/484a5773bc363e7f52855843c9500f2c72c55e51_337452c2-c20c-4b64-9f38-5b277f51caf3.webp?v=1714709404"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/484a5773bc363e7f52855843c9500f2c72c55e51_337452c2-c20c-4b64-9f38-5b277f51caf3.webp?v=1714709404","width":2000},{"alt":null,"id":23876229726307,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c7806260a5f4302e793dfbafe2ca23ce21bf16_b8933a07-1898-47e9-8d66-7d24a02cd20d.webp?v=1714709406"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43c7806260a5f4302e793dfbafe2ca23ce21bf16_b8933a07-1898-47e9-8d66-7d24a02cd20d.webp?v=1714709406","width":2000},{"alt":null,"id":23876230152291,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f30040e11e31aebad281372dd9590dc0569400a_c587da2b-6b0c-46d6-98e2-c1f2c80d3071.webp?v=1714709408"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f30040e11e31aebad281372dd9590dc0569400a_c587da2b-6b0c-46d6-98e2-c1f2c80d3071.webp?v=1714709408","width":2000},{"alt":null,"id":23876230643811,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593ed0ad28b9cd9ee9e2983ac2322146e9fdc1a5_6a05416a-5858-414f-819c-65eeba64dd60.webp?v=1714709411"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/593ed0ad28b9cd9ee9e2983ac2322146e9fdc1a5_6a05416a-5858-414f-819c-65eeba64dd60.webp?v=1714709411","width":2000},{"alt":null,"id":23876231135331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24b93053ff8b774d9545f53e857a12908caeeae7_d241d7f7-6a07-4209-99fd-3644d706389f.webp?v=1714709413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24b93053ff8b774d9545f53e857a12908caeeae7_d241d7f7-6a07-4209-99fd-3644d706389f.webp?v=1714709413","width":2000},{"alt":null,"id":23876231528547,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3df980c5a743eea5828b8177eab5a1f3d01bfb_0057ceb0-796e-4fa7-8f6a-74812b82a2bf.webp?v=1714709415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cc3df980c5a743eea5828b8177eab5a1f3d01bfb_0057ceb0-796e-4fa7-8f6a-74812b82a2bf.webp?v=1714709415","width":2000},{"alt":null,"id":23876232118371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6aaf7c5c0443c659d3abca3fc0895f9d2c8e6a_f8af8ba8-6441-44b6-91cf-bd7750393f1e.webp?v=1714709418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6aaf7c5c0443c659d3abca3fc0895f9d2c8e6a_f8af8ba8-6441-44b6-91cf-bd7750393f1e.webp?v=1714709418","width":2000},{"alt":null,"id":23876232577123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd796b82aa1006441e3c021bd15c6ca556b80b4_2266c407-d7ce-4f6a-b658-5d4ac3a0e8d8.webp?v=1714709420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd796b82aa1006441e3c021bd15c6ca556b80b4_2266c407-d7ce-4f6a-b658-5d4ac3a0e8d8.webp?v=1714709420","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883246788707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471326953571,"product_id":7408151396451,"position":10,"created_at":"2024-05-03T12:10:20+08:00","updated_at":"2024-05-03T12:10:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd796b82aa1006441e3c021bd15c6ca556b80b4_2266c407-d7ce-4f6a-b658-5d4ac3a0e8d8.webp?v=1714709420","variant_ids":[41883246788707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-PB08","featured_media":{"alt":null,"id":23876232577123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd796b82aa1006441e3c021bd15c6ca556b80b4_2266c407-d7ce-4f6a-b658-5d4ac3a0e8d8.webp?v=1714709420"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883247575139,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471326396515,"product_id":7408151396451,"position":9,"created_at":"2024-05-03T12:10:18+08:00","updated_at":"2024-05-03T12:10:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6aaf7c5c0443c659d3abca3fc0895f9d2c8e6a_f8af8ba8-6441-44b6-91cf-bd7750393f1e.webp?v=1714709418","variant_ids":[41883247575139]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-PB08","featured_media":{"alt":null,"id":23876232118371,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f6aaf7c5c0443c659d3abca3fc0895f9d2c8e6a_f8af8ba8-6441-44b6-91cf-bd7750393f1e.webp?v=1714709418"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883246788707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31471326953571,"product_id":7408151396451,"position":10,"created_at":"2024-05-03T12:10:20+08:00","updated_at":"2024-05-03T12:10:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd796b82aa1006441e3c021bd15c6ca556b80b4_2266c407-d7ce-4f6a-b658-5d4ac3a0e8d8.webp?v=1714709420","variant_ids":[41883246788707]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-噴漆白 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-PB08","featured_media":{"alt":null,"id":23876232577123,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd796b82aa1006441e3c021bd15c6ca556b80b4_2266c407-d7ce-4f6a-b658-5d4ac3a0e8d8.webp?v=1714709420"}},"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: "停產" }