$product = {"id":7407892725859,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 雲朵綿綿","handle":"iphone-14-plus-mod-nx-printable-yb10","description":null,"published_at":"2024-06-11T16:25:47+08:00","created_at":"2024-05-03T11:10:43+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Care Bears","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-carebears","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-carebears","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":41880174461027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470633943139,"product_id":7407892725859,"position":1,"created_at":"2024-05-03T11:10:46+08:00","updated_at":"2024-05-03T11:10:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846","variant_ids":[41880174461027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 雲朵綿綿 - 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-YB10","featured_media":{"alt":null,"id":23875537862755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/616509f4a277141ae5190bd4a97217f8246ed2ef_9c00f4a2-0067-4f6f-9730-9c0953d7a139.webp?v=1714705848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d6a83eb7c4597779321dfc1e05ea6e5c83b5d3_f7f91e48-7c19-4d6f-b9b5-9e70ec969c1f.webp?v=1714705851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0172f1bf5a041091b9d5ab605681f1898c978_211416a1-46f2-41dc-8c29-366a66aa3326.webp?v=1714705853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd459ca034f4ea2f0b53280b0975b2c0261db3cf_66f31521-9726-4338-ae95-a7c27409db1b.webp?v=1714705856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28240bf8fb69749a5c20061e1ea627f17b0af423_6dff47a4-276c-4a7b-b477-58fd59feef9f.webp?v=1714705858","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04eb7661cb3f7025fd70aa4a6d806fab538a2850_d88ac486-c8b8-4e9b-baf2-0146078d7bc3.webp?v=1714705860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5060c33b2dd570ec5c2c8da887463850b4ad2e_af805456-8330-4c5a-9921-bc4f02f46df3.webp?v=1714705863","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15ad151df2e01d6e176b91c8edf83f7923136ab9_533fa905-d1f3-437a-bd65-5dd301526861.webp?v=1714705866","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/387ca9ea4cee446eb78a15d517df3542de3ecd39_7f90b85e-97ac-4eea-990c-a4417ab69404.webp?v=1714705868"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846","options":["color"],"media":[{"alt":null,"id":23875537862755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846","width":2000},{"alt":null,"id":23875538452579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/616509f4a277141ae5190bd4a97217f8246ed2ef_9c00f4a2-0067-4f6f-9730-9c0953d7a139.webp?v=1714705848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/616509f4a277141ae5190bd4a97217f8246ed2ef_9c00f4a2-0067-4f6f-9730-9c0953d7a139.webp?v=1714705848","width":2000},{"alt":null,"id":23875538911331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d6a83eb7c4597779321dfc1e05ea6e5c83b5d3_f7f91e48-7c19-4d6f-b9b5-9e70ec969c1f.webp?v=1714705851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/63d6a83eb7c4597779321dfc1e05ea6e5c83b5d3_f7f91e48-7c19-4d6f-b9b5-9e70ec969c1f.webp?v=1714705851","width":2000},{"alt":null,"id":23875539402851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0172f1bf5a041091b9d5ab605681f1898c978_211416a1-46f2-41dc-8c29-366a66aa3326.webp?v=1714705853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e0a0172f1bf5a041091b9d5ab605681f1898c978_211416a1-46f2-41dc-8c29-366a66aa3326.webp?v=1714705853","width":2000},{"alt":null,"id":23875539730531,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd459ca034f4ea2f0b53280b0975b2c0261db3cf_66f31521-9726-4338-ae95-a7c27409db1b.webp?v=1714705856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd459ca034f4ea2f0b53280b0975b2c0261db3cf_66f31521-9726-4338-ae95-a7c27409db1b.webp?v=1714705856","width":2000},{"alt":null,"id":23875540254819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28240bf8fb69749a5c20061e1ea627f17b0af423_6dff47a4-276c-4a7b-b477-58fd59feef9f.webp?v=1714705858"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28240bf8fb69749a5c20061e1ea627f17b0af423_6dff47a4-276c-4a7b-b477-58fd59feef9f.webp?v=1714705858","width":2000},{"alt":null,"id":23875540680803,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04eb7661cb3f7025fd70aa4a6d806fab538a2850_d88ac486-c8b8-4e9b-baf2-0146078d7bc3.webp?v=1714705860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04eb7661cb3f7025fd70aa4a6d806fab538a2850_d88ac486-c8b8-4e9b-baf2-0146078d7bc3.webp?v=1714705860","width":2000},{"alt":null,"id":23875541270627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5060c33b2dd570ec5c2c8da887463850b4ad2e_af805456-8330-4c5a-9921-bc4f02f46df3.webp?v=1714705863"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d5060c33b2dd570ec5c2c8da887463850b4ad2e_af805456-8330-4c5a-9921-bc4f02f46df3.webp?v=1714705863","width":2000},{"alt":null,"id":23875541696611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15ad151df2e01d6e176b91c8edf83f7923136ab9_533fa905-d1f3-437a-bd65-5dd301526861.webp?v=1714705866"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15ad151df2e01d6e176b91c8edf83f7923136ab9_533fa905-d1f3-437a-bd65-5dd301526861.webp?v=1714705866","width":2000},{"alt":null,"id":23875542319203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/387ca9ea4cee446eb78a15d517df3542de3ecd39_7f90b85e-97ac-4eea-990c-a4417ab69404.webp?v=1714705868"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/387ca9ea4cee446eb78a15d517df3542de3ecd39_7f90b85e-97ac-4eea-990c-a4417ab69404.webp?v=1714705868","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880174461027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470633943139,"product_id":7407892725859,"position":1,"created_at":"2024-05-03T11:10:46+08:00","updated_at":"2024-05-03T11:10:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846","variant_ids":[41880174461027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 雲朵綿綿 - 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-YB10","featured_media":{"alt":null,"id":23875537862755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880174461027,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-YB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31470633943139,"product_id":7407892725859,"position":1,"created_at":"2024-05-03T11:10:46+08:00","updated_at":"2024-05-03T11:10:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846","variant_ids":[41880174461027]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Care Bears - 雲朵綿綿 - 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-YB10","featured_media":{"alt":null,"id":23875537862755,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07f04c14811526e0f0e8ecd6060cb300f301adac_bb1188d0-bfdf-48b5-9152-7f5371ccf5c9.webp?v=1714705846"}},"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: "停產" }