$product = {"id":7407611478115,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列","handle":"iphone-15-plus-mod-nx-printable-pc08","description":null,"published_at":"2024-06-11T16:20:32+08:00","created_at":"2024-05-03T10:20:02+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 15 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":41876770848867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470033272931,"product_id":7407611478115,"position":8,"created_at":"2024-05-03T10:20:22+08:00","updated_at":"2024-05-03T10:20:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5764b571f1243167c8b0f426d68de6b7acbcd14f_eb873f0f-76ef-413f-86ce-c2ba494066ec.webp?v=1714702822","variant_ids":[41876770848867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PC08","featured_media":{"alt":null,"id":23874935455843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5764b571f1243167c8b0f426d68de6b7acbcd14f_eb873f0f-76ef-413f-86ce-c2ba494066ec.webp?v=1714702822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876770979939,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470034419811,"product_id":7407611478115,"position":10,"created_at":"2024-05-03T10:20:27+08:00","updated_at":"2024-05-03T10:20:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779b6ea0405a68205f1cfc46736a28c34eb7b455_4c00df26-50e2-4b6b-8acd-583af6dd26bf.webp?v=1714702827","variant_ids":[41876770979939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PC08","featured_media":{"alt":null,"id":23874936602723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779b6ea0405a68205f1cfc46736a28c34eb7b455_4c00df26-50e2-4b6b-8acd-583af6dd26bf.webp?v=1714702827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/745d41a7ab866be15b7e92dc332060944af9f823_b0c909c2-5757-4e1c-be2b-3da86bb23de0.webp?v=1714702805","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df6862c43381800caba79e655d8cdab7134cd1e0_efe9b1d2-db3e-4442-ae99-8a576d0421e1.webp?v=1714702807","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43a59a00e01c7660ec375fcda1a74afe210d179e_6d6f7e8a-1acc-44ab-ba1e-7b8ee3f079aa.webp?v=1714702810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1646b6e439c74b3ac25f597f6d86b06338a9ffa6_4da480bb-4acf-470f-8a2f-7de27a8edebf.webp?v=1714702813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dcc53763d4a9d8f5f0bf3d7673d9d92a6b1c0d5_ce7b0ab0-6dc3-4b3c-9093-6235a375fab1.webp?v=1714702815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70497c9e3e1603c74b9cb8279adc01f818b828d_f07a6e57-20c4-4fc5-bfb7-e97535e98059.webp?v=1714702818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d43803b08c292b79121b6727ed6c7ab0b206f814_867e2e2e-e7b9-4e7c-8c7e-b1a269467239.webp?v=1714702820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5764b571f1243167c8b0f426d68de6b7acbcd14f_eb873f0f-76ef-413f-86ce-c2ba494066ec.webp?v=1714702822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7099823265057fe2d89595f7f9aeaa90d754b425_df91b985-e6ff-40b1-89aa-a85619a0e991.webp?v=1714702824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779b6ea0405a68205f1cfc46736a28c34eb7b455_4c00df26-50e2-4b6b-8acd-583af6dd26bf.webp?v=1714702827"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/745d41a7ab866be15b7e92dc332060944af9f823_b0c909c2-5757-4e1c-be2b-3da86bb23de0.webp?v=1714702805","options":["color"],"media":[{"alt":null,"id":23874931392611,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/745d41a7ab866be15b7e92dc332060944af9f823_b0c909c2-5757-4e1c-be2b-3da86bb23de0.webp?v=1714702805"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/745d41a7ab866be15b7e92dc332060944af9f823_b0c909c2-5757-4e1c-be2b-3da86bb23de0.webp?v=1714702805","width":2000},{"alt":null,"id":23874931916899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df6862c43381800caba79e655d8cdab7134cd1e0_efe9b1d2-db3e-4442-ae99-8a576d0421e1.webp?v=1714702807"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df6862c43381800caba79e655d8cdab7134cd1e0_efe9b1d2-db3e-4442-ae99-8a576d0421e1.webp?v=1714702807","width":2000},{"alt":null,"id":23874932441187,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43a59a00e01c7660ec375fcda1a74afe210d179e_6d6f7e8a-1acc-44ab-ba1e-7b8ee3f079aa.webp?v=1714702810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43a59a00e01c7660ec375fcda1a74afe210d179e_6d6f7e8a-1acc-44ab-ba1e-7b8ee3f079aa.webp?v=1714702810","width":2000},{"alt":null,"id":23874933063779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1646b6e439c74b3ac25f597f6d86b06338a9ffa6_4da480bb-4acf-470f-8a2f-7de27a8edebf.webp?v=1714702813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1646b6e439c74b3ac25f597f6d86b06338a9ffa6_4da480bb-4acf-470f-8a2f-7de27a8edebf.webp?v=1714702813","width":2000},{"alt":null,"id":23874933620835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dcc53763d4a9d8f5f0bf3d7673d9d92a6b1c0d5_ce7b0ab0-6dc3-4b3c-9093-6235a375fab1.webp?v=1714702815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5dcc53763d4a9d8f5f0bf3d7673d9d92a6b1c0d5_ce7b0ab0-6dc3-4b3c-9093-6235a375fab1.webp?v=1714702815","width":2000},{"alt":null,"id":23874934243427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70497c9e3e1603c74b9cb8279adc01f818b828d_f07a6e57-20c4-4fc5-bfb7-e97535e98059.webp?v=1714702818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a70497c9e3e1603c74b9cb8279adc01f818b828d_f07a6e57-20c4-4fc5-bfb7-e97535e98059.webp?v=1714702818","width":2000},{"alt":null,"id":23874934931555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d43803b08c292b79121b6727ed6c7ab0b206f814_867e2e2e-e7b9-4e7c-8c7e-b1a269467239.webp?v=1714702820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d43803b08c292b79121b6727ed6c7ab0b206f814_867e2e2e-e7b9-4e7c-8c7e-b1a269467239.webp?v=1714702820","width":2000},{"alt":null,"id":23874935455843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5764b571f1243167c8b0f426d68de6b7acbcd14f_eb873f0f-76ef-413f-86ce-c2ba494066ec.webp?v=1714702822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5764b571f1243167c8b0f426d68de6b7acbcd14f_eb873f0f-76ef-413f-86ce-c2ba494066ec.webp?v=1714702822","width":2000},{"alt":null,"id":23874936045667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7099823265057fe2d89595f7f9aeaa90d754b425_df91b985-e6ff-40b1-89aa-a85619a0e991.webp?v=1714702824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7099823265057fe2d89595f7f9aeaa90d754b425_df91b985-e6ff-40b1-89aa-a85619a0e991.webp?v=1714702824","width":2000},{"alt":null,"id":23874936602723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779b6ea0405a68205f1cfc46736a28c34eb7b455_4c00df26-50e2-4b6b-8acd-583af6dd26bf.webp?v=1714702827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779b6ea0405a68205f1cfc46736a28c34eb7b455_4c00df26-50e2-4b6b-8acd-583af6dd26bf.webp?v=1714702827","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41876770848867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470033272931,"product_id":7407611478115,"position":8,"created_at":"2024-05-03T10:20:22+08:00","updated_at":"2024-05-03T10:20:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5764b571f1243167c8b0f426d68de6b7acbcd14f_eb873f0f-76ef-413f-86ce-c2ba494066ec.webp?v=1714702822","variant_ids":[41876770848867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PC08","featured_media":{"alt":null,"id":23874935455843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5764b571f1243167c8b0f426d68de6b7acbcd14f_eb873f0f-76ef-413f-86ce-c2ba494066ec.webp?v=1714702822"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41876770979939,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470034419811,"product_id":7407611478115,"position":10,"created_at":"2024-05-03T10:20:27+08:00","updated_at":"2024-05-03T10:20:27+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779b6ea0405a68205f1cfc46736a28c34eb7b455_4c00df26-50e2-4b6b-8acd-583af6dd26bf.webp?v=1714702827","variant_ids":[41876770979939]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129657-PC08","featured_media":{"alt":null,"id":23874936602723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/779b6ea0405a68205f1cfc46736a28c34eb7b455_4c00df26-50e2-4b6b-8acd-583af6dd26bf.webp?v=1714702827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41876770848867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31470033272931,"product_id":7407611478115,"position":8,"created_at":"2024-05-03T10:20:22+08:00","updated_at":"2024-05-03T10:20:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5764b571f1243167c8b0f426d68de6b7acbcd14f_eb873f0f-76ef-413f-86ce-c2ba494066ec.webp?v=1714702822","variant_ids":[41876770848867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0129624-PC08","featured_media":{"alt":null,"id":23874935455843,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5764b571f1243167c8b0f426d68de6b7acbcd14f_eb873f0f-76ef-413f-86ce-c2ba494066ec.webp?v=1714702822"}},"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: "停產" }