$product = {"id":7416345067619,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列","handle":"iphone-8-mod-nx-printable-pb64","description":null,"published_at":"2024-06-11T16:56:30+08:00","created_at":"2024-05-06T14:38:48+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":41918725095523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31491900538979,"product_id":7416345067619,"position":8,"created_at":"2024-05-06T14:39:06+08:00","updated_at":"2024-05-06T14:39:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb5912cf34105fb4fff9bebfa89fabbf73426e_0cfcedae-c3cb-4f79-b363-6d1933b4c52c.webp?v=1714977546","variant_ids":[41918725095523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23897313476707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb5912cf34105fb4fff9bebfa89fabbf73426e_0cfcedae-c3cb-4f79-b363-6d1933b4c52c.webp?v=1714977546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae414473d3204685ebee389781ec4cbee8712505_0211e4f7-0591-40f6-8e90-3766b8f796a9.webp?v=1714977530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee7e446ce62a7d3ff2587b36a3332adf84d69d_be66476c-ee01-4d66-86c7-b84e859e3f98.webp?v=1714977532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89db0e204446ce2164021d53edd92714dda7ec36_1d8a549a-a083-4a5d-bea7-fa3b0f4088a4.webp?v=1714977535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c42caf28103612bb0b54a9a323187433dcf4e7c_7aefba75-2df8-422e-9cae-6b7145dac12b.webp?v=1714977537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c3b8b70f61bbbb236fc1df0c90f13ad6d50b032_776820c3-5539-46d5-b38f-e6a1c70d852a.webp?v=1714977539","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce5fca1340effd0d5f428eb9f339da3a2ff88311_9e09c2ea-462f-4cc4-8629-b24a463549be.webp?v=1714977542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b261ec3601317ba9f4468b218fd663253d1eb3f1_1abfbb8b-5bf8-41df-bd9f-f547428ff3b0.webp?v=1714977544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb5912cf34105fb4fff9bebfa89fabbf73426e_0cfcedae-c3cb-4f79-b363-6d1933b4c52c.webp?v=1714977546","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de0aafc1f738ef7844b8f598ac770925e8713c1b_00854fc1-3a2d-4dd2-96be-b77e9324b773.webp?v=1714977549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ff50a05406b2960daf34c923571b154088a3333_3c0ef2d1-2d5f-4ed6-922f-9c4a6fcd67e9.webp?v=1714977551"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae414473d3204685ebee389781ec4cbee8712505_0211e4f7-0591-40f6-8e90-3766b8f796a9.webp?v=1714977530","options":["color"],"media":[{"alt":null,"id":23897310232675,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae414473d3204685ebee389781ec4cbee8712505_0211e4f7-0591-40f6-8e90-3766b8f796a9.webp?v=1714977530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ae414473d3204685ebee389781ec4cbee8712505_0211e4f7-0591-40f6-8e90-3766b8f796a9.webp?v=1714977530","width":2000},{"alt":null,"id":23897310527587,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee7e446ce62a7d3ff2587b36a3332adf84d69d_be66476c-ee01-4d66-86c7-b84e859e3f98.webp?v=1714977532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aee7e446ce62a7d3ff2587b36a3332adf84d69d_be66476c-ee01-4d66-86c7-b84e859e3f98.webp?v=1714977532","width":2000},{"alt":null,"id":23897311084643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89db0e204446ce2164021d53edd92714dda7ec36_1d8a549a-a083-4a5d-bea7-fa3b0f4088a4.webp?v=1714977535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89db0e204446ce2164021d53edd92714dda7ec36_1d8a549a-a083-4a5d-bea7-fa3b0f4088a4.webp?v=1714977535","width":2000},{"alt":null,"id":23897311412323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c42caf28103612bb0b54a9a323187433dcf4e7c_7aefba75-2df8-422e-9cae-6b7145dac12b.webp?v=1714977537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c42caf28103612bb0b54a9a323187433dcf4e7c_7aefba75-2df8-422e-9cae-6b7145dac12b.webp?v=1714977537","width":2000},{"alt":null,"id":23897311838307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c3b8b70f61bbbb236fc1df0c90f13ad6d50b032_776820c3-5539-46d5-b38f-e6a1c70d852a.webp?v=1714977539"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c3b8b70f61bbbb236fc1df0c90f13ad6d50b032_776820c3-5539-46d5-b38f-e6a1c70d852a.webp?v=1714977539","width":2000},{"alt":null,"id":23897312559203,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce5fca1340effd0d5f428eb9f339da3a2ff88311_9e09c2ea-462f-4cc4-8629-b24a463549be.webp?v=1714977542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce5fca1340effd0d5f428eb9f339da3a2ff88311_9e09c2ea-462f-4cc4-8629-b24a463549be.webp?v=1714977542","width":2000},{"alt":null,"id":23897312952419,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b261ec3601317ba9f4468b218fd663253d1eb3f1_1abfbb8b-5bf8-41df-bd9f-f547428ff3b0.webp?v=1714977544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b261ec3601317ba9f4468b218fd663253d1eb3f1_1abfbb8b-5bf8-41df-bd9f-f547428ff3b0.webp?v=1714977544","width":2000},{"alt":null,"id":23897313476707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb5912cf34105fb4fff9bebfa89fabbf73426e_0cfcedae-c3cb-4f79-b363-6d1933b4c52c.webp?v=1714977546"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb5912cf34105fb4fff9bebfa89fabbf73426e_0cfcedae-c3cb-4f79-b363-6d1933b4c52c.webp?v=1714977546","width":2000},{"alt":null,"id":23897313935459,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de0aafc1f738ef7844b8f598ac770925e8713c1b_00854fc1-3a2d-4dd2-96be-b77e9324b773.webp?v=1714977549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de0aafc1f738ef7844b8f598ac770925e8713c1b_00854fc1-3a2d-4dd2-96be-b77e9324b773.webp?v=1714977549","width":2000},{"alt":null,"id":23897314459747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ff50a05406b2960daf34c923571b154088a3333_3c0ef2d1-2d5f-4ed6-922f-9c4a6fcd67e9.webp?v=1714977551"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ff50a05406b2960daf34c923571b154088a3333_3c0ef2d1-2d5f-4ed6-922f-9c4a6fcd67e9.webp?v=1714977551","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918725095523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31491900538979,"product_id":7416345067619,"position":8,"created_at":"2024-05-06T14:39:06+08:00","updated_at":"2024-05-06T14:39:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb5912cf34105fb4fff9bebfa89fabbf73426e_0cfcedae-c3cb-4f79-b363-6d1933b4c52c.webp?v=1714977546","variant_ids":[41918725095523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23897313476707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb5912cf34105fb4fff9bebfa89fabbf73426e_0cfcedae-c3cb-4f79-b363-6d1933b4c52c.webp?v=1714977546"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918725095523,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB64","requires_shipping":true,"taxable":true,"featured_image":{"id":31491900538979,"product_id":7416345067619,"position":8,"created_at":"2024-05-06T14:39:06+08:00","updated_at":"2024-05-06T14:39:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb5912cf34105fb4fff9bebfa89fabbf73426e_0cfcedae-c3cb-4f79-b363-6d1933b4c52c.webp?v=1714977546","variant_ids":[41918725095523]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - R2D2-日文字系列 - 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-PB64","featured_media":{"alt":null,"id":23897313476707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cbeb5912cf34105fb4fff9bebfa89fabbf73426e_0cfcedae-c3cb-4f79-b363-6d1933b4c52c.webp?v=1714977546"}},"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: "停產" }