$product = {"id":7408446341219,"title":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-12-mini-mod-nx-printable-fz04","description":null,"published_at":"2024-06-11T16:37:27+08:00","created_at":"2024-05-03T15:28:02+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 12 mini","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-shiba-says","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":41885568270435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472302293091,"product_id":7408446341219,"position":9,"created_at":"2024-05-03T15:28:23+08:00","updated_at":"2024-05-03T15:28:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cbe48759505b45ebfd67a96a267eae4979c229_8b4371e6-0de9-44d0-a715-3c725b919280.webp?v=1714721303","variant_ids":[41885568270435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-FZ04","featured_media":{"alt":null,"id":23877218664547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cbe48759505b45ebfd67a96a267eae4979c229_8b4371e6-0de9-44d0-a715-3c725b919280.webp?v=1714721303"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f87611f5d7a89696707bcec2b7ab246abc56861_278c7fbb-48da-43fb-9f9a-16bbfccc9dab.webp?v=1714721284","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24c715b07d61535ecaba6af5b133d47c2fd6f40_aed393e2-6daf-4bad-851e-185336b29428.webp?v=1714721287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1796dce777bfb918865ce7c10cce166ebeb42db_9bd4f2b2-32be-4e9d-a6cc-765b9cebe31c.webp?v=1714721289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/429f494524c1c8ef7d1593c1791e9fb82c8ba488_6ccc00cd-54ab-40d3-bcc7-82552e028405.webp?v=1714721291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea8e9307a41f24be78bf76f929e28ae85387773c_515b4146-d4ef-4cb2-9cc6-bcb3fa8681ca.webp?v=1714721294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/861682ce072639efd8ea6e10b78eb61cb14eb0cf_cb7b24f9-9ee4-4ed2-98f0-b47315afb868.webp?v=1714721296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e640d47b453d3572f32ff158fcfeefd963893918_930a8a84-8189-4380-af68-e08109c4a31a.webp?v=1714721298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21665651d071d2b06743d4ed90b4da98f3b289f3_f06bf394-a8cd-4a40-bac2-e69125fb63ad.webp?v=1714721301","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cbe48759505b45ebfd67a96a267eae4979c229_8b4371e6-0de9-44d0-a715-3c725b919280.webp?v=1714721303","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af8ff0c2448da474fad28555fe97ee760fd79e_76b1eb0a-d59c-41f5-8a52-e52b0ef40701.webp?v=1714721305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b27f7d67b392ec0b6cfd9b50c9b975fd0a85ad2d_f7f001da-ebdc-4091-87a2-63ae30117367.webp?v=1714721307"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f87611f5d7a89696707bcec2b7ab246abc56861_278c7fbb-48da-43fb-9f9a-16bbfccc9dab.webp?v=1714721284","options":["color"],"media":[{"alt":null,"id":23877214601315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f87611f5d7a89696707bcec2b7ab246abc56861_278c7fbb-48da-43fb-9f9a-16bbfccc9dab.webp?v=1714721284"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8f87611f5d7a89696707bcec2b7ab246abc56861_278c7fbb-48da-43fb-9f9a-16bbfccc9dab.webp?v=1714721284","width":2000},{"alt":null,"id":23877215125603,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24c715b07d61535ecaba6af5b133d47c2fd6f40_aed393e2-6daf-4bad-851e-185336b29428.webp?v=1714721287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c24c715b07d61535ecaba6af5b133d47c2fd6f40_aed393e2-6daf-4bad-851e-185336b29428.webp?v=1714721287","width":2000},{"alt":null,"id":23877215682659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1796dce777bfb918865ce7c10cce166ebeb42db_9bd4f2b2-32be-4e9d-a6cc-765b9cebe31c.webp?v=1714721289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1796dce777bfb918865ce7c10cce166ebeb42db_9bd4f2b2-32be-4e9d-a6cc-765b9cebe31c.webp?v=1714721289","width":2000},{"alt":null,"id":23877216174179,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/429f494524c1c8ef7d1593c1791e9fb82c8ba488_6ccc00cd-54ab-40d3-bcc7-82552e028405.webp?v=1714721291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/429f494524c1c8ef7d1593c1791e9fb82c8ba488_6ccc00cd-54ab-40d3-bcc7-82552e028405.webp?v=1714721291","width":2000},{"alt":null,"id":23877216665699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea8e9307a41f24be78bf76f929e28ae85387773c_515b4146-d4ef-4cb2-9cc6-bcb3fa8681ca.webp?v=1714721294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea8e9307a41f24be78bf76f929e28ae85387773c_515b4146-d4ef-4cb2-9cc6-bcb3fa8681ca.webp?v=1714721294","width":2000},{"alt":null,"id":23877217222755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/861682ce072639efd8ea6e10b78eb61cb14eb0cf_cb7b24f9-9ee4-4ed2-98f0-b47315afb868.webp?v=1714721296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/861682ce072639efd8ea6e10b78eb61cb14eb0cf_cb7b24f9-9ee4-4ed2-98f0-b47315afb868.webp?v=1714721296","width":2000},{"alt":null,"id":23877217648739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e640d47b453d3572f32ff158fcfeefd963893918_930a8a84-8189-4380-af68-e08109c4a31a.webp?v=1714721298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e640d47b453d3572f32ff158fcfeefd963893918_930a8a84-8189-4380-af68-e08109c4a31a.webp?v=1714721298","width":2000},{"alt":null,"id":23877218173027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21665651d071d2b06743d4ed90b4da98f3b289f3_f06bf394-a8cd-4a40-bac2-e69125fb63ad.webp?v=1714721301"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21665651d071d2b06743d4ed90b4da98f3b289f3_f06bf394-a8cd-4a40-bac2-e69125fb63ad.webp?v=1714721301","width":2000},{"alt":null,"id":23877218664547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cbe48759505b45ebfd67a96a267eae4979c229_8b4371e6-0de9-44d0-a715-3c725b919280.webp?v=1714721303"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cbe48759505b45ebfd67a96a267eae4979c229_8b4371e6-0de9-44d0-a715-3c725b919280.webp?v=1714721303","width":2000},{"alt":null,"id":23877219090531,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af8ff0c2448da474fad28555fe97ee760fd79e_76b1eb0a-d59c-41f5-8a52-e52b0ef40701.webp?v=1714721305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91af8ff0c2448da474fad28555fe97ee760fd79e_76b1eb0a-d59c-41f5-8a52-e52b0ef40701.webp?v=1714721305","width":2000},{"alt":null,"id":23877219483747,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b27f7d67b392ec0b6cfd9b50c9b975fd0a85ad2d_f7f001da-ebdc-4091-87a2-63ae30117367.webp?v=1714721307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b27f7d67b392ec0b6cfd9b50c9b975fd0a85ad2d_f7f001da-ebdc-4091-87a2-63ae30117367.webp?v=1714721307","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41885568270435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472302293091,"product_id":7408446341219,"position":9,"created_at":"2024-05-03T15:28:23+08:00","updated_at":"2024-05-03T15:28:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cbe48759505b45ebfd67a96a267eae4979c229_8b4371e6-0de9-44d0-a715-3c725b919280.webp?v=1714721303","variant_ids":[41885568270435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-FZ04","featured_media":{"alt":null,"id":23877218664547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cbe48759505b45ebfd67a96a267eae4979c229_8b4371e6-0de9-44d0-a715-3c725b919280.webp?v=1714721303"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41885568270435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118424-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31472302293091,"product_id":7408446341219,"position":9,"created_at":"2024-05-03T15:28:23+08:00","updated_at":"2024-05-03T15:28:23+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cbe48759505b45ebfd67a96a267eae4979c229_8b4371e6-0de9-44d0-a715-3c725b919280.webp?v=1714721303","variant_ids":[41885568270435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 mini - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥ - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118424-FZ04","featured_media":{"alt":null,"id":23877218664547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5cbe48759505b45ebfd67a96a267eae4979c229_8b4371e6-0de9-44d0-a715-3c725b919280.webp?v=1714721303"}},"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: "停產" }