$product = {"id":7408166600803,"title":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-13-mini-mod-nx-printable-pb72","description":null,"published_at":"2024-06-11T16:33:11+08:00","created_at":"2024-05-03T12:12:48+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 13 mini","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":41883419017315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471364014179,"product_id":7408166600803,"position":7,"created_at":"2024-05-03T12:13:05+08:00","updated_at":"2024-05-03T12:13:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6996407f33e1344ad9e930cfdbe303d0fa3e527_7c8a6684-a393-4e3b-824a-7328d8f45a19.webp?v=1714709585","variant_ids":[41883419017315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB0122824-PB72","featured_media":{"alt":null,"id":23876269965411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6996407f33e1344ad9e930cfdbe303d0fa3e527_7c8a6684-a393-4e3b-824a-7328d8f45a19.webp?v=1714709585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883419082851,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471363555427,"product_id":7408166600803,"position":6,"created_at":"2024-05-03T12:13:02+08:00","updated_at":"2024-05-03T12:13:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6940c9179633c4b370f9c0069cf84f31f730b7_ae1ca237-8849-4046-95f9-c2313b5ceb99.webp?v=1714709582","variant_ids":[41883419082851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB0122804-PB72","featured_media":{"alt":null,"id":23876269572195,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6940c9179633c4b370f9c0069cf84f31f730b7_ae1ca237-8849-4046-95f9-c2313b5ceb99.webp?v=1714709582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883419312227,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471365029987,"product_id":7408166600803,"position":9,"created_at":"2024-05-03T12:13:09+08:00","updated_at":"2024-05-03T12:13:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13227da8517406f14467554044673cf563c9bbd_e7eb76cd-ae71-4dbe-a0b6-4ff1d4e70847.webp?v=1714709589","variant_ids":[41883419312227]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB01228J5-PB72","featured_media":{"alt":null,"id":23876270981219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13227da8517406f14467554044673cf563c9bbd_e7eb76cd-ae71-4dbe-a0b6-4ff1d4e70847.webp?v=1714709589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191bbc019cdf8c0843c2e09108f03ae90ed41e95_4fb29a6b-902e-411f-a61a-96bd3b133ef5.webp?v=1714709570","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a6d029871b0b223b8f562201bda3f42c1b2717_ffb7df68-705f-481b-a1d0-45b997ddb28f.webp?v=1714709573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc18cb0419c1a7fd5843432e5428c8f65d4e6ce8_7b3bc382-2bd4-48c0-a051-ff69bf26beee.webp?v=1714709575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de28a3c1b3895531bd6e0961e40ebf6502fc06b4_f60a7980-5c2e-496d-b763-0e7b52fd28e7.webp?v=1714709578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0bac9f51b5d6d889c747c93c88668b8c893a46_418dbffb-cf70-43f9-bfe1-f63440c6a72a.webp?v=1714709580","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6940c9179633c4b370f9c0069cf84f31f730b7_ae1ca237-8849-4046-95f9-c2313b5ceb99.webp?v=1714709582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6996407f33e1344ad9e930cfdbe303d0fa3e527_7c8a6684-a393-4e3b-824a-7328d8f45a19.webp?v=1714709585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27aaf06b5f1a512a7fe854b2838b6bce193a4eff_a97df202-485b-4800-b9d0-c143bc041152.webp?v=1714709587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13227da8517406f14467554044673cf563c9bbd_e7eb76cd-ae71-4dbe-a0b6-4ff1d4e70847.webp?v=1714709589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad4b7f5e64bdeb9a01a0aae226e90952bac32d7c_4d36a508-cbc6-4d72-aba7-42dbf5e36a73.webp?v=1714709592"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191bbc019cdf8c0843c2e09108f03ae90ed41e95_4fb29a6b-902e-411f-a61a-96bd3b133ef5.webp?v=1714709570","options":["color"],"media":[{"alt":null,"id":23876267278435,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191bbc019cdf8c0843c2e09108f03ae90ed41e95_4fb29a6b-902e-411f-a61a-96bd3b133ef5.webp?v=1714709570"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/191bbc019cdf8c0843c2e09108f03ae90ed41e95_4fb29a6b-902e-411f-a61a-96bd3b133ef5.webp?v=1714709570","width":2000},{"alt":null,"id":23876267769955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a6d029871b0b223b8f562201bda3f42c1b2717_ffb7df68-705f-481b-a1d0-45b997ddb28f.webp?v=1714709573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a6d029871b0b223b8f562201bda3f42c1b2717_ffb7df68-705f-481b-a1d0-45b997ddb28f.webp?v=1714709573","width":2000},{"alt":null,"id":23876268163171,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc18cb0419c1a7fd5843432e5428c8f65d4e6ce8_7b3bc382-2bd4-48c0-a051-ff69bf26beee.webp?v=1714709575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc18cb0419c1a7fd5843432e5428c8f65d4e6ce8_7b3bc382-2bd4-48c0-a051-ff69bf26beee.webp?v=1714709575","width":2000},{"alt":null,"id":23876268687459,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de28a3c1b3895531bd6e0961e40ebf6502fc06b4_f60a7980-5c2e-496d-b763-0e7b52fd28e7.webp?v=1714709578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de28a3c1b3895531bd6e0961e40ebf6502fc06b4_f60a7980-5c2e-496d-b763-0e7b52fd28e7.webp?v=1714709578","width":2000},{"alt":null,"id":23876269113443,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0bac9f51b5d6d889c747c93c88668b8c893a46_418dbffb-cf70-43f9-bfe1-f63440c6a72a.webp?v=1714709580"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b0bac9f51b5d6d889c747c93c88668b8c893a46_418dbffb-cf70-43f9-bfe1-f63440c6a72a.webp?v=1714709580","width":2000},{"alt":null,"id":23876269572195,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6940c9179633c4b370f9c0069cf84f31f730b7_ae1ca237-8849-4046-95f9-c2313b5ceb99.webp?v=1714709582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6940c9179633c4b370f9c0069cf84f31f730b7_ae1ca237-8849-4046-95f9-c2313b5ceb99.webp?v=1714709582","width":2000},{"alt":null,"id":23876269965411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6996407f33e1344ad9e930cfdbe303d0fa3e527_7c8a6684-a393-4e3b-824a-7328d8f45a19.webp?v=1714709585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6996407f33e1344ad9e930cfdbe303d0fa3e527_7c8a6684-a393-4e3b-824a-7328d8f45a19.webp?v=1714709585","width":2000},{"alt":null,"id":23876270489699,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27aaf06b5f1a512a7fe854b2838b6bce193a4eff_a97df202-485b-4800-b9d0-c143bc041152.webp?v=1714709587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/27aaf06b5f1a512a7fe854b2838b6bce193a4eff_a97df202-485b-4800-b9d0-c143bc041152.webp?v=1714709587","width":2000},{"alt":null,"id":23876270981219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13227da8517406f14467554044673cf563c9bbd_e7eb76cd-ae71-4dbe-a0b6-4ff1d4e70847.webp?v=1714709589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13227da8517406f14467554044673cf563c9bbd_e7eb76cd-ae71-4dbe-a0b6-4ff1d4e70847.webp?v=1714709589","width":2000},{"alt":null,"id":23876271505507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad4b7f5e64bdeb9a01a0aae226e90952bac32d7c_4d36a508-cbc6-4d72-aba7-42dbf5e36a73.webp?v=1714709592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad4b7f5e64bdeb9a01a0aae226e90952bac32d7c_4d36a508-cbc6-4d72-aba7-42dbf5e36a73.webp?v=1714709592","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41883419017315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471364014179,"product_id":7408166600803,"position":7,"created_at":"2024-05-03T12:13:05+08:00","updated_at":"2024-05-03T12:13:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6996407f33e1344ad9e930cfdbe303d0fa3e527_7c8a6684-a393-4e3b-824a-7328d8f45a19.webp?v=1714709585","variant_ids":[41883419017315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB0122824-PB72","featured_media":{"alt":null,"id":23876269965411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6996407f33e1344ad9e930cfdbe303d0fa3e527_7c8a6684-a393-4e3b-824a-7328d8f45a19.webp?v=1714709585"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883419082851,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"NPB0122804-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471363555427,"product_id":7408166600803,"position":6,"created_at":"2024-05-03T12:13:02+08:00","updated_at":"2024-05-03T12:13:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6940c9179633c4b370f9c0069cf84f31f730b7_ae1ca237-8849-4046-95f9-c2313b5ceb99.webp?v=1714709582","variant_ids":[41883419082851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB0122804-PB72","featured_media":{"alt":null,"id":23876269572195,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d6940c9179633c4b370f9c0069cf84f31f730b7_ae1ca237-8849-4046-95f9-c2313b5ceb99.webp?v=1714709582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883419312227,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01228J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471365029987,"product_id":7408166600803,"position":9,"created_at":"2024-05-03T12:13:09+08:00","updated_at":"2024-05-03T12:13:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13227da8517406f14467554044673cf563c9bbd_e7eb76cd-ae71-4dbe-a0b6-4ff1d4e70847.webp?v=1714709589","variant_ids":[41883419312227]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB01228J5-PB72","featured_media":{"alt":null,"id":23876270981219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f13227da8517406f14467554044673cf563c9bbd_e7eb76cd-ae71-4dbe-a0b6-4ff1d4e70847.webp?v=1714709589"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41883419017315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0122824-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471364014179,"product_id":7408166600803,"position":7,"created_at":"2024-05-03T12:13:05+08:00","updated_at":"2024-05-03T12:13:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6996407f33e1344ad9e930cfdbe303d0fa3e527_7c8a6684-a393-4e3b-824a-7328d8f45a19.webp?v=1714709585","variant_ids":[41883419017315]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 mini - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列 - 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":"NPB0122824-PB72","featured_media":{"alt":null,"id":23876269965411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6996407f33e1344ad9e930cfdbe303d0fa3e527_7c8a6684-a393-4e3b-824a-7328d8f45a19.webp?v=1714709585"}},"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: "停產" }