$product = {"id":7407806021731,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Batman - 哥譚市","handle":"iphone-14-plus-mod-nx-printable-sb19","description":null,"published_at":"2024-06-11T16:23:25+08:00","created_at":"2024-05-03T10:53:28+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":41879057694819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470411710563,"product_id":7407806021731,"position":5,"created_at":"2024-05-03T10:53:40+08:00","updated_at":"2024-05-03T10:53:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69b8516970129a09a62b41b991fc37996dcfd48c_a17b89fa-76a1-4479-a792-d62365a65833.webp?v=1714704820","variant_ids":[41879057694819]},"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-SB19","featured_media":{"alt":null,"id":23875314942051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69b8516970129a09a62b41b991fc37996dcfd48c_a17b89fa-76a1-4479-a792-d62365a65833.webp?v=1714704820"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb5514e9c18837b389d5f045cedd93caab8ae09_13236eb2-aec5-41de-a8c3-bf9529ee27b4.webp?v=1714704810","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48f5e079caae68421e97a28ae644c7d3e7f607c2_71ccb4b0-b33c-42ef-9cd6-1e3252de4653.webp?v=1714704813","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb23b77189ed15d9f1a94f2a02301b3da83d0cab_02008130-3146-4b93-bb7e-3d3a165967c9.webp?v=1714704815","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d716b73602c69be6a84cc70e012fda867b3736_3c8601c4-56e3-41d6-bf6a-23ac9d125477.webp?v=1714704818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69b8516970129a09a62b41b991fc37996dcfd48c_a17b89fa-76a1-4479-a792-d62365a65833.webp?v=1714704820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b59255878ab8eaa5dc93c25cdf47ebc4633bbcda_81afe342-1dc8-4205-9e27-3cc019051151.webp?v=1714704822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94c0abaa57a90a13853cc44ff10d383af585a2d4_53ac8185-a6e7-4bf8-a462-320fd09e54c6.webp?v=1714704825","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/562770d54fd61f47a19e04be913114499da1d634_f6329d3e-8316-4248-992b-9d2cdac27162.webp?v=1714704828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8399187602e1df9394b8682c41d693aa52365ad9_112af80a-cde1-457d-9c11-52be25c127a4.webp?v=1714704830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d4b6c1ce47c184f72b70ae2ae0f0ea5d9630b9_ab058811-d409-4822-8a3b-249dc7511674.webp?v=1714704833"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb5514e9c18837b389d5f045cedd93caab8ae09_13236eb2-aec5-41de-a8c3-bf9529ee27b4.webp?v=1714704810","options":["color"],"media":[{"alt":null,"id":23875312189539,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb5514e9c18837b389d5f045cedd93caab8ae09_13236eb2-aec5-41de-a8c3-bf9529ee27b4.webp?v=1714704810"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eb5514e9c18837b389d5f045cedd93caab8ae09_13236eb2-aec5-41de-a8c3-bf9529ee27b4.webp?v=1714704810","width":2000},{"alt":null,"id":23875313008739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48f5e079caae68421e97a28ae644c7d3e7f607c2_71ccb4b0-b33c-42ef-9cd6-1e3252de4653.webp?v=1714704813"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/48f5e079caae68421e97a28ae644c7d3e7f607c2_71ccb4b0-b33c-42ef-9cd6-1e3252de4653.webp?v=1714704813","width":2000},{"alt":null,"id":23875313631331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb23b77189ed15d9f1a94f2a02301b3da83d0cab_02008130-3146-4b93-bb7e-3d3a165967c9.webp?v=1714704815"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb23b77189ed15d9f1a94f2a02301b3da83d0cab_02008130-3146-4b93-bb7e-3d3a165967c9.webp?v=1714704815","width":2000},{"alt":null,"id":23875314286691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d716b73602c69be6a84cc70e012fda867b3736_3c8601c4-56e3-41d6-bf6a-23ac9d125477.webp?v=1714704818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5d716b73602c69be6a84cc70e012fda867b3736_3c8601c4-56e3-41d6-bf6a-23ac9d125477.webp?v=1714704818","width":2000},{"alt":null,"id":23875314942051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69b8516970129a09a62b41b991fc37996dcfd48c_a17b89fa-76a1-4479-a792-d62365a65833.webp?v=1714704820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69b8516970129a09a62b41b991fc37996dcfd48c_a17b89fa-76a1-4479-a792-d62365a65833.webp?v=1714704820","width":2000},{"alt":null,"id":23875315695715,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b59255878ab8eaa5dc93c25cdf47ebc4633bbcda_81afe342-1dc8-4205-9e27-3cc019051151.webp?v=1714704822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b59255878ab8eaa5dc93c25cdf47ebc4633bbcda_81afe342-1dc8-4205-9e27-3cc019051151.webp?v=1714704822","width":2000},{"alt":null,"id":23875316318307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94c0abaa57a90a13853cc44ff10d383af585a2d4_53ac8185-a6e7-4bf8-a462-320fd09e54c6.webp?v=1714704825"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94c0abaa57a90a13853cc44ff10d383af585a2d4_53ac8185-a6e7-4bf8-a462-320fd09e54c6.webp?v=1714704825","width":2000},{"alt":null,"id":23875317104739,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/562770d54fd61f47a19e04be913114499da1d634_f6329d3e-8316-4248-992b-9d2cdac27162.webp?v=1714704828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/562770d54fd61f47a19e04be913114499da1d634_f6329d3e-8316-4248-992b-9d2cdac27162.webp?v=1714704828","width":2000},{"alt":null,"id":23875317858403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8399187602e1df9394b8682c41d693aa52365ad9_112af80a-cde1-457d-9c11-52be25c127a4.webp?v=1714704830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8399187602e1df9394b8682c41d693aa52365ad9_112af80a-cde1-457d-9c11-52be25c127a4.webp?v=1714704830","width":2000},{"alt":null,"id":23875318415459,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d4b6c1ce47c184f72b70ae2ae0f0ea5d9630b9_ab058811-d409-4822-8a3b-249dc7511674.webp?v=1714704833"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d4b6c1ce47c184f72b70ae2ae0f0ea5d9630b9_ab058811-d409-4822-8a3b-249dc7511674.webp?v=1714704833","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879057694819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470411710563,"product_id":7407806021731,"position":5,"created_at":"2024-05-03T10:53:40+08:00","updated_at":"2024-05-03T10:53:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69b8516970129a09a62b41b991fc37996dcfd48c_a17b89fa-76a1-4479-a792-d62365a65833.webp?v=1714704820","variant_ids":[41879057694819]},"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-SB19","featured_media":{"alt":null,"id":23875314942051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69b8516970129a09a62b41b991fc37996dcfd48c_a17b89fa-76a1-4479-a792-d62365a65833.webp?v=1714704820"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879057694819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-SB19","requires_shipping":true,"taxable":true,"featured_image":{"id":31470411710563,"product_id":7407806021731,"position":5,"created_at":"2024-05-03T10:53:40+08:00","updated_at":"2024-05-03T10:53:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69b8516970129a09a62b41b991fc37996dcfd48c_a17b89fa-76a1-4479-a792-d62365a65833.webp?v=1714704820","variant_ids":[41879057694819]},"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-SB19","featured_media":{"alt":null,"id":23875314942051,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69b8516970129a09a62b41b991fc37996dcfd48c_a17b89fa-76a1-4479-a792-d62365a65833.webp?v=1714704820"}},"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: "停產" }