$product = {"id":7407943254115,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 賈霸-塗鴉藝術","handle":"iphone-14-plus-mod-nx-printable-pb41","description":null,"published_at":"2024-06-11T16:27:12+08:00","created_at":"2024-05-03T11:20:42+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":41880840700003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31470765047907,"product_id":7407943254115,"position":8,"created_at":"2024-05-03T11:21:00+08:00","updated_at":"2024-05-03T11:21:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916cb8e971abc1122858aa6f6a5c5b26d6fff111_ee760de1-4ecb-4a8e-8d20-dfe52efce6a1.webp?v=1714706460","variant_ids":[41880840700003]},"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-PB41","featured_media":{"alt":null,"id":23875669262435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916cb8e971abc1122858aa6f6a5c5b26d6fff111_ee760de1-4ecb-4a8e-8d20-dfe52efce6a1.webp?v=1714706460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/379389405c133efc2d29ea9bec041a75301edef3_a3a2a70d-3be9-4276-9ab9-b9f1029648ce.webp?v=1714706444","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad00dfeb51e2dc903d91f7b32032c967f6bce0c3_e79bcb3f-d1ed-4ed8-842f-ba038647aac5.webp?v=1714706447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f38e586613b5282c4a601c3c5dd9798820a2ad_095e08ea-056f-42a3-84fe-2a18f54d4f42.webp?v=1714706449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd05966620da0c346102f3a56391c7afcd700379_88ee056f-82b5-4218-8ada-99d8b1f99eae.webp?v=1714706451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e1e04572e59ef79e56ad5b2793fa566a78d1278_ccb74f29-8e00-4fee-9d45-8ec4ef46e626.webp?v=1714706453","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc551d10c6dc915de0da40b0cc6d02974f93252_d64f2e9a-6240-4801-a546-ff6c1a4c9f20.webp?v=1714706456","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7176d58e53889e0a9ab7a0ce413c68ed0aa4990_8ef6ac70-f37f-4e69-a75d-0f9c37fec01e.webp?v=1714706458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916cb8e971abc1122858aa6f6a5c5b26d6fff111_ee760de1-4ecb-4a8e-8d20-dfe52efce6a1.webp?v=1714706460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/220a4d93fccff3b8c5e67907a9e21a034eba0ba7_d06b7d3a-304a-4a90-b901-dfb08721cf51.webp?v=1714706463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb44260b4ebdda72bd1f162031d4ce5b336c10e_f5d6fdee-5c9b-4cf6-ab15-511699e8bdf5.webp?v=1714706465"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/379389405c133efc2d29ea9bec041a75301edef3_a3a2a70d-3be9-4276-9ab9-b9f1029648ce.webp?v=1714706444","options":["color"],"media":[{"alt":null,"id":23875666280547,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/379389405c133efc2d29ea9bec041a75301edef3_a3a2a70d-3be9-4276-9ab9-b9f1029648ce.webp?v=1714706444"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/379389405c133efc2d29ea9bec041a75301edef3_a3a2a70d-3be9-4276-9ab9-b9f1029648ce.webp?v=1714706444","width":2000},{"alt":null,"id":23875666706531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad00dfeb51e2dc903d91f7b32032c967f6bce0c3_e79bcb3f-d1ed-4ed8-842f-ba038647aac5.webp?v=1714706447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad00dfeb51e2dc903d91f7b32032c967f6bce0c3_e79bcb3f-d1ed-4ed8-842f-ba038647aac5.webp?v=1714706447","width":2000},{"alt":null,"id":23875667132515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f38e586613b5282c4a601c3c5dd9798820a2ad_095e08ea-056f-42a3-84fe-2a18f54d4f42.webp?v=1714706449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/82f38e586613b5282c4a601c3c5dd9798820a2ad_095e08ea-056f-42a3-84fe-2a18f54d4f42.webp?v=1714706449","width":2000},{"alt":null,"id":23875667492963,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd05966620da0c346102f3a56391c7afcd700379_88ee056f-82b5-4218-8ada-99d8b1f99eae.webp?v=1714706451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd05966620da0c346102f3a56391c7afcd700379_88ee056f-82b5-4218-8ada-99d8b1f99eae.webp?v=1714706451","width":2000},{"alt":null,"id":23875667984483,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e1e04572e59ef79e56ad5b2793fa566a78d1278_ccb74f29-8e00-4fee-9d45-8ec4ef46e626.webp?v=1714706453"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e1e04572e59ef79e56ad5b2793fa566a78d1278_ccb74f29-8e00-4fee-9d45-8ec4ef46e626.webp?v=1714706453","width":2000},{"alt":null,"id":23875668377699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc551d10c6dc915de0da40b0cc6d02974f93252_d64f2e9a-6240-4801-a546-ff6c1a4c9f20.webp?v=1714706456"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7fc551d10c6dc915de0da40b0cc6d02974f93252_d64f2e9a-6240-4801-a546-ff6c1a4c9f20.webp?v=1714706456","width":2000},{"alt":null,"id":23875668869219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7176d58e53889e0a9ab7a0ce413c68ed0aa4990_8ef6ac70-f37f-4e69-a75d-0f9c37fec01e.webp?v=1714706458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c7176d58e53889e0a9ab7a0ce413c68ed0aa4990_8ef6ac70-f37f-4e69-a75d-0f9c37fec01e.webp?v=1714706458","width":2000},{"alt":null,"id":23875669262435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916cb8e971abc1122858aa6f6a5c5b26d6fff111_ee760de1-4ecb-4a8e-8d20-dfe52efce6a1.webp?v=1714706460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916cb8e971abc1122858aa6f6a5c5b26d6fff111_ee760de1-4ecb-4a8e-8d20-dfe52efce6a1.webp?v=1714706460","width":2000},{"alt":null,"id":23875669721187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/220a4d93fccff3b8c5e67907a9e21a034eba0ba7_d06b7d3a-304a-4a90-b901-dfb08721cf51.webp?v=1714706463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/220a4d93fccff3b8c5e67907a9e21a034eba0ba7_d06b7d3a-304a-4a90-b901-dfb08721cf51.webp?v=1714706463","width":2000},{"alt":null,"id":23875670147171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb44260b4ebdda72bd1f162031d4ce5b336c10e_f5d6fdee-5c9b-4cf6-ab15-511699e8bdf5.webp?v=1714706465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fb44260b4ebdda72bd1f162031d4ce5b336c10e_f5d6fdee-5c9b-4cf6-ab15-511699e8bdf5.webp?v=1714706465","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880840700003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31470765047907,"product_id":7407943254115,"position":8,"created_at":"2024-05-03T11:21:00+08:00","updated_at":"2024-05-03T11:21:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916cb8e971abc1122858aa6f6a5c5b26d6fff111_ee760de1-4ecb-4a8e-8d20-dfe52efce6a1.webp?v=1714706460","variant_ids":[41880840700003]},"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-PB41","featured_media":{"alt":null,"id":23875669262435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916cb8e971abc1122858aa6f6a5c5b26d6fff111_ee760de1-4ecb-4a8e-8d20-dfe52efce6a1.webp?v=1714706460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880840700003,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB41","requires_shipping":true,"taxable":true,"featured_image":{"id":31470765047907,"product_id":7407943254115,"position":8,"created_at":"2024-05-03T11:21:00+08:00","updated_at":"2024-05-03T11:21:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916cb8e971abc1122858aa6f6a5c5b26d6fff111_ee760de1-4ecb-4a8e-8d20-dfe52efce6a1.webp?v=1714706460","variant_ids":[41880840700003]},"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-PB41","featured_media":{"alt":null,"id":23875669262435,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/916cb8e971abc1122858aa6f6a5c5b26d6fff111_ee760de1-4ecb-4a8e-8d20-dfe52efce6a1.webp?v=1714706460"}},"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: "停產" }