$product = {"id":7407857205347,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 爪哇族2-塗鴉藝術","handle":"iphone-14-plus-mod-nx-printable-pb40","description":null,"published_at":"2024-06-11T16:24:46+08:00","created_at":"2024-05-03T11:03:35+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":41879699193955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31470545174627,"product_id":7407857205347,"position":2,"created_at":"2024-05-03T11:03:40+08:00","updated_at":"2024-05-03T11:03:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb08d7a112092f2de970d4fe7329a6d9c538fd7_4af31bbe-6cc5-4250-9a73-137c1ccaaf2a.webp?v=1714705420","variant_ids":[41879699193955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PB40","featured_media":{"alt":null,"id":23875449028707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb08d7a112092f2de970d4fe7329a6d9c538fd7_4af31bbe-6cc5-4250-9a73-137c1ccaaf2a.webp?v=1714705420"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2a23da69342d0c1bcd1857f8cd875ec57cad2d5_6169190f-a958-4583-8d3d-38615e07ef79.webp?v=1714705417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb08d7a112092f2de970d4fe7329a6d9c538fd7_4af31bbe-6cc5-4250-9a73-137c1ccaaf2a.webp?v=1714705420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c951224d46d0e795c996826a89b74f163b2149a2_715eb715-e152-44a8-8756-531019f6c87f.webp?v=1714705422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405c74bff46b56bab889fe5bbda0ebff17295fc8_e02c8a58-5066-484f-8869-bea88ec1073d.webp?v=1714705424","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77dfd0eca859f3efb8320d504345b39e9c6ca840_506126ef-9559-4650-9aca-134c0ad540ac.webp?v=1714705426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1462fdddf0d1ef8571ed2561b281592ae57b718f_49075a82-6796-4d94-95b1-3fa7ed63d6e4.webp?v=1714705429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df9d7640cd93416efdde66b4b875f00ad35cd0bd_d289573a-d09c-4b12-b3d1-21e21d7ea0ca.webp?v=1714705431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60990f48f9aeec2704273e740ec7f156b0468c95_689fc9ba-fcb0-40cf-9557-097bc6b0e2eb.webp?v=1714705433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8a9800770ef635fcda84fff899d48872d2cd1a_186be0a8-24de-416a-ae61-6dab8c36f55d.webp?v=1714705436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934fd4b0d409824a0f707dad4da563d8187d00c5_29d95564-6e3c-4da2-b4f5-b7532665cab8.webp?v=1714705438"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2a23da69342d0c1bcd1857f8cd875ec57cad2d5_6169190f-a958-4583-8d3d-38615e07ef79.webp?v=1714705417","options":["color"],"media":[{"alt":null,"id":23875448340579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2a23da69342d0c1bcd1857f8cd875ec57cad2d5_6169190f-a958-4583-8d3d-38615e07ef79.webp?v=1714705417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2a23da69342d0c1bcd1857f8cd875ec57cad2d5_6169190f-a958-4583-8d3d-38615e07ef79.webp?v=1714705417","width":2000},{"alt":null,"id":23875449028707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb08d7a112092f2de970d4fe7329a6d9c538fd7_4af31bbe-6cc5-4250-9a73-137c1ccaaf2a.webp?v=1714705420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb08d7a112092f2de970d4fe7329a6d9c538fd7_4af31bbe-6cc5-4250-9a73-137c1ccaaf2a.webp?v=1714705420","width":2000},{"alt":null,"id":23875449749603,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c951224d46d0e795c996826a89b74f163b2149a2_715eb715-e152-44a8-8756-531019f6c87f.webp?v=1714705422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c951224d46d0e795c996826a89b74f163b2149a2_715eb715-e152-44a8-8756-531019f6c87f.webp?v=1714705422","width":2000},{"alt":null,"id":23875450568803,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405c74bff46b56bab889fe5bbda0ebff17295fc8_e02c8a58-5066-484f-8869-bea88ec1073d.webp?v=1714705424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/405c74bff46b56bab889fe5bbda0ebff17295fc8_e02c8a58-5066-484f-8869-bea88ec1073d.webp?v=1714705424","width":2000},{"alt":null,"id":23875451420771,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77dfd0eca859f3efb8320d504345b39e9c6ca840_506126ef-9559-4650-9aca-134c0ad540ac.webp?v=1714705426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77dfd0eca859f3efb8320d504345b39e9c6ca840_506126ef-9559-4650-9aca-134c0ad540ac.webp?v=1714705426","width":2000},{"alt":null,"id":23875451945059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1462fdddf0d1ef8571ed2561b281592ae57b718f_49075a82-6796-4d94-95b1-3fa7ed63d6e4.webp?v=1714705429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1462fdddf0d1ef8571ed2561b281592ae57b718f_49075a82-6796-4d94-95b1-3fa7ed63d6e4.webp?v=1714705429","width":2000},{"alt":null,"id":23875452436579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df9d7640cd93416efdde66b4b875f00ad35cd0bd_d289573a-d09c-4b12-b3d1-21e21d7ea0ca.webp?v=1714705431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/df9d7640cd93416efdde66b4b875f00ad35cd0bd_d289573a-d09c-4b12-b3d1-21e21d7ea0ca.webp?v=1714705431","width":2000},{"alt":null,"id":23875452862563,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60990f48f9aeec2704273e740ec7f156b0468c95_689fc9ba-fcb0-40cf-9557-097bc6b0e2eb.webp?v=1714705433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60990f48f9aeec2704273e740ec7f156b0468c95_689fc9ba-fcb0-40cf-9557-097bc6b0e2eb.webp?v=1714705433","width":2000},{"alt":null,"id":23875453386851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8a9800770ef635fcda84fff899d48872d2cd1a_186be0a8-24de-416a-ae61-6dab8c36f55d.webp?v=1714705436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8a9800770ef635fcda84fff899d48872d2cd1a_186be0a8-24de-416a-ae61-6dab8c36f55d.webp?v=1714705436","width":2000},{"alt":null,"id":23875454107747,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934fd4b0d409824a0f707dad4da563d8187d00c5_29d95564-6e3c-4da2-b4f5-b7532665cab8.webp?v=1714705438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/934fd4b0d409824a0f707dad4da563d8187d00c5_29d95564-6e3c-4da2-b4f5-b7532665cab8.webp?v=1714705438","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879699193955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31470545174627,"product_id":7407857205347,"position":2,"created_at":"2024-05-03T11:03:40+08:00","updated_at":"2024-05-03T11:03:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb08d7a112092f2de970d4fe7329a6d9c538fd7_4af31bbe-6cc5-4250-9a73-137c1ccaaf2a.webp?v=1714705420","variant_ids":[41879699193955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PB40","featured_media":{"alt":null,"id":23875449028707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb08d7a112092f2de970d4fe7329a6d9c538fd7_4af31bbe-6cc5-4250-9a73-137c1ccaaf2a.webp?v=1714705420"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879699193955,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-PB40","requires_shipping":true,"taxable":true,"featured_image":{"id":31470545174627,"product_id":7407857205347,"position":2,"created_at":"2024-05-03T11:03:40+08:00","updated_at":"2024-05-03T11:03:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb08d7a112092f2de970d4fe7329a6d9c538fd7_4af31bbe-6cc5-4250-9a73-137c1ccaaf2a.webp?v=1714705420","variant_ids":[41879699193955]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 迪士尼-星際大戰 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":"NPB0126124-PB40","featured_media":{"alt":null,"id":23875449028707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bb08d7a112092f2de970d4fe7329a6d9c538fd7_4af31bbe-6cc5-4250-9a73-137c1ccaaf2a.webp?v=1714705420"}},"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: "停產" }