$product = {"id":7407493251171,"title":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【獨家設計款】 - 春夏犬の時裝週","handle":"iphone-15-plus-mod-nx-printable-b071","description":null,"published_at":"2024-06-11T16:17:21+08:00","created_at":"2024-05-03T09:58:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 15 Plus","discountable-item","member","merge","mod-nx-printable","new-modnx-sku","reseller","reseller-modnx-original-design","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":41875652280419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-B071","requires_shipping":true,"taxable":true,"featured_image":{"id":31469720535139,"product_id":7407493251171,"position":4,"created_at":"2024-05-03T09:58:24+08:00","updated_at":"2024-05-03T09:58:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d02aef3fef1733477c37562429c89fbf89259a_f8471a51-db16-426e-b6de-b733158a9a14.webp?v=1714701504","variant_ids":[41875652280419]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【獨家設計款】 - 春夏犬の時裝週 - 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":"NPB0129624-B071","featured_media":{"alt":null,"id":23874621866083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d02aef3fef1733477c37562429c89fbf89259a_f8471a51-db16-426e-b6de-b733158a9a14.webp?v=1714701504"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875652444259,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-B071","requires_shipping":true,"taxable":true,"featured_image":{"id":31469723943011,"product_id":7407493251171,"position":8,"created_at":"2024-05-03T09:58:35+08:00","updated_at":"2024-05-03T09:58:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6f2e34fdb7b99aa3c07cfeb0e02a0bd0ce7211_7a2b3c5b-9f9a-42dd-9e9e-538a5beb604e.webp?v=1714701515","variant_ids":[41875652444259]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【獨家設計款】 - 春夏犬の時裝週 - 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":"NPB0129657-B071","featured_media":{"alt":null,"id":23874625208419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6f2e34fdb7b99aa3c07cfeb0e02a0bd0ce7211_7a2b3c5b-9f9a-42dd-9e9e-538a5beb604e.webp?v=1714701515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ecc7e0d033c61664e4a4f82b049a954c8ed29f_9e2337df-623c-4bcd-a7f2-5507070fe3ea.webp?v=1714701497","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0762bf54c87aec1aff9ee66b8d348b8c675bbb06_7c4dbbfe-2866-43ab-a09e-59f117fa88c8.webp?v=1714701499","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e1b97ca4cf955f08a53ba4ced4dfc62e274dc6_26f24d9c-2b2a-42f4-9394-77ff27a67818.webp?v=1714701501","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d02aef3fef1733477c37562429c89fbf89259a_f8471a51-db16-426e-b6de-b733158a9a14.webp?v=1714701504","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60598a57c4c6a0b2091d8c8c1cce1b1312937816_3a1738f1-7176-471f-b670-9296549f0e52.webp?v=1714701506","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6ed05eb9b4fd7d2cc1cf94e3c08dffc30fcddf_ce2d0794-1193-49ca-93f9-434d44dedf0f.webp?v=1714701510","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60958c835ef4bbb3657e888ed04e35a0716cf5a6_7c3ff715-e4de-46e9-bbe4-a365ecff414e.webp?v=1714701513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6f2e34fdb7b99aa3c07cfeb0e02a0bd0ce7211_7a2b3c5b-9f9a-42dd-9e9e-538a5beb604e.webp?v=1714701515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6ef195ec6ae400108eb7f9e34c0ce460f50ab1_3ddf00a9-405d-4791-800b-35ba679219e2.webp?v=1714701517"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ecc7e0d033c61664e4a4f82b049a954c8ed29f_9e2337df-623c-4bcd-a7f2-5507070fe3ea.webp?v=1714701497","options":["color"],"media":[{"alt":null,"id":23874620162147,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ecc7e0d033c61664e4a4f82b049a954c8ed29f_9e2337df-623c-4bcd-a7f2-5507070fe3ea.webp?v=1714701497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4ecc7e0d033c61664e4a4f82b049a954c8ed29f_9e2337df-623c-4bcd-a7f2-5507070fe3ea.webp?v=1714701497","width":2000},{"alt":null,"id":23874620817507,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0762bf54c87aec1aff9ee66b8d348b8c675bbb06_7c4dbbfe-2866-43ab-a09e-59f117fa88c8.webp?v=1714701499"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0762bf54c87aec1aff9ee66b8d348b8c675bbb06_7c4dbbfe-2866-43ab-a09e-59f117fa88c8.webp?v=1714701499","width":2000},{"alt":null,"id":23874621341795,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e1b97ca4cf955f08a53ba4ced4dfc62e274dc6_26f24d9c-2b2a-42f4-9394-77ff27a67818.webp?v=1714701501"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/37e1b97ca4cf955f08a53ba4ced4dfc62e274dc6_26f24d9c-2b2a-42f4-9394-77ff27a67818.webp?v=1714701501","width":2000},{"alt":null,"id":23874621866083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d02aef3fef1733477c37562429c89fbf89259a_f8471a51-db16-426e-b6de-b733158a9a14.webp?v=1714701504"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d02aef3fef1733477c37562429c89fbf89259a_f8471a51-db16-426e-b6de-b733158a9a14.webp?v=1714701504","width":2000},{"alt":null,"id":23874622324835,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60598a57c4c6a0b2091d8c8c1cce1b1312937816_3a1738f1-7176-471f-b670-9296549f0e52.webp?v=1714701506"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60598a57c4c6a0b2091d8c8c1cce1b1312937816_3a1738f1-7176-471f-b670-9296549f0e52.webp?v=1714701506","width":2000},{"alt":null,"id":23874624290915,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6ed05eb9b4fd7d2cc1cf94e3c08dffc30fcddf_ce2d0794-1193-49ca-93f9-434d44dedf0f.webp?v=1714701510"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5f6ed05eb9b4fd7d2cc1cf94e3c08dffc30fcddf_ce2d0794-1193-49ca-93f9-434d44dedf0f.webp?v=1714701510","width":2000},{"alt":null,"id":23874624716899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60958c835ef4bbb3657e888ed04e35a0716cf5a6_7c3ff715-e4de-46e9-bbe4-a365ecff414e.webp?v=1714701513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60958c835ef4bbb3657e888ed04e35a0716cf5a6_7c3ff715-e4de-46e9-bbe4-a365ecff414e.webp?v=1714701513","width":2000},{"alt":null,"id":23874625208419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6f2e34fdb7b99aa3c07cfeb0e02a0bd0ce7211_7a2b3c5b-9f9a-42dd-9e9e-538a5beb604e.webp?v=1714701515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6f2e34fdb7b99aa3c07cfeb0e02a0bd0ce7211_7a2b3c5b-9f9a-42dd-9e9e-538a5beb604e.webp?v=1714701515","width":2000},{"alt":null,"id":23874625896547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6ef195ec6ae400108eb7f9e34c0ce460f50ab1_3ddf00a9-405d-4791-800b-35ba679219e2.webp?v=1714701517"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a6ef195ec6ae400108eb7f9e34c0ce460f50ab1_3ddf00a9-405d-4791-800b-35ba679219e2.webp?v=1714701517","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41875652280419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-B071","requires_shipping":true,"taxable":true,"featured_image":{"id":31469720535139,"product_id":7407493251171,"position":4,"created_at":"2024-05-03T09:58:24+08:00","updated_at":"2024-05-03T09:58:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d02aef3fef1733477c37562429c89fbf89259a_f8471a51-db16-426e-b6de-b733158a9a14.webp?v=1714701504","variant_ids":[41875652280419]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【獨家設計款】 - 春夏犬の時裝週 - 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":"NPB0129624-B071","featured_media":{"alt":null,"id":23874621866083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d02aef3fef1733477c37562429c89fbf89259a_f8471a51-db16-426e-b6de-b733158a9a14.webp?v=1714701504"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41875652444259,"title":"Mod NX-櫻花粉邊框","option1":"Mod NX-櫻花粉邊框","option2":null,"option3":null,"sku":"NPB0129657-B071","requires_shipping":true,"taxable":true,"featured_image":{"id":31469723943011,"product_id":7407493251171,"position":8,"created_at":"2024-05-03T09:58:35+08:00","updated_at":"2024-05-03T09:58:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6f2e34fdb7b99aa3c07cfeb0e02a0bd0ce7211_7a2b3c5b-9f9a-42dd-9e9e-538a5beb604e.webp?v=1714701515","variant_ids":[41875652444259]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【獨家設計款】 - 春夏犬の時裝週 - 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":"NPB0129657-B071","featured_media":{"alt":null,"id":23874625208419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d6f2e34fdb7b99aa3c07cfeb0e02a0bd0ce7211_7a2b3c5b-9f9a-42dd-9e9e-538a5beb604e.webp?v=1714701515"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41875652280419,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0129624-B071","requires_shipping":true,"taxable":true,"featured_image":{"id":31469720535139,"product_id":7407493251171,"position":4,"created_at":"2024-05-03T09:58:24+08:00","updated_at":"2024-05-03T09:58:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d02aef3fef1733477c37562429c89fbf89259a_f8471a51-db16-426e-b6de-b733158a9a14.webp?v=1714701504","variant_ids":[41875652280419]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 15 Plus - 【獨家設計款】 - 春夏犬の時裝週 - 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":"NPB0129624-B071","featured_media":{"alt":null,"id":23874621866083,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25d02aef3fef1733477c37562429c89fbf89259a_f8471a51-db16-426e-b6de-b733158a9a14.webp?v=1714701504"}},"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: "停產" }