$product = {"id":7408403906659,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典","handle":"iphone-12-mini-mod-nx-printable-pb76","description":null,"published_at":"2024-06-11T16:36:18+08:00","created_at":"2024-05-03T15:19:53+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 12 mini","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":41885100408931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31472176037987,"product_id":7408403906659,"position":6,"created_at":"2024-05-03T15:20:07+08:00","updated_at":"2024-05-03T15:20:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea88a092c54570f0841713c9dfcc95e62ee610ab_2b4066af-e909-4eb9-8e2d-b88dc9498982.webp?v=1714720807","variant_ids":[41885100408931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"NPB0118424-PB76","featured_media":{"alt":null,"id":23877091655779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea88a092c54570f0841713c9dfcc95e62ee610ab_2b4066af-e909-4eb9-8e2d-b88dc9498982.webp?v=1714720807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8875d6b2eed7bb70d780d64c5170a47a4eda90d4_dd2061ae-c680-499d-9050-7c9ea6150eab.webp?v=1714720795","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9bc7cda68a5bfb9cc6b568404c8520f612625c_79c3216b-d306-4363-b954-f3283c013b5a.webp?v=1714720798","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fc67309bf3d3bfb46320ca036c0e0f76d76d8b8_d8a6796b-74af-4846-8a38-40a49352e780.webp?v=1714720800","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3ce869d6a512d5037df60c4c1f2ff2c6f6afa6e_25e934c5-28e4-4559-a668-ce2df2c277c4.webp?v=1714720802","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/743c250317efab60f0b6950fda677d0fffabfb79_3fdd2223-e14f-4781-a818-50576b4f2d05.webp?v=1714720804","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea88a092c54570f0841713c9dfcc95e62ee610ab_2b4066af-e909-4eb9-8e2d-b88dc9498982.webp?v=1714720807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d9a80741d8501041eea43af82ae9220c3cb7ac8_428328cd-786a-4dfb-bbfa-6f230972c39e.webp?v=1714720809","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19fa9d76c219282e34b3e515468e0d0ff0a24a92_f20d0aa4-90ba-4cf9-bdff-1d2416efe48f.webp?v=1714720811","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5af35d63885ec96ba606f72fc2e4fbea7f6652_da61c473-3f79-44ed-9c3e-d7567342a931.webp?v=1714720813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34e1dc999c62349555fd585eb63739f727ab736d_2dc7d92a-413e-47da-828c-a75b3d212ce3.webp?v=1714720816","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df6fa67946171c09810a3937340383ad239a032_768cddc1-1fc3-4f0b-8570-fc2efd194744.webp?v=1714720818"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8875d6b2eed7bb70d780d64c5170a47a4eda90d4_dd2061ae-c680-499d-9050-7c9ea6150eab.webp?v=1714720795","options":["color"],"media":[{"alt":null,"id":23877089296483,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8875d6b2eed7bb70d780d64c5170a47a4eda90d4_dd2061ae-c680-499d-9050-7c9ea6150eab.webp?v=1714720795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8875d6b2eed7bb70d780d64c5170a47a4eda90d4_dd2061ae-c680-499d-9050-7c9ea6150eab.webp?v=1714720795","width":2000},{"alt":null,"id":23877089820771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9bc7cda68a5bfb9cc6b568404c8520f612625c_79c3216b-d306-4363-b954-f3283c013b5a.webp?v=1714720798"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e9bc7cda68a5bfb9cc6b568404c8520f612625c_79c3216b-d306-4363-b954-f3283c013b5a.webp?v=1714720798","width":2000},{"alt":null,"id":23877090246755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fc67309bf3d3bfb46320ca036c0e0f76d76d8b8_d8a6796b-74af-4846-8a38-40a49352e780.webp?v=1714720800"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fc67309bf3d3bfb46320ca036c0e0f76d76d8b8_d8a6796b-74af-4846-8a38-40a49352e780.webp?v=1714720800","width":2000},{"alt":null,"id":23877090705507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3ce869d6a512d5037df60c4c1f2ff2c6f6afa6e_25e934c5-28e4-4559-a668-ce2df2c277c4.webp?v=1714720802"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3ce869d6a512d5037df60c4c1f2ff2c6f6afa6e_25e934c5-28e4-4559-a668-ce2df2c277c4.webp?v=1714720802","width":2000},{"alt":null,"id":23877091164259,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/743c250317efab60f0b6950fda677d0fffabfb79_3fdd2223-e14f-4781-a818-50576b4f2d05.webp?v=1714720804"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/743c250317efab60f0b6950fda677d0fffabfb79_3fdd2223-e14f-4781-a818-50576b4f2d05.webp?v=1714720804","width":2000},{"alt":null,"id":23877091655779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea88a092c54570f0841713c9dfcc95e62ee610ab_2b4066af-e909-4eb9-8e2d-b88dc9498982.webp?v=1714720807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea88a092c54570f0841713c9dfcc95e62ee610ab_2b4066af-e909-4eb9-8e2d-b88dc9498982.webp?v=1714720807","width":2000},{"alt":null,"id":23877092311139,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d9a80741d8501041eea43af82ae9220c3cb7ac8_428328cd-786a-4dfb-bbfa-6f230972c39e.webp?v=1714720809"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d9a80741d8501041eea43af82ae9220c3cb7ac8_428328cd-786a-4dfb-bbfa-6f230972c39e.webp?v=1714720809","width":2000},{"alt":null,"id":23877093294179,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19fa9d76c219282e34b3e515468e0d0ff0a24a92_f20d0aa4-90ba-4cf9-bdff-1d2416efe48f.webp?v=1714720811"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19fa9d76c219282e34b3e515468e0d0ff0a24a92_f20d0aa4-90ba-4cf9-bdff-1d2416efe48f.webp?v=1714720811","width":2000},{"alt":null,"id":23877093785699,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5af35d63885ec96ba606f72fc2e4fbea7f6652_da61c473-3f79-44ed-9c3e-d7567342a931.webp?v=1714720813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa5af35d63885ec96ba606f72fc2e4fbea7f6652_da61c473-3f79-44ed-9c3e-d7567342a931.webp?v=1714720813","width":2000},{"alt":null,"id":23877094277219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34e1dc999c62349555fd585eb63739f727ab736d_2dc7d92a-413e-47da-828c-a75b3d212ce3.webp?v=1714720816"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34e1dc999c62349555fd585eb63739f727ab736d_2dc7d92a-413e-47da-828c-a75b3d212ce3.webp?v=1714720816","width":2000},{"alt":null,"id":23877095620707,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df6fa67946171c09810a3937340383ad239a032_768cddc1-1fc3-4f0b-8570-fc2efd194744.webp?v=1714720818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df6fa67946171c09810a3937340383ad239a032_768cddc1-1fc3-4f0b-8570-fc2efd194744.webp?v=1714720818","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885100408931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31472176037987,"product_id":7408403906659,"position":6,"created_at":"2024-05-03T15:20:07+08:00","updated_at":"2024-05-03T15:20:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea88a092c54570f0841713c9dfcc95e62ee610ab_2b4066af-e909-4eb9-8e2d-b88dc9498982.webp?v=1714720807","variant_ids":[41885100408931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"NPB0118424-PB76","featured_media":{"alt":null,"id":23877091655779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea88a092c54570f0841713c9dfcc95e62ee610ab_2b4066af-e909-4eb9-8e2d-b88dc9498982.webp?v=1714720807"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885100408931,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31472176037987,"product_id":7408403906659,"position":6,"created_at":"2024-05-03T15:20:07+08:00","updated_at":"2024-05-03T15:20:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea88a092c54570f0841713c9dfcc95e62ee610ab_2b4066af-e909-4eb9-8e2d-b88dc9498982.webp?v=1714720807","variant_ids":[41885100408931]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"NPB0118424-PB76","featured_media":{"alt":null,"id":23877091655779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea88a092c54570f0841713c9dfcc95e62ee610ab_2b4066af-e909-4eb9-8e2d-b88dc9498982.webp?v=1714720807"}},"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: "停產" }