$product = {"id":7407900721251,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 高譚守護者","handle":"iphone-14-plus-mod-nx-printable-sb20","description":null,"published_at":"2024-06-11T16:26:01+08:00","created_at":"2024-05-03T11:12:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","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":41880280334435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470656782435,"product_id":7407900721251,"position":9,"created_at":"2024-05-03T11:12:43+08:00","updated_at":"2024-05-03T11:12:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ee58bf5eb15a78e4c6ebabc40c67581e474db9_f1f1b862-9e15-4ecb-a40d-29988bb0f775.webp?v=1714705963","variant_ids":[41880280334435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 高譚守護者 - 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-SB20","featured_media":{"alt":null,"id":23875560734819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ee58bf5eb15a78e4c6ebabc40c67581e474db9_f1f1b862-9e15-4ecb-a40d-29988bb0f775.webp?v=1714705963"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b510d656a54632d504e6cea36a3b56c5340a2bf6_55c50a4f-b644-408b-b784-c5e1f71c9f3b.webp?v=1714705944","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c834008a3d54f5307259fb1fbaa49d1f6eeb631_ae2480d6-b949-479d-927f-34e4a65e9e7f.webp?v=1714705947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e096d7f722a58ce10ef84696d61671ba699b3928_d4111473-3e46-4f05-846b-f8874e6d1a83.webp?v=1714705949","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5689eca9ebaf598ef9bd2919ed75721e044c07af_a080056e-c444-4a03-af47-47bb60dc3daa.webp?v=1714705951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3f0fa295e18028af3b2a69e6ce9cebb2d3e7911_7f0d2219-0c12-40e8-8f78-498a1532b071.webp?v=1714705953","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c917306ac1ce408ba895084135a9c11d74933bd8_37259a49-3257-46d8-bc0c-f035cbeb6e1e.webp?v=1714705956","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8874f9f5466172eb9aa6080f878836b74934e1d9_0237f876-92d7-4229-9b5e-f5e0f6377d59.webp?v=1714705958","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c5893b82077fc31976cbacd19429dd7406271a8_ac6a04ce-feac-406d-acfe-50d2387b5318.webp?v=1714705960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ee58bf5eb15a78e4c6ebabc40c67581e474db9_f1f1b862-9e15-4ecb-a40d-29988bb0f775.webp?v=1714705963","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e66eed126c9b12f4759fe6ace9d0bbfae848fe3_996b6ad2-0b42-433b-87f3-6e7e553f3a28.webp?v=1714705965"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b510d656a54632d504e6cea36a3b56c5340a2bf6_55c50a4f-b644-408b-b784-c5e1f71c9f3b.webp?v=1714705944","options":["color"],"media":[{"alt":null,"id":23875557294179,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b510d656a54632d504e6cea36a3b56c5340a2bf6_55c50a4f-b644-408b-b784-c5e1f71c9f3b.webp?v=1714705944"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b510d656a54632d504e6cea36a3b56c5340a2bf6_55c50a4f-b644-408b-b784-c5e1f71c9f3b.webp?v=1714705944","width":2000},{"alt":null,"id":23875557752931,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c834008a3d54f5307259fb1fbaa49d1f6eeb631_ae2480d6-b949-479d-927f-34e4a65e9e7f.webp?v=1714705947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c834008a3d54f5307259fb1fbaa49d1f6eeb631_ae2480d6-b949-479d-927f-34e4a65e9e7f.webp?v=1714705947","width":2000},{"alt":null,"id":23875558211683,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e096d7f722a58ce10ef84696d61671ba699b3928_d4111473-3e46-4f05-846b-f8874e6d1a83.webp?v=1714705949"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e096d7f722a58ce10ef84696d61671ba699b3928_d4111473-3e46-4f05-846b-f8874e6d1a83.webp?v=1714705949","width":2000},{"alt":null,"id":23875558670435,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5689eca9ebaf598ef9bd2919ed75721e044c07af_a080056e-c444-4a03-af47-47bb60dc3daa.webp?v=1714705951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5689eca9ebaf598ef9bd2919ed75721e044c07af_a080056e-c444-4a03-af47-47bb60dc3daa.webp?v=1714705951","width":2000},{"alt":null,"id":23875559063651,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3f0fa295e18028af3b2a69e6ce9cebb2d3e7911_7f0d2219-0c12-40e8-8f78-498a1532b071.webp?v=1714705953"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3f0fa295e18028af3b2a69e6ce9cebb2d3e7911_7f0d2219-0c12-40e8-8f78-498a1532b071.webp?v=1714705953","width":2000},{"alt":null,"id":23875559456867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c917306ac1ce408ba895084135a9c11d74933bd8_37259a49-3257-46d8-bc0c-f035cbeb6e1e.webp?v=1714705956"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c917306ac1ce408ba895084135a9c11d74933bd8_37259a49-3257-46d8-bc0c-f035cbeb6e1e.webp?v=1714705956","width":2000},{"alt":null,"id":23875559948387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8874f9f5466172eb9aa6080f878836b74934e1d9_0237f876-92d7-4229-9b5e-f5e0f6377d59.webp?v=1714705958"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8874f9f5466172eb9aa6080f878836b74934e1d9_0237f876-92d7-4229-9b5e-f5e0f6377d59.webp?v=1714705958","width":2000},{"alt":null,"id":23875560341603,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c5893b82077fc31976cbacd19429dd7406271a8_ac6a04ce-feac-406d-acfe-50d2387b5318.webp?v=1714705960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3c5893b82077fc31976cbacd19429dd7406271a8_ac6a04ce-feac-406d-acfe-50d2387b5318.webp?v=1714705960","width":2000},{"alt":null,"id":23875560734819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ee58bf5eb15a78e4c6ebabc40c67581e474db9_f1f1b862-9e15-4ecb-a40d-29988bb0f775.webp?v=1714705963"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ee58bf5eb15a78e4c6ebabc40c67581e474db9_f1f1b862-9e15-4ecb-a40d-29988bb0f775.webp?v=1714705963","width":2000},{"alt":null,"id":23875560964195,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e66eed126c9b12f4759fe6ace9d0bbfae848fe3_996b6ad2-0b42-433b-87f3-6e7e553f3a28.webp?v=1714705965"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e66eed126c9b12f4759fe6ace9d0bbfae848fe3_996b6ad2-0b42-433b-87f3-6e7e553f3a28.webp?v=1714705965","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880280334435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470656782435,"product_id":7407900721251,"position":9,"created_at":"2024-05-03T11:12:43+08:00","updated_at":"2024-05-03T11:12:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ee58bf5eb15a78e4c6ebabc40c67581e474db9_f1f1b862-9e15-4ecb-a40d-29988bb0f775.webp?v=1714705963","variant_ids":[41880280334435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 高譚守護者 - 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-SB20","featured_media":{"alt":null,"id":23875560734819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ee58bf5eb15a78e4c6ebabc40c67581e474db9_f1f1b862-9e15-4ecb-a40d-29988bb0f775.webp?v=1714705963"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880280334435,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB20","requires_shipping":true,"taxable":true,"featured_image":{"id":31470656782435,"product_id":7407900721251,"position":9,"created_at":"2024-05-03T11:12:43+08:00","updated_at":"2024-05-03T11:12:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ee58bf5eb15a78e4c6ebabc40c67581e474db9_f1f1b862-9e15-4ecb-a40d-29988bb0f775.webp?v=1714705963","variant_ids":[41880280334435]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 高譚守護者 - 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-SB20","featured_media":{"alt":null,"id":23875560734819,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3ee58bf5eb15a78e4c6ebabc40c67581e474db9_f1f1b862-9e15-4ecb-a40d-29988bb0f775.webp?v=1714705963"}},"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: "停產" }