$product = {"id":7407988703331,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 波巴費特-日文字系列","handle":"iphone-14-plus-mod-nx-printable-pb65","description":null,"published_at":"2024-06-11T16:28:26+08:00","created_at":"2024-05-03T11:29:29+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":41881432883299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31470882947171,"product_id":7407988703331,"position":1,"created_at":"2024-05-03T11:29:31+08:00","updated_at":"2024-05-03T11:29:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971","variant_ids":[41881432883299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 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":"NPB0126124-PB65","featured_media":{"alt":null,"id":23875787554915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2977db51992b79006ae7bfe84f3bc89d82754cb_296281f4-e8e3-41c6-b58a-0044d51a66c9.webp?v=1714706974","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b16fa29ae2f5d529d3bd99afad5430739ebef7dc_2881349e-bfcc-4602-8ae7-b5ad40074027.webp?v=1714706976","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44760316260a8a49f713ae6b77ade491a98831ff_d7b860ff-56b6-4bdc-a9a2-c1d08834001d.webp?v=1714706979","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b746cc28ec24a3e49ad75fe3586ed27fcdff87f8_a60954b8-3a48-4566-9c04-7b3b58254a66.webp?v=1714706981","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d938891f783adbcd1f8f2c82661eaae844ce023b_3d84ec97-0e06-4199-adb3-aa45678b48d4.webp?v=1714706983","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfa2263bbc0e0347ba415dd770409b77b3530c16_d7925f9a-4a1c-4a83-82b7-90ddd3ba246a.webp?v=1714706985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f3c9b06bfbadce724f01c761f9d27931c3f74fb_ab1dc09f-c2c0-4cb3-ab41-82732c7da5d7.webp?v=1714706987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a7a313f41dfbd9bb3ee682214666e10c2d654_878256ba-f383-4ad6-8fa8-61e668f99b9b.webp?v=1714706990","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c22cab45d61bd621f0bb05524f5d6f44a424cb57_7214b652-77ca-43b1-85f3-12527429c0c7.webp?v=1714706992"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971","options":["color"],"media":[{"alt":null,"id":23875787554915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971","width":2000},{"alt":null,"id":23875787948131,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2977db51992b79006ae7bfe84f3bc89d82754cb_296281f4-e8e3-41c6-b58a-0044d51a66c9.webp?v=1714706974"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e2977db51992b79006ae7bfe84f3bc89d82754cb_296281f4-e8e3-41c6-b58a-0044d51a66c9.webp?v=1714706974","width":2000},{"alt":null,"id":23875788537955,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b16fa29ae2f5d529d3bd99afad5430739ebef7dc_2881349e-bfcc-4602-8ae7-b5ad40074027.webp?v=1714706976"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b16fa29ae2f5d529d3bd99afad5430739ebef7dc_2881349e-bfcc-4602-8ae7-b5ad40074027.webp?v=1714706976","width":2000},{"alt":null,"id":23875789127779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44760316260a8a49f713ae6b77ade491a98831ff_d7b860ff-56b6-4bdc-a9a2-c1d08834001d.webp?v=1714706979"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44760316260a8a49f713ae6b77ade491a98831ff_d7b860ff-56b6-4bdc-a9a2-c1d08834001d.webp?v=1714706979","width":2000},{"alt":null,"id":23875789586531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b746cc28ec24a3e49ad75fe3586ed27fcdff87f8_a60954b8-3a48-4566-9c04-7b3b58254a66.webp?v=1714706981"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b746cc28ec24a3e49ad75fe3586ed27fcdff87f8_a60954b8-3a48-4566-9c04-7b3b58254a66.webp?v=1714706981","width":2000},{"alt":null,"id":23875790176355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d938891f783adbcd1f8f2c82661eaae844ce023b_3d84ec97-0e06-4199-adb3-aa45678b48d4.webp?v=1714706983"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d938891f783adbcd1f8f2c82661eaae844ce023b_3d84ec97-0e06-4199-adb3-aa45678b48d4.webp?v=1714706983","width":2000},{"alt":null,"id":23875790667875,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfa2263bbc0e0347ba415dd770409b77b3530c16_d7925f9a-4a1c-4a83-82b7-90ddd3ba246a.webp?v=1714706985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfa2263bbc0e0347ba415dd770409b77b3530c16_d7925f9a-4a1c-4a83-82b7-90ddd3ba246a.webp?v=1714706985","width":2000},{"alt":null,"id":23875791061091,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f3c9b06bfbadce724f01c761f9d27931c3f74fb_ab1dc09f-c2c0-4cb3-ab41-82732c7da5d7.webp?v=1714706987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7f3c9b06bfbadce724f01c761f9d27931c3f74fb_ab1dc09f-c2c0-4cb3-ab41-82732c7da5d7.webp?v=1714706987","width":2000},{"alt":null,"id":23875791650915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a7a313f41dfbd9bb3ee682214666e10c2d654_878256ba-f383-4ad6-8fa8-61e668f99b9b.webp?v=1714706990"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f2a7a313f41dfbd9bb3ee682214666e10c2d654_878256ba-f383-4ad6-8fa8-61e668f99b9b.webp?v=1714706990","width":2000},{"alt":null,"id":23875792240739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c22cab45d61bd621f0bb05524f5d6f44a424cb57_7214b652-77ca-43b1-85f3-12527429c0c7.webp?v=1714706992"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c22cab45d61bd621f0bb05524f5d6f44a424cb57_7214b652-77ca-43b1-85f3-12527429c0c7.webp?v=1714706992","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41881432883299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31470882947171,"product_id":7407988703331,"position":1,"created_at":"2024-05-03T11:29:31+08:00","updated_at":"2024-05-03T11:29:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971","variant_ids":[41881432883299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 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":"NPB0126124-PB65","featured_media":{"alt":null,"id":23875787554915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41881432883299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB65","requires_shipping":true,"taxable":true,"featured_image":{"id":31470882947171,"product_id":7407988703331,"position":1,"created_at":"2024-05-03T11:29:31+08:00","updated_at":"2024-05-03T11:29:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971","variant_ids":[41881432883299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 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":"NPB0126124-PB65","featured_media":{"alt":null,"id":23875787554915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/caefcf4659e0603f87e280d5f9f6ef626816dc38_70286826-f35a-4177-ac2c-c1bc6f76086c.webp?v=1714706971"}},"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: "停產" }