$product = {"id":7416364007523,"title":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂","handle":"iphone-8-mod-nx-printable-fz05","description":null,"published_at":"2024-06-11T16:57:02+08:00","created_at":"2024-05-06T14:42:37+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-柴語錄 Shiba Says","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-shiba-says","device-iPhone 8","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-shiba-says","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":41918931042403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491947102307,"product_id":7416364007523,"position":6,"created_at":"2024-05-06T14:42:52+08:00","updated_at":"2024-05-06T14:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f267e930153401c692e7fa3cd0e0620276cd35_c6ced127-bc12-4936-b3b6-7fb362e38f02.webp?v=1714977772","variant_ids":[41918931042403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂 - 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":"NPB0105424-FZ05","featured_media":{"alt":null,"id":23897360171107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f267e930153401c692e7fa3cd0e0620276cd35_c6ced127-bc12-4936-b3b6-7fb362e38f02.webp?v=1714977772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2ced5dc5a01aec4f2e6d39080428674fe080e1d_df77ec63-5f70-4d5f-8162-fe7257f71bb8.webp?v=1714977759","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/275b7b8a34d3ca794165b719e4658020c63f8b53_427ca35c-a576-4aed-8361-36a819e6ed3f.webp?v=1714977761","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62693d0d203218ddc23b48b2650d922d99465d5c_c0d2b27e-a2aa-4722-9ddd-75791b8ac28b.webp?v=1714977763","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee93f7ad1260d94e64fb31b0ee8a0aae6bc41097_8618336d-0c79-425a-b1ee-658d68777d5e.webp?v=1714977766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/929d2b3c7fa6fdb09f7126c21a63b9cff58b7cc3_11be6743-18d1-41ac-953f-9130f3c1d7f8.webp?v=1714977768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f267e930153401c692e7fa3cd0e0620276cd35_c6ced127-bc12-4936-b3b6-7fb362e38f02.webp?v=1714977772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b08a48adbbabaf53c328e7261d3008050c22cb0c_8f8ad67e-cddd-4f0e-b9a9-d5acd59711c5.webp?v=1714977774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e043c8bc6b623146229c712d69d364ba70aaab_a6498768-8302-41c1-82cb-65e365829928.webp?v=1714977777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f6f407f0563db600cb0c6f2f254ddbeb290f6c_2acf17ca-95fc-4708-9f29-d0fec3c66a31.webp?v=1714977779","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba1300fa2888bcec91ab54092972caba86ae57e2_fb0a402c-8902-42fe-b111-646226658524.webp?v=1714977781"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2ced5dc5a01aec4f2e6d39080428674fe080e1d_df77ec63-5f70-4d5f-8162-fe7257f71bb8.webp?v=1714977759","options":["color"],"media":[{"alt":null,"id":23897357090915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2ced5dc5a01aec4f2e6d39080428674fe080e1d_df77ec63-5f70-4d5f-8162-fe7257f71bb8.webp?v=1714977759"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d2ced5dc5a01aec4f2e6d39080428674fe080e1d_df77ec63-5f70-4d5f-8162-fe7257f71bb8.webp?v=1714977759","width":2000},{"alt":null,"id":23897357680739,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/275b7b8a34d3ca794165b719e4658020c63f8b53_427ca35c-a576-4aed-8361-36a819e6ed3f.webp?v=1714977761"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/275b7b8a34d3ca794165b719e4658020c63f8b53_427ca35c-a576-4aed-8361-36a819e6ed3f.webp?v=1714977761","width":2000},{"alt":null,"id":23897358106723,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62693d0d203218ddc23b48b2650d922d99465d5c_c0d2b27e-a2aa-4722-9ddd-75791b8ac28b.webp?v=1714977763"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62693d0d203218ddc23b48b2650d922d99465d5c_c0d2b27e-a2aa-4722-9ddd-75791b8ac28b.webp?v=1714977763","width":2000},{"alt":null,"id":23897358499939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee93f7ad1260d94e64fb31b0ee8a0aae6bc41097_8618336d-0c79-425a-b1ee-658d68777d5e.webp?v=1714977766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee93f7ad1260d94e64fb31b0ee8a0aae6bc41097_8618336d-0c79-425a-b1ee-658d68777d5e.webp?v=1714977766","width":2000},{"alt":null,"id":23897359384675,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/929d2b3c7fa6fdb09f7126c21a63b9cff58b7cc3_11be6743-18d1-41ac-953f-9130f3c1d7f8.webp?v=1714977768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/929d2b3c7fa6fdb09f7126c21a63b9cff58b7cc3_11be6743-18d1-41ac-953f-9130f3c1d7f8.webp?v=1714977768","width":2000},{"alt":null,"id":23897360171107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f267e930153401c692e7fa3cd0e0620276cd35_c6ced127-bc12-4936-b3b6-7fb362e38f02.webp?v=1714977772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f267e930153401c692e7fa3cd0e0620276cd35_c6ced127-bc12-4936-b3b6-7fb362e38f02.webp?v=1714977772","width":2000},{"alt":null,"id":23897360728163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b08a48adbbabaf53c328e7261d3008050c22cb0c_8f8ad67e-cddd-4f0e-b9a9-d5acd59711c5.webp?v=1714977774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b08a48adbbabaf53c328e7261d3008050c22cb0c_8f8ad67e-cddd-4f0e-b9a9-d5acd59711c5.webp?v=1714977774","width":2000},{"alt":null,"id":23897361121379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e043c8bc6b623146229c712d69d364ba70aaab_a6498768-8302-41c1-82cb-65e365829928.webp?v=1714977777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09e043c8bc6b623146229c712d69d364ba70aaab_a6498768-8302-41c1-82cb-65e365829928.webp?v=1714977777","width":2000},{"alt":null,"id":23897361645667,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f6f407f0563db600cb0c6f2f254ddbeb290f6c_2acf17ca-95fc-4708-9f29-d0fec3c66a31.webp?v=1714977779"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62f6f407f0563db600cb0c6f2f254ddbeb290f6c_2acf17ca-95fc-4708-9f29-d0fec3c66a31.webp?v=1714977779","width":2000},{"alt":null,"id":23897362104419,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba1300fa2888bcec91ab54092972caba86ae57e2_fb0a402c-8902-42fe-b111-646226658524.webp?v=1714977781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba1300fa2888bcec91ab54092972caba86ae57e2_fb0a402c-8902-42fe-b111-646226658524.webp?v=1714977781","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41918931042403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491947102307,"product_id":7416364007523,"position":6,"created_at":"2024-05-06T14:42:52+08:00","updated_at":"2024-05-06T14:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f267e930153401c692e7fa3cd0e0620276cd35_c6ced127-bc12-4936-b3b6-7fb362e38f02.webp?v=1714977772","variant_ids":[41918931042403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂 - 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":"NPB0105424-FZ05","featured_media":{"alt":null,"id":23897360171107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f267e930153401c692e7fa3cd0e0620276cd35_c6ced127-bc12-4936-b3b6-7fb362e38f02.webp?v=1714977772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41918931042403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0105424-FZ05","requires_shipping":true,"taxable":true,"featured_image":{"id":31491947102307,"product_id":7416364007523,"position":6,"created_at":"2024-05-06T14:42:52+08:00","updated_at":"2024-05-06T14:42:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f267e930153401c692e7fa3cd0e0620276cd35_c6ced127-bc12-4936-b3b6-7fb362e38f02.webp?v=1714977772","variant_ids":[41918931042403]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 7\/8\/SE2\/SE3 - 【聯名設計款】 - 柴語錄 Shiba Says - 超不穩的疊疊樂 - 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":"NPB0105424-FZ05","featured_media":{"alt":null,"id":23897360171107,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2f267e930153401c692e7fa3cd0e0620276cd35_c6ced127-bc12-4936-b3b6-7fb362e38f02.webp?v=1714977772"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}; $device_handle = null; $type = ""; var sellingStatus if ($isMerge) { $(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: "停產" }