$product = {"id":7407830892643,"title":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 柴語錄 Shiba Says - 放我出去♥","handle":"iphone-14-plus-mod-nx-printable-fz04","description":null,"published_at":"2024-06-11T16:24:02+08:00","created_at":"2024-05-03T10:58:27+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 14 Plus","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":41879358406755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470477344867,"product_id":7407830892643,"position":5,"created_at":"2024-05-03T10:58:39+08:00","updated_at":"2024-05-03T10:58:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e17ca32a29b3f48abd810235bb5e1adefe1f08_c7af1859-276c-4ccd-87bb-ddb6e5197fa0.webp?v=1714705119","variant_ids":[41879358406755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 柴語錄 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":"NPB0126124-FZ04","featured_media":{"alt":null,"id":23875381035107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e17ca32a29b3f48abd810235bb5e1adefe1f08_c7af1859-276c-4ccd-87bb-ddb6e5197fa0.webp?v=1714705119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688df8bc2bb1aca81eb4e4778bfa7a9445769e3c_e13305f5-8b08-4919-a422-b16cf485e80d.webp?v=1714705110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ab0e4489fc4bfbaa3fdf127a261728f7f4fbb6_667083a1-b0a3-4619-b2b5-8fbd59d5787d.webp?v=1714705112","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14c4834f0ef527eb2ea929e4cad1ea5d72aeabb2_b9565df3-9784-4ed9-a75a-f63a73c8e9a0.webp?v=1714705114","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8186e7329e7193d7e83603968aaf3bde072551d6_1c421305-83eb-4772-aa7b-15e087f4b777.webp?v=1714705116","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e17ca32a29b3f48abd810235bb5e1adefe1f08_c7af1859-276c-4ccd-87bb-ddb6e5197fa0.webp?v=1714705119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f718e3fea6824c0682613283cfd03c829fc7cb7_dd8f816d-9dd1-4696-b4a6-08730409fd72.webp?v=1714705121","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d71b9b7d170025eca995e18dd8e3f05ad68ee4_d3f55d0e-4f56-4e78-a96b-b27645727b17.webp?v=1714705124","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f100c76fb40d32cdc794c3e61925a2e5a3493079_bb02b1f0-43c8-4d34-bd3b-3f90c86a680f.webp?v=1714705126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7668e0ff6a25c602a90890b946b8e9aa733f0f3_be99e94c-2dc2-4e61-a614-0173eebfe5b7.webp?v=1714705128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ad9af349cd5a69913cb3a9428145d85409fb78_6469dad6-536e-44d9-8dec-a75b769b86e8.webp?v=1714705130"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688df8bc2bb1aca81eb4e4778bfa7a9445769e3c_e13305f5-8b08-4919-a422-b16cf485e80d.webp?v=1714705110","options":["color"],"media":[{"alt":null,"id":23875378544739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688df8bc2bb1aca81eb4e4778bfa7a9445769e3c_e13305f5-8b08-4919-a422-b16cf485e80d.webp?v=1714705110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/688df8bc2bb1aca81eb4e4778bfa7a9445769e3c_e13305f5-8b08-4919-a422-b16cf485e80d.webp?v=1714705110","width":2000},{"alt":null,"id":23875379691619,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ab0e4489fc4bfbaa3fdf127a261728f7f4fbb6_667083a1-b0a3-4619-b2b5-8fbd59d5787d.webp?v=1714705112"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23ab0e4489fc4bfbaa3fdf127a261728f7f4fbb6_667083a1-b0a3-4619-b2b5-8fbd59d5787d.webp?v=1714705112","width":2000},{"alt":null,"id":23875380052067,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14c4834f0ef527eb2ea929e4cad1ea5d72aeabb2_b9565df3-9784-4ed9-a75a-f63a73c8e9a0.webp?v=1714705114"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14c4834f0ef527eb2ea929e4cad1ea5d72aeabb2_b9565df3-9784-4ed9-a75a-f63a73c8e9a0.webp?v=1714705114","width":2000},{"alt":null,"id":23875380543587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8186e7329e7193d7e83603968aaf3bde072551d6_1c421305-83eb-4772-aa7b-15e087f4b777.webp?v=1714705116"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8186e7329e7193d7e83603968aaf3bde072551d6_1c421305-83eb-4772-aa7b-15e087f4b777.webp?v=1714705116","width":2000},{"alt":null,"id":23875381035107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e17ca32a29b3f48abd810235bb5e1adefe1f08_c7af1859-276c-4ccd-87bb-ddb6e5197fa0.webp?v=1714705119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e17ca32a29b3f48abd810235bb5e1adefe1f08_c7af1859-276c-4ccd-87bb-ddb6e5197fa0.webp?v=1714705119","width":2000},{"alt":null,"id":23875381526627,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f718e3fea6824c0682613283cfd03c829fc7cb7_dd8f816d-9dd1-4696-b4a6-08730409fd72.webp?v=1714705121"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f718e3fea6824c0682613283cfd03c829fc7cb7_dd8f816d-9dd1-4696-b4a6-08730409fd72.webp?v=1714705121","width":2000},{"alt":null,"id":23875382116451,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d71b9b7d170025eca995e18dd8e3f05ad68ee4_d3f55d0e-4f56-4e78-a96b-b27645727b17.webp?v=1714705124"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5d71b9b7d170025eca995e18dd8e3f05ad68ee4_d3f55d0e-4f56-4e78-a96b-b27645727b17.webp?v=1714705124","width":2000},{"alt":null,"id":23875382575203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f100c76fb40d32cdc794c3e61925a2e5a3493079_bb02b1f0-43c8-4d34-bd3b-3f90c86a680f.webp?v=1714705126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f100c76fb40d32cdc794c3e61925a2e5a3493079_bb02b1f0-43c8-4d34-bd3b-3f90c86a680f.webp?v=1714705126","width":2000},{"alt":null,"id":23875383001187,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7668e0ff6a25c602a90890b946b8e9aa733f0f3_be99e94c-2dc2-4e61-a614-0173eebfe5b7.webp?v=1714705128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7668e0ff6a25c602a90890b946b8e9aa733f0f3_be99e94c-2dc2-4e61-a614-0173eebfe5b7.webp?v=1714705128","width":2000},{"alt":null,"id":23875383427171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ad9af349cd5a69913cb3a9428145d85409fb78_6469dad6-536e-44d9-8dec-a75b769b86e8.webp?v=1714705130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/16ad9af349cd5a69913cb3a9428145d85409fb78_6469dad6-536e-44d9-8dec-a75b769b86e8.webp?v=1714705130","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41879358406755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470477344867,"product_id":7407830892643,"position":5,"created_at":"2024-05-03T10:58:39+08:00","updated_at":"2024-05-03T10:58:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e17ca32a29b3f48abd810235bb5e1adefe1f08_c7af1859-276c-4ccd-87bb-ddb6e5197fa0.webp?v=1714705119","variant_ids":[41879358406755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 柴語錄 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":"NPB0126124-FZ04","featured_media":{"alt":null,"id":23875381035107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e17ca32a29b3f48abd810235bb5e1adefe1f08_c7af1859-276c-4ccd-87bb-ddb6e5197fa0.webp?v=1714705119"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41879358406755,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0126124-FZ04","requires_shipping":true,"taxable":true,"featured_image":{"id":31470477344867,"product_id":7407830892643,"position":5,"created_at":"2024-05-03T10:58:39+08:00","updated_at":"2024-05-03T10:58:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e17ca32a29b3f48abd810235bb5e1adefe1f08_c7af1859-276c-4ccd-87bb-ddb6e5197fa0.webp?v=1714705119","variant_ids":[41879358406755]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 14 Plus - 【聯名設計款】 - 柴語錄 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":"NPB0126124-FZ04","featured_media":{"alt":null,"id":23875381035107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/47e17ca32a29b3f48abd810235bb5e1adefe1f08_c7af1859-276c-4ccd-87bb-ddb6e5197fa0.webp?v=1714705119"}},"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: "停產" }