$product = {"id":7411201769571,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列","handle":"iphone-14-plus-mod-nx-magsafe-printable-pc09","description":null,"published_at":"2024-06-11T17:38:38+08:00","created_at":"2024-05-04T23:44:39+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 14 Plus","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":41895923286115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31479841521763,"product_id":7411201769571,"position":10,"created_at":"2024-05-04T23:45:02+08:00","updated_at":"2024-05-04T23:45:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865109119f41abe53d32fc6487936673ea1ef6c8_8013c64c-9d64-4ccc-a92c-154dd6ca5659.webp?v=1714837502","variant_ids":[41895923286115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PC09","featured_media":{"alt":null,"id":23885091897443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865109119f41abe53d32fc6487936673ea1ef6c8_8013c64c-9d64-4ccc-a92c-154dd6ca5659.webp?v=1714837502"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea7099dc5d7dfee0b91da2334dd10ad79453213c_561aaf90-7675-49b9-8cc7-4f5dff88fa87.webp?v=1714837481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d65732df52e40044489928ce7c6a4b014826ece_767100b8-ad2a-4090-86f3-7eef8f79bd88.webp?v=1714837484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4802c3a7d3f664072056a227b85321898b3fd34b_172d4464-230a-4ca9-b0b8-0a462667b632.webp?v=1714837486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeec698cd9f26a4efc3c44afe1674a8c6c63974_b8f8eecc-da50-4392-82f3-c63d7d04a13d.webp?v=1714837488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da8529dc6dfe49803d3d07f2b6a1eeea100c488_35aa52a7-0258-4aaa-82a2-fd530e10cbca.webp?v=1714837490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e3a7fd06f59f6062d787bb87fc45bb8f847aad_b1dd06ec-7386-48d1-955e-ccf741990846.webp?v=1714837493","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6da18e5485c5540e00c39c115cda8f9949bf416e_abc95c03-fb6b-4b19-8680-d7f81717168f.webp?v=1714837495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7f17455024f0c933ead67c0dafeef76b8c7c0b_6ce061de-c1da-43d5-bd93-b1552c6247d6.webp?v=1714837497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc21fd8ea74f5b8d3fdbd088a2d90883fc6dcb2_eff59c4c-daa4-423c-a04d-6f8992f595b3.webp?v=1714837499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865109119f41abe53d32fc6487936673ea1ef6c8_8013c64c-9d64-4ccc-a92c-154dd6ca5659.webp?v=1714837502"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea7099dc5d7dfee0b91da2334dd10ad79453213c_561aaf90-7675-49b9-8cc7-4f5dff88fa87.webp?v=1714837481","options":["color"],"media":[{"alt":null,"id":23885087768675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea7099dc5d7dfee0b91da2334dd10ad79453213c_561aaf90-7675-49b9-8cc7-4f5dff88fa87.webp?v=1714837481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea7099dc5d7dfee0b91da2334dd10ad79453213c_561aaf90-7675-49b9-8cc7-4f5dff88fa87.webp?v=1714837481","width":2000},{"alt":null,"id":23885088325731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d65732df52e40044489928ce7c6a4b014826ece_767100b8-ad2a-4090-86f3-7eef8f79bd88.webp?v=1714837484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d65732df52e40044489928ce7c6a4b014826ece_767100b8-ad2a-4090-86f3-7eef8f79bd88.webp?v=1714837484","width":2000},{"alt":null,"id":23885088686179,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4802c3a7d3f664072056a227b85321898b3fd34b_172d4464-230a-4ca9-b0b8-0a462667b632.webp?v=1714837486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4802c3a7d3f664072056a227b85321898b3fd34b_172d4464-230a-4ca9-b0b8-0a462667b632.webp?v=1714837486","width":2000},{"alt":null,"id":23885089243235,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeec698cd9f26a4efc3c44afe1674a8c6c63974_b8f8eecc-da50-4392-82f3-c63d7d04a13d.webp?v=1714837488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeec698cd9f26a4efc3c44afe1674a8c6c63974_b8f8eecc-da50-4392-82f3-c63d7d04a13d.webp?v=1714837488","width":2000},{"alt":null,"id":23885089701987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da8529dc6dfe49803d3d07f2b6a1eeea100c488_35aa52a7-0258-4aaa-82a2-fd530e10cbca.webp?v=1714837490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8da8529dc6dfe49803d3d07f2b6a1eeea100c488_35aa52a7-0258-4aaa-82a2-fd530e10cbca.webp?v=1714837490","width":2000},{"alt":null,"id":23885090259043,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e3a7fd06f59f6062d787bb87fc45bb8f847aad_b1dd06ec-7386-48d1-955e-ccf741990846.webp?v=1714837493"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53e3a7fd06f59f6062d787bb87fc45bb8f847aad_b1dd06ec-7386-48d1-955e-ccf741990846.webp?v=1714837493","width":2000},{"alt":null,"id":23885090488419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6da18e5485c5540e00c39c115cda8f9949bf416e_abc95c03-fb6b-4b19-8680-d7f81717168f.webp?v=1714837495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6da18e5485c5540e00c39c115cda8f9949bf416e_abc95c03-fb6b-4b19-8680-d7f81717168f.webp?v=1714837495","width":2000},{"alt":null,"id":23885090979939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7f17455024f0c933ead67c0dafeef76b8c7c0b_6ce061de-c1da-43d5-bd93-b1552c6247d6.webp?v=1714837497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b7f17455024f0c933ead67c0dafeef76b8c7c0b_6ce061de-c1da-43d5-bd93-b1552c6247d6.webp?v=1714837497","width":2000},{"alt":null,"id":23885091307619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc21fd8ea74f5b8d3fdbd088a2d90883fc6dcb2_eff59c4c-daa4-423c-a04d-6f8992f595b3.webp?v=1714837499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbc21fd8ea74f5b8d3fdbd088a2d90883fc6dcb2_eff59c4c-daa4-423c-a04d-6f8992f595b3.webp?v=1714837499","width":2000},{"alt":null,"id":23885091897443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865109119f41abe53d32fc6487936673ea1ef6c8_8013c64c-9d64-4ccc-a92c-154dd6ca5659.webp?v=1714837502"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865109119f41abe53d32fc6487936673ea1ef6c8_8013c64c-9d64-4ccc-a92c-154dd6ca5659.webp?v=1714837502","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41895923286115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31479841521763,"product_id":7411201769571,"position":10,"created_at":"2024-05-04T23:45:02+08:00","updated_at":"2024-05-04T23:45:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865109119f41abe53d32fc6487936673ea1ef6c8_8013c64c-9d64-4ccc-a92c-154dd6ca5659.webp?v=1714837502","variant_ids":[41895923286115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PC09","featured_media":{"alt":null,"id":23885091897443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865109119f41abe53d32fc6487936673ea1ef6c8_8013c64c-9d64-4ccc-a92c-154dd6ca5659.webp?v=1714837502"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41895923286115,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0126124-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31479841521763,"product_id":7411201769571,"position":10,"created_at":"2024-05-04T23:45:02+08:00","updated_at":"2024-05-04T23:45:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865109119f41abe53d32fc6487936673ea1ef6c8_8013c64c-9d64-4ccc-a92c-154dd6ca5659.webp?v=1714837502","variant_ids":[41895923286115]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 14 Plus - 迪士尼-星際大戰 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":"MPB0126124-PC09","featured_media":{"alt":null,"id":23885091897443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/865109119f41abe53d32fc6487936673ea1ef6c8_8013c64c-9d64-4ccc-a92c-154dd6ca5659.webp?v=1714837502"}},"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: "停產" }