$product = {"id":7416375181411,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列","handle":"iphone-8-mod-nx-printable-pb65","description":null,"published_at":"2024-06-11T16:57:21+08:00","created_at":"2024-05-06T14:44:49+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":41919052742755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31491975643235,"product_id":7416375181411,"position":8,"created_at":"2024-05-06T14:45:07+08:00","updated_at":"2024-05-06T14:45:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56adecb8edba3e7250ea495d2dd3020c8143694d_bac60432-68fb-4a76-b251-5d40c7787a36.webp?v=1714977907","variant_ids":[41919052742755]},"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-PB65","featured_media":{"alt":null,"id":23897389039715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56adecb8edba3e7250ea495d2dd3020c8143694d_bac60432-68fb-4a76-b251-5d40c7787a36.webp?v=1714977907"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/202232fd22b769fb650434d805751344d5aca411_c12818c8-cd01-41a8-b934-300cc9bf1c24.webp?v=1714977892","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41e8e6200d8d5c0d29c46cc999f87c5014060116_4a8ac3d7-9b47-4c50-875a-75f205d200fb.webp?v=1714977894","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f6f09864cc87512c6edd39ca504faf0e615c3d_4e3aba1b-96e9-4956-81e0-81cecdf2479b.webp?v=1714977896","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4455615f3f09660136a4ff22f305628347c0c475_dc936455-e947-40c0-a182-b0baf32f6379.webp?v=1714977898","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f174bb75b1818acaadb0086a8ee05b5ebfab17_cb33427b-9138-4e04-b680-b904c85b3bfd.webp?v=1714977901","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1799b784ebab4ae7ff7911bbee2d84e5bf405e93_42024140-b00d-4090-bedb-dacc93ea5380.webp?v=1714977903","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2daa71f0e52f8abb721e300f06c711b981b573c2_252786cb-e5f1-47d8-a436-8b1a275fe1e6.webp?v=1714977905","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56adecb8edba3e7250ea495d2dd3020c8143694d_bac60432-68fb-4a76-b251-5d40c7787a36.webp?v=1714977907","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12bdd35bb0a6ae38d12693fe2c96c46543af62f1_3b6dadcb-dc79-4823-a0c6-f7ee77a8f738.webp?v=1714977910","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c918048cbbf565a36bb85a45008ed9f253140f_785908a7-8814-4350-913b-b5c6e078bbca.webp?v=1714977912"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/202232fd22b769fb650434d805751344d5aca411_c12818c8-cd01-41a8-b934-300cc9bf1c24.webp?v=1714977892","options":["color"],"media":[{"alt":null,"id":23897385435235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/202232fd22b769fb650434d805751344d5aca411_c12818c8-cd01-41a8-b934-300cc9bf1c24.webp?v=1714977892"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/202232fd22b769fb650434d805751344d5aca411_c12818c8-cd01-41a8-b934-300cc9bf1c24.webp?v=1714977892","width":2000},{"alt":null,"id":23897386090595,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41e8e6200d8d5c0d29c46cc999f87c5014060116_4a8ac3d7-9b47-4c50-875a-75f205d200fb.webp?v=1714977894"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41e8e6200d8d5c0d29c46cc999f87c5014060116_4a8ac3d7-9b47-4c50-875a-75f205d200fb.webp?v=1714977894","width":2000},{"alt":null,"id":23897386647651,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f6f09864cc87512c6edd39ca504faf0e615c3d_4e3aba1b-96e9-4956-81e0-81cecdf2479b.webp?v=1714977896"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14f6f09864cc87512c6edd39ca504faf0e615c3d_4e3aba1b-96e9-4956-81e0-81cecdf2479b.webp?v=1714977896","width":2000},{"alt":null,"id":23897387040867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4455615f3f09660136a4ff22f305628347c0c475_dc936455-e947-40c0-a182-b0baf32f6379.webp?v=1714977898"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4455615f3f09660136a4ff22f305628347c0c475_dc936455-e947-40c0-a182-b0baf32f6379.webp?v=1714977898","width":2000},{"alt":null,"id":23897387466851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f174bb75b1818acaadb0086a8ee05b5ebfab17_cb33427b-9138-4e04-b680-b904c85b3bfd.webp?v=1714977901"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8f174bb75b1818acaadb0086a8ee05b5ebfab17_cb33427b-9138-4e04-b680-b904c85b3bfd.webp?v=1714977901","width":2000},{"alt":null,"id":23897388089443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1799b784ebab4ae7ff7911bbee2d84e5bf405e93_42024140-b00d-4090-bedb-dacc93ea5380.webp?v=1714977903"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1799b784ebab4ae7ff7911bbee2d84e5bf405e93_42024140-b00d-4090-bedb-dacc93ea5380.webp?v=1714977903","width":2000},{"alt":null,"id":23897388548195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2daa71f0e52f8abb721e300f06c711b981b573c2_252786cb-e5f1-47d8-a436-8b1a275fe1e6.webp?v=1714977905"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2daa71f0e52f8abb721e300f06c711b981b573c2_252786cb-e5f1-47d8-a436-8b1a275fe1e6.webp?v=1714977905","width":2000},{"alt":null,"id":23897389039715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56adecb8edba3e7250ea495d2dd3020c8143694d_bac60432-68fb-4a76-b251-5d40c7787a36.webp?v=1714977907"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56adecb8edba3e7250ea495d2dd3020c8143694d_bac60432-68fb-4a76-b251-5d40c7787a36.webp?v=1714977907","width":2000},{"alt":null,"id":23897389400163,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12bdd35bb0a6ae38d12693fe2c96c46543af62f1_3b6dadcb-dc79-4823-a0c6-f7ee77a8f738.webp?v=1714977910"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12bdd35bb0a6ae38d12693fe2c96c46543af62f1_3b6dadcb-dc79-4823-a0c6-f7ee77a8f738.webp?v=1714977910","width":2000},{"alt":null,"id":23897389826147,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c918048cbbf565a36bb85a45008ed9f253140f_785908a7-8814-4350-913b-b5c6e078bbca.webp?v=1714977912"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23c918048cbbf565a36bb85a45008ed9f253140f_785908a7-8814-4350-913b-b5c6e078bbca.webp?v=1714977912","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41919052742755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31491975643235,"product_id":7416375181411,"position":8,"created_at":"2024-05-06T14:45:07+08:00","updated_at":"2024-05-06T14:45:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56adecb8edba3e7250ea495d2dd3020c8143694d_bac60432-68fb-4a76-b251-5d40c7787a36.webp?v=1714977907","variant_ids":[41919052742755]},"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-PB65","featured_media":{"alt":null,"id":23897389039715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56adecb8edba3e7250ea495d2dd3020c8143694d_bac60432-68fb-4a76-b251-5d40c7787a36.webp?v=1714977907"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41919052742755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31491975643235,"product_id":7416375181411,"position":8,"created_at":"2024-05-06T14:45:07+08:00","updated_at":"2024-05-06T14:45:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56adecb8edba3e7250ea495d2dd3020c8143694d_bac60432-68fb-4a76-b251-5d40c7787a36.webp?v=1714977907","variant_ids":[41919052742755]},"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-PB65","featured_media":{"alt":null,"id":23897389039715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56adecb8edba3e7250ea495d2dd3020c8143694d_bac60432-68fb-4a76-b251-5d40c7787a36.webp?v=1714977907"}},"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: "停產" }