$product = {"id":7408506470499,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機","handle":"iphone-12-mini-mod-nx-printable-pb74","description":null,"published_at":"2024-06-11T16:39:10+08:00","created_at":"2024-05-03T15:40:05+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":41886263705699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31472453288035,"product_id":7408506470499,"position":4,"created_at":"2024-05-03T15:40:15+08:00","updated_at":"2024-05-03T15:40:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a17d87e1f59a9e139df41f1357ada7c6c251dde_461e878d-adaf-4f84-85a9-bb5aab591cb6.webp?v=1714722015","variant_ids":[41886263705699]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23877370380387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a17d87e1f59a9e139df41f1357ada7c6c251dde_461e878d-adaf-4f84-85a9-bb5aab591cb6.webp?v=1714722015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f1aa956dfff805f4070ef51fe6dff84ab93d4e_517ba656-d7c6-42f5-b314-f777d0b2a796.webp?v=1714722008","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7cc376d4f1e6b5e0b757eb080b50333596f633_b4c83cfa-940c-42fb-bcac-a0bdf0dea9e4.webp?v=1714722010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa532d858f0cc3bdc0e78f899d85bafd28051aac_af196d11-040b-4736-a02c-bde4890c36f6.webp?v=1714722013","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a17d87e1f59a9e139df41f1357ada7c6c251dde_461e878d-adaf-4f84-85a9-bb5aab591cb6.webp?v=1714722015","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d98531dd36ad7053d50a6ec89d273c732a40659_fe5b8dc7-5303-46c7-b689-e2ffb63ed0e2.webp?v=1714722018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3320c7937ec1c26af09aae9b58f706cce2fc434_7e279f51-2214-40dd-a75a-04946f682808.webp?v=1714722020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e73e7e6b7cc1a616f6740886958623ed7693ae3a_f438611e-8b4b-40d7-a2e4-b7c3817e027b.webp?v=1714722023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca995073e403e0e99f191469b7a38045c1591f8_80cd6b1f-0fc1-4760-9afa-0bd533bf5c76.webp?v=1714722025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6776bf2a36788e483fbf9d2c260f953ff7ebab0a_03e62e7d-2436-48fa-ac95-8acd217fcda5.webp?v=1714722028","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a27d6cfb90ce01abcc020d11bde78dbea5797_013a5c61-3aa0-4210-83b7-a2ed014e2f17.webp?v=1714722030","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a27f2fcb631f71ea994bf2f02b7444fb923c842_7cdc11c8-c19a-49a9-a169-7c4fe4290fae.webp?v=1714722033"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f1aa956dfff805f4070ef51fe6dff84ab93d4e_517ba656-d7c6-42f5-b314-f777d0b2a796.webp?v=1714722008","options":["color"],"media":[{"alt":null,"id":23877368643683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f1aa956dfff805f4070ef51fe6dff84ab93d4e_517ba656-d7c6-42f5-b314-f777d0b2a796.webp?v=1714722008"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c5f1aa956dfff805f4070ef51fe6dff84ab93d4e_517ba656-d7c6-42f5-b314-f777d0b2a796.webp?v=1714722008","width":2000},{"alt":null,"id":23877369167971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7cc376d4f1e6b5e0b757eb080b50333596f633_b4c83cfa-940c-42fb-bcac-a0bdf0dea9e4.webp?v=1714722010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e7cc376d4f1e6b5e0b757eb080b50333596f633_b4c83cfa-940c-42fb-bcac-a0bdf0dea9e4.webp?v=1714722010","width":2000},{"alt":null,"id":23877369856099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa532d858f0cc3bdc0e78f899d85bafd28051aac_af196d11-040b-4736-a02c-bde4890c36f6.webp?v=1714722013"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa532d858f0cc3bdc0e78f899d85bafd28051aac_af196d11-040b-4736-a02c-bde4890c36f6.webp?v=1714722013","width":2000},{"alt":null,"id":23877370380387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a17d87e1f59a9e139df41f1357ada7c6c251dde_461e878d-adaf-4f84-85a9-bb5aab591cb6.webp?v=1714722015"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a17d87e1f59a9e139df41f1357ada7c6c251dde_461e878d-adaf-4f84-85a9-bb5aab591cb6.webp?v=1714722015","width":2000},{"alt":null,"id":23877370871907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d98531dd36ad7053d50a6ec89d273c732a40659_fe5b8dc7-5303-46c7-b689-e2ffb63ed0e2.webp?v=1714722018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d98531dd36ad7053d50a6ec89d273c732a40659_fe5b8dc7-5303-46c7-b689-e2ffb63ed0e2.webp?v=1714722018","width":2000},{"alt":null,"id":23877371363427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3320c7937ec1c26af09aae9b58f706cce2fc434_7e279f51-2214-40dd-a75a-04946f682808.webp?v=1714722020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e3320c7937ec1c26af09aae9b58f706cce2fc434_7e279f51-2214-40dd-a75a-04946f682808.webp?v=1714722020","width":2000},{"alt":null,"id":23877371920483,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e73e7e6b7cc1a616f6740886958623ed7693ae3a_f438611e-8b4b-40d7-a2e4-b7c3817e027b.webp?v=1714722023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e73e7e6b7cc1a616f6740886958623ed7693ae3a_f438611e-8b4b-40d7-a2e4-b7c3817e027b.webp?v=1714722023","width":2000},{"alt":null,"id":23877372510307,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca995073e403e0e99f191469b7a38045c1591f8_80cd6b1f-0fc1-4760-9afa-0bd533bf5c76.webp?v=1714722025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ca995073e403e0e99f191469b7a38045c1591f8_80cd6b1f-0fc1-4760-9afa-0bd533bf5c76.webp?v=1714722025","width":2000},{"alt":null,"id":23877373460579,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6776bf2a36788e483fbf9d2c260f953ff7ebab0a_03e62e7d-2436-48fa-ac95-8acd217fcda5.webp?v=1714722028"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6776bf2a36788e483fbf9d2c260f953ff7ebab0a_03e62e7d-2436-48fa-ac95-8acd217fcda5.webp?v=1714722028","width":2000},{"alt":null,"id":23877373984867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a27d6cfb90ce01abcc020d11bde78dbea5797_013a5c61-3aa0-4210-83b7-a2ed014e2f17.webp?v=1714722030"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/465a27d6cfb90ce01abcc020d11bde78dbea5797_013a5c61-3aa0-4210-83b7-a2ed014e2f17.webp?v=1714722030","width":2000},{"alt":null,"id":23877374607459,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a27f2fcb631f71ea994bf2f02b7444fb923c842_7cdc11c8-c19a-49a9-a169-7c4fe4290fae.webp?v=1714722033"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a27f2fcb631f71ea994bf2f02b7444fb923c842_7cdc11c8-c19a-49a9-a169-7c4fe4290fae.webp?v=1714722033","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41886263705699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31472453288035,"product_id":7408506470499,"position":4,"created_at":"2024-05-03T15:40:15+08:00","updated_at":"2024-05-03T15:40:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a17d87e1f59a9e139df41f1357ada7c6c251dde_461e878d-adaf-4f84-85a9-bb5aab591cb6.webp?v=1714722015","variant_ids":[41886263705699]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23877370380387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a17d87e1f59a9e139df41f1357ada7c6c251dde_461e878d-adaf-4f84-85a9-bb5aab591cb6.webp?v=1714722015"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41886263705699,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-PB74","requires_shipping":true,"taxable":true,"featured_image":{"id":31472453288035,"product_id":7408506470499,"position":4,"created_at":"2024-05-03T15:40:15+08:00","updated_at":"2024-05-03T15:40:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a17d87e1f59a9e139df41f1357ada7c6c251dde_461e878d-adaf-4f84-85a9-bb5aab591cb6.webp?v=1714722015","variant_ids":[41886263705699]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - X翼戰機 - 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-PB74","featured_media":{"alt":null,"id":23877370380387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a17d87e1f59a9e139df41f1357ada7c6c251dde_461e878d-adaf-4f84-85a9-bb5aab591cb6.webp?v=1714722015"}},"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: "停產" }