$product = {"id":7416338972771,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術","handle":"iphone-8-mod-nx-printable-pb39","description":null,"published_at":"2024-06-11T16:56:19+08:00","created_at":"2024-05-06T14:37:33+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 8","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":41918660706403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31491883958371,"product_id":7416338972771,"position":4,"created_at":"2024-05-06T14:37:42+08:00","updated_at":"2024-05-06T14:37:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb91cdb22f7b94a0b47be85ded5c316b41a96cf_ee8c15c0-7b55-4786-b10f-c315f94a48e5.webp?v=1714977462","variant_ids":[41918660706403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB0105424-PB39","featured_media":{"alt":null,"id":23897296797795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb91cdb22f7b94a0b47be85ded5c316b41a96cf_ee8c15c0-7b55-4786-b10f-c315f94a48e5.webp?v=1714977462"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bc5c95ee48af29a47a954ee54ce7df3ff92e46_33c64925-b9a1-4676-90ec-f255b305992e.webp?v=1714977456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba272d23f191e9fa78998cd6605b3675dce28c40_1a4a24e9-dea2-480a-a9bc-d08e30071d32.webp?v=1714977458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c750c739a4ea631a088a32efb2d517fd6eddc94_e4a0cddf-1c0c-40f9-9c91-a63c52c20191.webp?v=1714977460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb91cdb22f7b94a0b47be85ded5c316b41a96cf_ee8c15c0-7b55-4786-b10f-c315f94a48e5.webp?v=1714977462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb73c16696105b252cd91c13a3061af9578d2a60_e2f9145c-05c3-452b-89a6-3293e0fdf790.webp?v=1714977465","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd64c83956be539ef4169293cb8919cccfe0b227_349973e9-95eb-4fc4-a008-95936c3ef6f6.webp?v=1714977467","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa84f695d2f870f9f72356fcf475e8b9a8a10fb3_fee883e2-84e9-43f0-a067-138c06607e9f.webp?v=1714977469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f909e003b2305d291636e0ab877c601f59fd0a_81fcaaf9-a407-4b10-b7d5-a358c19e153e.webp?v=1714977472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d3177cc395d474f499a6b00966ee74005660ad_a22fa18a-57c7-4e47-8ea8-e525dc36d31e.webp?v=1714977474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c310f55355e3c5a53e7bd50127756100d3689e91_d8edf7ff-954b-4f9f-be12-b8e678d09c8e.webp?v=1714977476"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bc5c95ee48af29a47a954ee54ce7df3ff92e46_33c64925-b9a1-4676-90ec-f255b305992e.webp?v=1714977456","options":["color"],"media":[{"alt":null,"id":23897295552611,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bc5c95ee48af29a47a954ee54ce7df3ff92e46_33c64925-b9a1-4676-90ec-f255b305992e.webp?v=1714977456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95bc5c95ee48af29a47a954ee54ce7df3ff92e46_33c64925-b9a1-4676-90ec-f255b305992e.webp?v=1714977456","width":2000},{"alt":null,"id":23897295814755,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba272d23f191e9fa78998cd6605b3675dce28c40_1a4a24e9-dea2-480a-a9bc-d08e30071d32.webp?v=1714977458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba272d23f191e9fa78998cd6605b3675dce28c40_1a4a24e9-dea2-480a-a9bc-d08e30071d32.webp?v=1714977458","width":2000},{"alt":null,"id":23897296470115,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c750c739a4ea631a088a32efb2d517fd6eddc94_e4a0cddf-1c0c-40f9-9c91-a63c52c20191.webp?v=1714977460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c750c739a4ea631a088a32efb2d517fd6eddc94_e4a0cddf-1c0c-40f9-9c91-a63c52c20191.webp?v=1714977460","width":2000},{"alt":null,"id":23897296797795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb91cdb22f7b94a0b47be85ded5c316b41a96cf_ee8c15c0-7b55-4786-b10f-c315f94a48e5.webp?v=1714977462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb91cdb22f7b94a0b47be85ded5c316b41a96cf_ee8c15c0-7b55-4786-b10f-c315f94a48e5.webp?v=1714977462","width":2000},{"alt":null,"id":23897297387619,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb73c16696105b252cd91c13a3061af9578d2a60_e2f9145c-05c3-452b-89a6-3293e0fdf790.webp?v=1714977465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cb73c16696105b252cd91c13a3061af9578d2a60_e2f9145c-05c3-452b-89a6-3293e0fdf790.webp?v=1714977465","width":2000},{"alt":null,"id":23897297715299,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd64c83956be539ef4169293cb8919cccfe0b227_349973e9-95eb-4fc4-a008-95936c3ef6f6.webp?v=1714977467"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd64c83956be539ef4169293cb8919cccfe0b227_349973e9-95eb-4fc4-a008-95936c3ef6f6.webp?v=1714977467","width":2000},{"alt":null,"id":23897298272355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa84f695d2f870f9f72356fcf475e8b9a8a10fb3_fee883e2-84e9-43f0-a067-138c06607e9f.webp?v=1714977469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa84f695d2f870f9f72356fcf475e8b9a8a10fb3_fee883e2-84e9-43f0-a067-138c06607e9f.webp?v=1714977469","width":2000},{"alt":null,"id":23897298665571,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f909e003b2305d291636e0ab877c601f59fd0a_81fcaaf9-a407-4b10-b7d5-a358c19e153e.webp?v=1714977472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90f909e003b2305d291636e0ab877c601f59fd0a_81fcaaf9-a407-4b10-b7d5-a358c19e153e.webp?v=1714977472","width":2000},{"alt":null,"id":23897299026019,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d3177cc395d474f499a6b00966ee74005660ad_a22fa18a-57c7-4e47-8ea8-e525dc36d31e.webp?v=1714977474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d3177cc395d474f499a6b00966ee74005660ad_a22fa18a-57c7-4e47-8ea8-e525dc36d31e.webp?v=1714977474","width":2000},{"alt":null,"id":23897299779683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c310f55355e3c5a53e7bd50127756100d3689e91_d8edf7ff-954b-4f9f-be12-b8e678d09c8e.webp?v=1714977476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c310f55355e3c5a53e7bd50127756100d3689e91_d8edf7ff-954b-4f9f-be12-b8e678d09c8e.webp?v=1714977476","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918660706403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31491883958371,"product_id":7416338972771,"position":4,"created_at":"2024-05-06T14:37:42+08:00","updated_at":"2024-05-06T14:37:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb91cdb22f7b94a0b47be85ded5c316b41a96cf_ee8c15c0-7b55-4786-b10f-c315f94a48e5.webp?v=1714977462","variant_ids":[41918660706403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB0105424-PB39","featured_media":{"alt":null,"id":23897296797795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb91cdb22f7b94a0b47be85ded5c316b41a96cf_ee8c15c0-7b55-4786-b10f-c315f94a48e5.webp?v=1714977462"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918660706403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31491883958371,"product_id":7416338972771,"position":4,"created_at":"2024-05-06T14:37:42+08:00","updated_at":"2024-05-06T14:37:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb91cdb22f7b94a0b47be85ded5c316b41a96cf_ee8c15c0-7b55-4786-b10f-c315f94a48e5.webp?v=1714977462","variant_ids":[41918660706403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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":"NPB0105424-PB39","featured_media":{"alt":null,"id":23897296797795,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9eb91cdb22f7b94a0b47be85ded5c316b41a96cf_ee8c15c0-7b55-4786-b10f-c315f94a48e5.webp?v=1714977462"}},"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: "停產" }