$product = {"id":7407884075107,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 生日8","handle":"iphone-14-plus-mod-nx-printable-iv02","description":null,"published_at":"2024-06-11T16:25:32+08:00","created_at":"2024-05-03T11:09:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-1G","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-1chun","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-1chun","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":41880052170851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470614315107,"product_id":7407884075107,"position":3,"created_at":"2024-05-03T11:09:08+08:00","updated_at":"2024-05-03T11:09:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8221486c25dba5ac12ac0653bbe659fe371c3b8c_95d95ca1-14f3-45df-806a-c97cec820541.webp?v=1714705748","variant_ids":[41880052170851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 生日8 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-IV02","featured_media":{"alt":null,"id":23875518234723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8221486c25dba5ac12ac0653bbe659fe371c3b8c_95d95ca1-14f3-45df-806a-c97cec820541.webp?v=1714705748"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edfb4e227b7fd1f9209163383e2302466c569715_b4bcaba2-bbb1-4717-a5f5-4d46df8a23e5.webp?v=1714705743","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b55bd2d3712481caaa5faee02a49219e57a40be_f6117e01-a915-4197-a7e8-98e161cfe528.webp?v=1714705746","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8221486c25dba5ac12ac0653bbe659fe371c3b8c_95d95ca1-14f3-45df-806a-c97cec820541.webp?v=1714705748","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40653a4662eba4d1f19c65ae3fff16badc3b1dcc_55c67ca9-7554-45bc-9cf8-49eb6d2d3b42.webp?v=1714705750","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c1fa8ad49d3544fbc8271d6732d19959dc0d86_dd34b682-0e73-4dd8-8052-ceaa7077e52c.webp?v=1714705753","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b95aa0a9e6c49bf956027cfb4e0d0423dd91beec_c4d1e6eb-aa3e-4037-b8c3-003230601035.webp?v=1714705755","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f2215763b98f7714c0d4b509e02735a316a172_0f9c0506-debd-4858-ae3b-2b8b51988777.webp?v=1714705757","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed8a08c69b778b0122b40b21886b2099b40b898_885fe0c9-5ec8-4503-b42a-b23edc9bb859.webp?v=1714705760","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12acbf1e1badcbe4b66731e4cf63ff4127c4a38e_a3ddb1a4-63a7-483a-8f2d-92562041eb06.webp?v=1714705762","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edd256684dc03a27af5539ed7e998b8e5df37da1_321ed75d-dbc3-43cc-9aef-e6ad02aab5e9.webp?v=1714705765"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edfb4e227b7fd1f9209163383e2302466c569715_b4bcaba2-bbb1-4717-a5f5-4d46df8a23e5.webp?v=1714705743","options":["color"],"media":[{"alt":null,"id":23875517317219,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edfb4e227b7fd1f9209163383e2302466c569715_b4bcaba2-bbb1-4717-a5f5-4d46df8a23e5.webp?v=1714705743"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edfb4e227b7fd1f9209163383e2302466c569715_b4bcaba2-bbb1-4717-a5f5-4d46df8a23e5.webp?v=1714705743","width":2000},{"alt":null,"id":23875517775971,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b55bd2d3712481caaa5faee02a49219e57a40be_f6117e01-a915-4197-a7e8-98e161cfe528.webp?v=1714705746"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b55bd2d3712481caaa5faee02a49219e57a40be_f6117e01-a915-4197-a7e8-98e161cfe528.webp?v=1714705746","width":2000},{"alt":null,"id":23875518234723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8221486c25dba5ac12ac0653bbe659fe371c3b8c_95d95ca1-14f3-45df-806a-c97cec820541.webp?v=1714705748"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8221486c25dba5ac12ac0653bbe659fe371c3b8c_95d95ca1-14f3-45df-806a-c97cec820541.webp?v=1714705748","width":2000},{"alt":null,"id":23875518791779,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40653a4662eba4d1f19c65ae3fff16badc3b1dcc_55c67ca9-7554-45bc-9cf8-49eb6d2d3b42.webp?v=1714705750"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40653a4662eba4d1f19c65ae3fff16badc3b1dcc_55c67ca9-7554-45bc-9cf8-49eb6d2d3b42.webp?v=1714705750","width":2000},{"alt":null,"id":23875519316067,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c1fa8ad49d3544fbc8271d6732d19959dc0d86_dd34b682-0e73-4dd8-8052-ceaa7077e52c.webp?v=1714705753"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c1fa8ad49d3544fbc8271d6732d19959dc0d86_dd34b682-0e73-4dd8-8052-ceaa7077e52c.webp?v=1714705753","width":2000},{"alt":null,"id":23875519905891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b95aa0a9e6c49bf956027cfb4e0d0423dd91beec_c4d1e6eb-aa3e-4037-b8c3-003230601035.webp?v=1714705755"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b95aa0a9e6c49bf956027cfb4e0d0423dd91beec_c4d1e6eb-aa3e-4037-b8c3-003230601035.webp?v=1714705755","width":2000},{"alt":null,"id":23875520397411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f2215763b98f7714c0d4b509e02735a316a172_0f9c0506-debd-4858-ae3b-2b8b51988777.webp?v=1714705757"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9f2215763b98f7714c0d4b509e02735a316a172_0f9c0506-debd-4858-ae3b-2b8b51988777.webp?v=1714705757","width":2000},{"alt":null,"id":23875520921699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed8a08c69b778b0122b40b21886b2099b40b898_885fe0c9-5ec8-4503-b42a-b23edc9bb859.webp?v=1714705760"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ed8a08c69b778b0122b40b21886b2099b40b898_885fe0c9-5ec8-4503-b42a-b23edc9bb859.webp?v=1714705760","width":2000},{"alt":null,"id":23875521445987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12acbf1e1badcbe4b66731e4cf63ff4127c4a38e_a3ddb1a4-63a7-483a-8f2d-92562041eb06.webp?v=1714705762"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/12acbf1e1badcbe4b66731e4cf63ff4127c4a38e_a3ddb1a4-63a7-483a-8f2d-92562041eb06.webp?v=1714705762","width":2000},{"alt":null,"id":23875522068579,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edd256684dc03a27af5539ed7e998b8e5df37da1_321ed75d-dbc3-43cc-9aef-e6ad02aab5e9.webp?v=1714705765"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edd256684dc03a27af5539ed7e998b8e5df37da1_321ed75d-dbc3-43cc-9aef-e6ad02aab5e9.webp?v=1714705765","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880052170851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470614315107,"product_id":7407884075107,"position":3,"created_at":"2024-05-03T11:09:08+08:00","updated_at":"2024-05-03T11:09:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8221486c25dba5ac12ac0653bbe659fe371c3b8c_95d95ca1-14f3-45df-806a-c97cec820541.webp?v=1714705748","variant_ids":[41880052170851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 生日8 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-IV02","featured_media":{"alt":null,"id":23875518234723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8221486c25dba5ac12ac0653bbe659fe371c3b8c_95d95ca1-14f3-45df-806a-c97cec820541.webp?v=1714705748"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880052170851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-IV02","requires_shipping":true,"taxable":true,"featured_image":{"id":31470614315107,"product_id":7407884075107,"position":3,"created_at":"2024-05-03T11:09:08+08:00","updated_at":"2024-05-03T11:09:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8221486c25dba5ac12ac0653bbe659fe371c3b8c_95d95ca1-14f3-45df-806a-c97cec820541.webp?v=1714705748","variant_ids":[41880052170851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 1G - 生日8 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-IV02","featured_media":{"alt":null,"id":23875518234723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8221486c25dba5ac12ac0653bbe659fe371c3b8c_95d95ca1-14f3-45df-806a-c97cec820541.webp?v=1714705748"}},"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: "停產" }