$product = {"id":7416383504483,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列","handle":"iphone-8-mod-nx-printable-pc09","description":null,"published_at":"2024-06-11T16:57:35+08:00","created_at":"2024-05-06T14:46:20+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 8","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":41919146164323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31491996713059,"product_id":7416383504483,"position":9,"created_at":"2024-05-06T14:46:41+08:00","updated_at":"2024-05-06T14:46:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29fb3fdd685b195a55ccf9f1b5a3ca65e86d276f_364dc120-b6de-46a7-9d0f-c7f3fe45452b.webp?v=1714978001","variant_ids":[41919146164323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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":"NPB0105424-PC09","featured_media":{"alt":null,"id":23897410371683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29fb3fdd685b195a55ccf9f1b5a3ca65e86d276f_364dc120-b6de-46a7-9d0f-c7f3fe45452b.webp?v=1714978001"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475e1ec64c121eb491f3079ab9f32a6b215c8280_2f3b97f5-2980-45be-a500-30c3ff165343.webp?v=1714977983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1983a8c929cc569f6225aea02ced968688777f8c_11735e10-05b1-47e3-997f-7515c044e992.webp?v=1714977985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4b03ecebcf3d60d1ea3c46c7216976fb19ee501_5be30f31-f276-4199-9293-2662183a5333.webp?v=1714977987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e02e77206aacbaee7338bc23f0fd5b0628c2441_3e70621a-f91d-43ec-8d0f-9f73abe69da1.webp?v=1714977990","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84522b8e0843d404ead48066e3ae04ac9b7b24bb_9fedbfe2-7c64-4252-88f8-366664d3dbb1.webp?v=1714977992","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fba8f6e7397a041e12b8bae18e3ec705c614320_86f1a455-34ba-4481-b1f3-38eca1626b59.webp?v=1714977994","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14df8cc51e430ef3d20af9a220f3f42ce2f9a52b_ae32c515-a2f1-4812-940f-d3213c28cc9a.webp?v=1714977996","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6538bce8bff2462e5652aac3f26d1eef250b5e89_11e15491-e8db-4281-9a5f-273f90be0450.webp?v=1714977998","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29fb3fdd685b195a55ccf9f1b5a3ca65e86d276f_364dc120-b6de-46a7-9d0f-c7f3fe45452b.webp?v=1714978001","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db0883f424cacc01f5c1cdfd996636857904aec7_2cca0dac-4567-466c-b257-3ee037a5c283.webp?v=1714978003"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475e1ec64c121eb491f3079ab9f32a6b215c8280_2f3b97f5-2980-45be-a500-30c3ff165343.webp?v=1714977983","options":["color"],"media":[{"alt":null,"id":23897405522019,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475e1ec64c121eb491f3079ab9f32a6b215c8280_2f3b97f5-2980-45be-a500-30c3ff165343.webp?v=1714977983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/475e1ec64c121eb491f3079ab9f32a6b215c8280_2f3b97f5-2980-45be-a500-30c3ff165343.webp?v=1714977983","width":2000},{"alt":null,"id":23897406341219,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1983a8c929cc569f6225aea02ced968688777f8c_11735e10-05b1-47e3-997f-7515c044e992.webp?v=1714977985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1983a8c929cc569f6225aea02ced968688777f8c_11735e10-05b1-47e3-997f-7515c044e992.webp?v=1714977985","width":2000},{"alt":null,"id":23897406963811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4b03ecebcf3d60d1ea3c46c7216976fb19ee501_5be30f31-f276-4199-9293-2662183a5333.webp?v=1714977987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4b03ecebcf3d60d1ea3c46c7216976fb19ee501_5be30f31-f276-4199-9293-2662183a5333.webp?v=1714977987","width":2000},{"alt":null,"id":23897407324259,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e02e77206aacbaee7338bc23f0fd5b0628c2441_3e70621a-f91d-43ec-8d0f-9f73abe69da1.webp?v=1714977990"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e02e77206aacbaee7338bc23f0fd5b0628c2441_3e70621a-f91d-43ec-8d0f-9f73abe69da1.webp?v=1714977990","width":2000},{"alt":null,"id":23897407881315,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84522b8e0843d404ead48066e3ae04ac9b7b24bb_9fedbfe2-7c64-4252-88f8-366664d3dbb1.webp?v=1714977992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84522b8e0843d404ead48066e3ae04ac9b7b24bb_9fedbfe2-7c64-4252-88f8-366664d3dbb1.webp?v=1714977992","width":2000},{"alt":null,"id":23897408503907,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fba8f6e7397a041e12b8bae18e3ec705c614320_86f1a455-34ba-4481-b1f3-38eca1626b59.webp?v=1714977994"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fba8f6e7397a041e12b8bae18e3ec705c614320_86f1a455-34ba-4481-b1f3-38eca1626b59.webp?v=1714977994","width":2000},{"alt":null,"id":23897408962659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14df8cc51e430ef3d20af9a220f3f42ce2f9a52b_ae32c515-a2f1-4812-940f-d3213c28cc9a.webp?v=1714977996"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14df8cc51e430ef3d20af9a220f3f42ce2f9a52b_ae32c515-a2f1-4812-940f-d3213c28cc9a.webp?v=1714977996","width":2000},{"alt":null,"id":23897409978467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6538bce8bff2462e5652aac3f26d1eef250b5e89_11e15491-e8db-4281-9a5f-273f90be0450.webp?v=1714977998"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6538bce8bff2462e5652aac3f26d1eef250b5e89_11e15491-e8db-4281-9a5f-273f90be0450.webp?v=1714977998","width":2000},{"alt":null,"id":23897410371683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29fb3fdd685b195a55ccf9f1b5a3ca65e86d276f_364dc120-b6de-46a7-9d0f-c7f3fe45452b.webp?v=1714978001"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29fb3fdd685b195a55ccf9f1b5a3ca65e86d276f_364dc120-b6de-46a7-9d0f-c7f3fe45452b.webp?v=1714978001","width":2000},{"alt":null,"id":23897410961507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db0883f424cacc01f5c1cdfd996636857904aec7_2cca0dac-4567-466c-b257-3ee037a5c283.webp?v=1714978003"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/db0883f424cacc01f5c1cdfd996636857904aec7_2cca0dac-4567-466c-b257-3ee037a5c283.webp?v=1714978003","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919146164323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31491996713059,"product_id":7416383504483,"position":9,"created_at":"2024-05-06T14:46:41+08:00","updated_at":"2024-05-06T14:46:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29fb3fdd685b195a55ccf9f1b5a3ca65e86d276f_364dc120-b6de-46a7-9d0f-c7f3fe45452b.webp?v=1714978001","variant_ids":[41919146164323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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":"NPB0105424-PC09","featured_media":{"alt":null,"id":23897410371683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29fb3fdd685b195a55ccf9f1b5a3ca65e86d276f_364dc120-b6de-46a7-9d0f-c7f3fe45452b.webp?v=1714978001"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919146164323,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PC09","requires_shipping":true,"taxable":true,"featured_image":{"id":31491996713059,"product_id":7416383504483,"position":9,"created_at":"2024-05-06T14:46:41+08:00","updated_at":"2024-05-06T14:46:41+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29fb3fdd685b195a55ccf9f1b5a3ca65e86d276f_364dc120-b6de-46a7-9d0f-c7f3fe45452b.webp?v=1714978001","variant_ids":[41919146164323]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 丘巴卡-中鋒-幽默系列 - 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":"NPB0105424-PC09","featured_media":{"alt":null,"id":23897410371683,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29fb3fdd685b195a55ccf9f1b5a3ca65e86d276f_364dc120-b6de-46a7-9d0f-c7f3fe45452b.webp?v=1714978001"}},"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: "停產" }