$product = {"id":7407782658147,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub!","handle":"iphone-14-plus-mod-nx-printable-pb81","description":null,"published_at":"2024-06-11T16:23:08+08:00","created_at":"2024-05-03T10:51:09+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 14 Plus","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":41878778445923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470378123363,"product_id":7407782658147,"position":8,"created_at":"2024-05-03T10:51:29+08:00","updated_at":"2024-05-03T10:51:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780010c3838abfbaa614e6eff82e2147e85defb6_96154e24-1d84-4f84-be2c-570a1c111de1.webp?v=1714704689","variant_ids":[41878778445923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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":"NPB0126124-PB81","featured_media":{"alt":null,"id":23875281322083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780010c3838abfbaa614e6eff82e2147e85defb6_96154e24-1d84-4f84-be2c-570a1c111de1.webp?v=1714704689"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da9066911920b54d108e912b2aafdb9ceb1e9096_954b0675-2972-4b56-8a72-7c2cfa1d7889.webp?v=1714704672","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c123e2d7393cfbbe574dccd7e8941f41759bab8d_710a7ace-25d8-4233-a11f-f3c0bc76145b.webp?v=1714704674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe5e6b8cab3a969cc9b02c2cb678c3f5a8eee6c_eaf91470-56a4-4ca2-ab6e-d8b19dbff549.webp?v=1714704676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a821db2321cfa464e2f3968f796e8aca2031759_35f406fb-64a1-431d-ade6-76df1d601e5e.webp?v=1714704679","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4801c74e2e26cda738dd7f996a0129d1edac92_e3c53fd0-537a-48c5-9933-2ea193e4ae99.webp?v=1714704682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd99c6a9e7d6b0025346a2881fb12b052c1bf50b_eda59939-4ac6-4728-b401-634883d44aa3.webp?v=1714704684","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fb36159468a7623ae408b26cc62330cc50d6037_80db05da-e207-40d8-ae8f-03613f440199.webp?v=1714704686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780010c3838abfbaa614e6eff82e2147e85defb6_96154e24-1d84-4f84-be2c-570a1c111de1.webp?v=1714704689","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ce7cc1c0a1aca71304f342ee0bee804bbde2f7_eff616df-2d4f-4285-a849-b214ec6521a6.webp?v=1714704692","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6b04c2cd65765f7494ebad4ea7a8ee8e499168_09e6878e-e522-4f9a-8195-9bb4cea5add0.webp?v=1714704694"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da9066911920b54d108e912b2aafdb9ceb1e9096_954b0675-2972-4b56-8a72-7c2cfa1d7889.webp?v=1714704672","options":["color"],"media":[{"alt":null,"id":23875276996707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da9066911920b54d108e912b2aafdb9ceb1e9096_954b0675-2972-4b56-8a72-7c2cfa1d7889.webp?v=1714704672"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da9066911920b54d108e912b2aafdb9ceb1e9096_954b0675-2972-4b56-8a72-7c2cfa1d7889.webp?v=1714704672","width":2000},{"alt":null,"id":23875277488227,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c123e2d7393cfbbe574dccd7e8941f41759bab8d_710a7ace-25d8-4233-a11f-f3c0bc76145b.webp?v=1714704674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c123e2d7393cfbbe574dccd7e8941f41759bab8d_710a7ace-25d8-4233-a11f-f3c0bc76145b.webp?v=1714704674","width":2000},{"alt":null,"id":23875278078051,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe5e6b8cab3a969cc9b02c2cb678c3f5a8eee6c_eaf91470-56a4-4ca2-ab6e-d8b19dbff549.webp?v=1714704676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fe5e6b8cab3a969cc9b02c2cb678c3f5a8eee6c_eaf91470-56a4-4ca2-ab6e-d8b19dbff549.webp?v=1714704676","width":2000},{"alt":null,"id":23875278831715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a821db2321cfa464e2f3968f796e8aca2031759_35f406fb-64a1-431d-ade6-76df1d601e5e.webp?v=1714704679"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a821db2321cfa464e2f3968f796e8aca2031759_35f406fb-64a1-431d-ade6-76df1d601e5e.webp?v=1714704679","width":2000},{"alt":null,"id":23875279323235,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4801c74e2e26cda738dd7f996a0129d1edac92_e3c53fd0-537a-48c5-9933-2ea193e4ae99.webp?v=1714704682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e4801c74e2e26cda738dd7f996a0129d1edac92_e3c53fd0-537a-48c5-9933-2ea193e4ae99.webp?v=1714704682","width":2000},{"alt":null,"id":23875280109667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd99c6a9e7d6b0025346a2881fb12b052c1bf50b_eda59939-4ac6-4728-b401-634883d44aa3.webp?v=1714704684"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd99c6a9e7d6b0025346a2881fb12b052c1bf50b_eda59939-4ac6-4728-b401-634883d44aa3.webp?v=1714704684","width":2000},{"alt":null,"id":23875280633955,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fb36159468a7623ae408b26cc62330cc50d6037_80db05da-e207-40d8-ae8f-03613f440199.webp?v=1714704686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fb36159468a7623ae408b26cc62330cc50d6037_80db05da-e207-40d8-ae8f-03613f440199.webp?v=1714704686","width":2000},{"alt":null,"id":23875281322083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780010c3838abfbaa614e6eff82e2147e85defb6_96154e24-1d84-4f84-be2c-570a1c111de1.webp?v=1714704689"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780010c3838abfbaa614e6eff82e2147e85defb6_96154e24-1d84-4f84-be2c-570a1c111de1.webp?v=1714704689","width":2000},{"alt":null,"id":23875282075747,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ce7cc1c0a1aca71304f342ee0bee804bbde2f7_eff616df-2d4f-4285-a849-b214ec6521a6.webp?v=1714704692"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1ce7cc1c0a1aca71304f342ee0bee804bbde2f7_eff616df-2d4f-4285-a849-b214ec6521a6.webp?v=1714704692","width":2000},{"alt":null,"id":23875282731107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6b04c2cd65765f7494ebad4ea7a8ee8e499168_09e6878e-e522-4f9a-8195-9bb4cea5add0.webp?v=1714704694"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b6b04c2cd65765f7494ebad4ea7a8ee8e499168_09e6878e-e522-4f9a-8195-9bb4cea5add0.webp?v=1714704694","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41878778445923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470378123363,"product_id":7407782658147,"position":8,"created_at":"2024-05-03T10:51:29+08:00","updated_at":"2024-05-03T10:51:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780010c3838abfbaa614e6eff82e2147e85defb6_96154e24-1d84-4f84-be2c-570a1c111de1.webp?v=1714704689","variant_ids":[41878778445923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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":"NPB0126124-PB81","featured_media":{"alt":null,"id":23875281322083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780010c3838abfbaa614e6eff82e2147e85defb6_96154e24-1d84-4f84-be2c-570a1c111de1.webp?v=1714704689"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41878778445923,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470378123363,"product_id":7407782658147,"position":8,"created_at":"2024-05-03T10:51:29+08:00","updated_at":"2024-05-03T10:51:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780010c3838abfbaa614e6eff82e2147e85defb6_96154e24-1d84-4f84-be2c-570a1c111de1.webp?v=1714704689","variant_ids":[41878778445923]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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":"NPB0126124-PB81","featured_media":{"alt":null,"id":23875281322083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/780010c3838abfbaa614e6eff82e2147e85defb6_96154e24-1d84-4f84-be2c-570a1c111de1.webp?v=1714704689"}},"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: "停產" }