$product = {"id":7407921791075,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-大臉系列","handle":"iphone-14-plus-mod-nx-printable-pb77","description":null,"published_at":"2024-06-11T16:26:37+08:00","created_at":"2024-05-03T11:16:21+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":41880559353955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470704263267,"product_id":7407921791075,"position":2,"created_at":"2024-05-03T11:16:25+08:00","updated_at":"2024-05-03T11:16:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05673571bd8ff96dde540d40598f0d2fb98bee1_ac3d4cb4-eee5-4273-8c99-e265629c36ba.webp?v=1714706185","variant_ids":[41880559353955]},"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-PB77","featured_media":{"alt":null,"id":23875608313955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05673571bd8ff96dde540d40598f0d2fb98bee1_ac3d4cb4-eee5-4273-8c99-e265629c36ba.webp?v=1714706185"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7998991193a6163a656341d6b0fe430b8aad397e_11093aa1-ea1a-47ea-a858-9eef616ea05b.webp?v=1714706183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05673571bd8ff96dde540d40598f0d2fb98bee1_ac3d4cb4-eee5-4273-8c99-e265629c36ba.webp?v=1714706185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d0dcbaf7873b671777e6abdd3984f9a3d9f3080_2199b4c6-1889-42d7-9bda-092e491add34.webp?v=1714706188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57144fb3293d4a782e2805fb840f774a701e131_ec5741d7-ebf3-4f15-bc6d-b25f1725db9e.webp?v=1714706190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1218e967ee523290b33afd9bb6f28b011e3dab2_bd46fa1d-1e7d-4a16-8641-4b188c11988a.webp?v=1714706192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd20cf417a2fb8d14d3bef84cb8d1135eb390af_cc17ae8d-4f77-4e71-b164-49c738a13f16.webp?v=1714706194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d7eaed36b04e0ce659d48a768fd4057f646f5db_e653f1e0-11ef-4fc6-9737-a0949077bc1d.webp?v=1714706196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c90ebb0deee802ae3ef970c8f5a63e8a9d16d574_3ff3db4b-83bb-4a94-a310-2ea731202539.webp?v=1714706199","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d160fd223c7ad32d64407690b7291928236853a6_4f51c1de-57ee-4b31-a302-b695a4e6ffb8.webp?v=1714706201","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3b3b9e621247bab4cfd66b357cd3befe30c686_97bbf95f-5ede-4591-80e6-c9424663ca69.webp?v=1714706204"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7998991193a6163a656341d6b0fe430b8aad397e_11093aa1-ea1a-47ea-a858-9eef616ea05b.webp?v=1714706183","options":["color"],"media":[{"alt":null,"id":23875608051811,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7998991193a6163a656341d6b0fe430b8aad397e_11093aa1-ea1a-47ea-a858-9eef616ea05b.webp?v=1714706183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7998991193a6163a656341d6b0fe430b8aad397e_11093aa1-ea1a-47ea-a858-9eef616ea05b.webp?v=1714706183","width":2000},{"alt":null,"id":23875608313955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05673571bd8ff96dde540d40598f0d2fb98bee1_ac3d4cb4-eee5-4273-8c99-e265629c36ba.webp?v=1714706185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05673571bd8ff96dde540d40598f0d2fb98bee1_ac3d4cb4-eee5-4273-8c99-e265629c36ba.webp?v=1714706185","width":2000},{"alt":null,"id":23875608805475,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d0dcbaf7873b671777e6abdd3984f9a3d9f3080_2199b4c6-1889-42d7-9bda-092e491add34.webp?v=1714706188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d0dcbaf7873b671777e6abdd3984f9a3d9f3080_2199b4c6-1889-42d7-9bda-092e491add34.webp?v=1714706188","width":2000},{"alt":null,"id":23875609329763,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57144fb3293d4a782e2805fb840f774a701e131_ec5741d7-ebf3-4f15-bc6d-b25f1725db9e.webp?v=1714706190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d57144fb3293d4a782e2805fb840f774a701e131_ec5741d7-ebf3-4f15-bc6d-b25f1725db9e.webp?v=1714706190","width":2000},{"alt":null,"id":23875609821283,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1218e967ee523290b33afd9bb6f28b011e3dab2_bd46fa1d-1e7d-4a16-8641-4b188c11988a.webp?v=1714706192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c1218e967ee523290b33afd9bb6f28b011e3dab2_bd46fa1d-1e7d-4a16-8641-4b188c11988a.webp?v=1714706192","width":2000},{"alt":null,"id":23875610312803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd20cf417a2fb8d14d3bef84cb8d1135eb390af_cc17ae8d-4f77-4e71-b164-49c738a13f16.webp?v=1714706194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd20cf417a2fb8d14d3bef84cb8d1135eb390af_cc17ae8d-4f77-4e71-b164-49c738a13f16.webp?v=1714706194","width":2000},{"alt":null,"id":23875610771555,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d7eaed36b04e0ce659d48a768fd4057f646f5db_e653f1e0-11ef-4fc6-9737-a0949077bc1d.webp?v=1714706196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d7eaed36b04e0ce659d48a768fd4057f646f5db_e653f1e0-11ef-4fc6-9737-a0949077bc1d.webp?v=1714706196","width":2000},{"alt":null,"id":23875612901475,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c90ebb0deee802ae3ef970c8f5a63e8a9d16d574_3ff3db4b-83bb-4a94-a310-2ea731202539.webp?v=1714706199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c90ebb0deee802ae3ef970c8f5a63e8a9d16d574_3ff3db4b-83bb-4a94-a310-2ea731202539.webp?v=1714706199","width":2000},{"alt":null,"id":23875613360227,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d160fd223c7ad32d64407690b7291928236853a6_4f51c1de-57ee-4b31-a302-b695a4e6ffb8.webp?v=1714706201"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d160fd223c7ad32d64407690b7291928236853a6_4f51c1de-57ee-4b31-a302-b695a4e6ffb8.webp?v=1714706201","width":2000},{"alt":null,"id":23875613950051,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3b3b9e621247bab4cfd66b357cd3befe30c686_97bbf95f-5ede-4591-80e6-c9424663ca69.webp?v=1714706204"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6b3b3b9e621247bab4cfd66b357cd3befe30c686_97bbf95f-5ede-4591-80e6-c9424663ca69.webp?v=1714706204","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880559353955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470704263267,"product_id":7407921791075,"position":2,"created_at":"2024-05-03T11:16:25+08:00","updated_at":"2024-05-03T11:16:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05673571bd8ff96dde540d40598f0d2fb98bee1_ac3d4cb4-eee5-4273-8c99-e265629c36ba.webp?v=1714706185","variant_ids":[41880559353955]},"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-PB77","featured_media":{"alt":null,"id":23875608313955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05673571bd8ff96dde540d40598f0d2fb98bee1_ac3d4cb4-eee5-4273-8c99-e265629c36ba.webp?v=1714706185"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880559353955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB77","requires_shipping":true,"taxable":true,"featured_image":{"id":31470704263267,"product_id":7407921791075,"position":2,"created_at":"2024-05-03T11:16:25+08:00","updated_at":"2024-05-03T11:16:25+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05673571bd8ff96dde540d40598f0d2fb98bee1_ac3d4cb4-eee5-4273-8c99-e265629c36ba.webp?v=1714706185","variant_ids":[41880559353955]},"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-PB77","featured_media":{"alt":null,"id":23875608313955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e05673571bd8ff96dde540d40598f0d2fb98bee1_ac3d4cb4-eee5-4273-8c99-e265629c36ba.webp?v=1714706185"}},"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: "停產" }