$product = {"id":7407945416803,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大龍王","handle":"iphone-14-plus-mod-nx-printable-eo06","description":null,"published_at":"2024-06-11T16:27:15+08:00","created_at":"2024-05-03T11:21:07+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Weiweiboy","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-weiweiboy","device-iPhone 14 Plus","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-weiweiboy","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":41880869503075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470766620771,"product_id":7407945416803,"position":1,"created_at":"2024-05-03T11:21:09+08:00","updated_at":"2024-05-03T11:21:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469","variant_ids":[41880869503075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大龍王 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-EO06","featured_media":{"alt":null,"id":23875670900835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31e9dc6739258a83ac794be9f34e0efff7055608_d8518626-bc89-4242-9c0f-6022e6cc0087.webp?v=1714706472","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25bcb92f6a7dc5748d037e39da35c940345ae913_4b5e87f1-d929-4eff-8e67-56c17bd885a6.webp?v=1714706474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92ce6459c785f952d2e573611f3a2a514f67349d_9be00781-3d0a-4077-9708-72a5304ccc52.webp?v=1714706477","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6919decc27fbf7dd92fd2eb19637305799751bab_34a34418-cf49-49fe-8fbf-a73461e6cf94.webp?v=1714706479","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42cfe5ef5c29d624c50d462f656f7dc93602f217_b70dd7bf-fb58-486c-ba79-0e7344a25e1b.webp?v=1714706482","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77f55750ae9b4b1b1d2c342e626712c2bca502c6_521a5e89-36fd-430e-92e7-9413567992f7.webp?v=1714706484","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba0b70a8b6273dce733f79ee07ea8345b5f12737_0840838f-5514-4ddd-8d1b-933a27732c8d.webp?v=1714706486","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a59d897bc7d5920de846ba88c1e95d2540af445e_d4c330c1-0175-49c7-a665-8f927ffe42bc.webp?v=1714706489","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247c858a0b01b378abd037b3687a162af8595d0a_64859ac3-ccce-4891-82d3-72284c5dbfa6.webp?v=1714706491"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469","options":["color"],"media":[{"alt":null,"id":23875670900835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469","width":2000},{"alt":null,"id":23875671294051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31e9dc6739258a83ac794be9f34e0efff7055608_d8518626-bc89-4242-9c0f-6022e6cc0087.webp?v=1714706472"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/31e9dc6739258a83ac794be9f34e0efff7055608_d8518626-bc89-4242-9c0f-6022e6cc0087.webp?v=1714706472","width":2000},{"alt":null,"id":23875671818339,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25bcb92f6a7dc5748d037e39da35c940345ae913_4b5e87f1-d929-4eff-8e67-56c17bd885a6.webp?v=1714706474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25bcb92f6a7dc5748d037e39da35c940345ae913_4b5e87f1-d929-4eff-8e67-56c17bd885a6.webp?v=1714706474","width":2000},{"alt":null,"id":23875672146019,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92ce6459c785f952d2e573611f3a2a514f67349d_9be00781-3d0a-4077-9708-72a5304ccc52.webp?v=1714706477"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92ce6459c785f952d2e573611f3a2a514f67349d_9be00781-3d0a-4077-9708-72a5304ccc52.webp?v=1714706477","width":2000},{"alt":null,"id":23875672670307,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6919decc27fbf7dd92fd2eb19637305799751bab_34a34418-cf49-49fe-8fbf-a73461e6cf94.webp?v=1714706479"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6919decc27fbf7dd92fd2eb19637305799751bab_34a34418-cf49-49fe-8fbf-a73461e6cf94.webp?v=1714706479","width":2000},{"alt":null,"id":23875673030755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42cfe5ef5c29d624c50d462f656f7dc93602f217_b70dd7bf-fb58-486c-ba79-0e7344a25e1b.webp?v=1714706482"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42cfe5ef5c29d624c50d462f656f7dc93602f217_b70dd7bf-fb58-486c-ba79-0e7344a25e1b.webp?v=1714706482","width":2000},{"alt":null,"id":23875673587811,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77f55750ae9b4b1b1d2c342e626712c2bca502c6_521a5e89-36fd-430e-92e7-9413567992f7.webp?v=1714706484"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77f55750ae9b4b1b1d2c342e626712c2bca502c6_521a5e89-36fd-430e-92e7-9413567992f7.webp?v=1714706484","width":2000},{"alt":null,"id":23875673948259,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba0b70a8b6273dce733f79ee07ea8345b5f12737_0840838f-5514-4ddd-8d1b-933a27732c8d.webp?v=1714706486"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba0b70a8b6273dce733f79ee07ea8345b5f12737_0840838f-5514-4ddd-8d1b-933a27732c8d.webp?v=1714706486","width":2000},{"alt":null,"id":23875674603619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a59d897bc7d5920de846ba88c1e95d2540af445e_d4c330c1-0175-49c7-a665-8f927ffe42bc.webp?v=1714706489"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a59d897bc7d5920de846ba88c1e95d2540af445e_d4c330c1-0175-49c7-a665-8f927ffe42bc.webp?v=1714706489","width":2000},{"alt":null,"id":23875674996835,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247c858a0b01b378abd037b3687a162af8595d0a_64859ac3-ccce-4891-82d3-72284c5dbfa6.webp?v=1714706491"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/247c858a0b01b378abd037b3687a162af8595d0a_64859ac3-ccce-4891-82d3-72284c5dbfa6.webp?v=1714706491","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41880869503075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470766620771,"product_id":7407945416803,"position":1,"created_at":"2024-05-03T11:21:09+08:00","updated_at":"2024-05-03T11:21:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469","variant_ids":[41880869503075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大龍王 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-EO06","featured_media":{"alt":null,"id":23875670900835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41880869503075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-EO06","requires_shipping":true,"taxable":true,"featured_image":{"id":31470766620771,"product_id":7407945416803,"position":1,"created_at":"2024-05-03T11:21:09+08:00","updated_at":"2024-05-03T11:21:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469","variant_ids":[41880869503075]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - Weiweiboy - 可愛大龍王 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":860,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-EO06","featured_media":{"alt":null,"id":23875670900835,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1f8011b463e81ffabb556cd0f07fb41470f5cee_24768283-3a80-4cdb-87ae-f44e51c94de8.webp?v=1714706469"}},"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: "停產" }