$product = {"id":7414445080675,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列","handle":"iphone-13-mini-mod-nx-magsafe-printable-pc08","description":null,"published_at":"2024-06-11T17:51:20+08:00","created_at":"2024-05-05T14:25:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 mini","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41906529796195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485475324003,"product_id":7414445080675,"position":1,"created_at":"2024-05-05T14:25:49+08:00","updated_at":"2024-05-05T14:25:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349","variant_ids":[41906529796195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PC08","featured_media":{"alt":null,"id":23890792644707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906529992803,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485478240355,"product_id":7414445080675,"position":2,"created_at":"2024-05-05T14:25:51+08:00","updated_at":"2024-05-05T14:25:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc13148a0743e170af46f1774a13bda0941422_91135128-e709-4e87-965d-7f30634ad7ec.webp?v=1714890351","variant_ids":[41906529992803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PC08","featured_media":{"alt":null,"id":23890795036771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc13148a0743e170af46f1774a13bda0941422_91135128-e709-4e87-965d-7f30634ad7ec.webp?v=1714890351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906530451555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485486727267,"product_id":7414445080675,"position":5,"created_at":"2024-05-05T14:25:58+08:00","updated_at":"2024-05-05T14:25:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc05fb820758bb4070e6d8308f08944f3ba445ff_543c9275-feb8-47e7-9bae-3691d9cd4e77.webp?v=1714890358","variant_ids":[41906530451555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PC08","featured_media":{"alt":null,"id":23890803851363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc05fb820758bb4070e6d8308f08944f3ba445ff_543c9275-feb8-47e7-9bae-3691d9cd4e77.webp?v=1714890358"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc13148a0743e170af46f1774a13bda0941422_91135128-e709-4e87-965d-7f30634ad7ec.webp?v=1714890351","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b769d9ada6519a7f8cdd94fd118ba38f66972d2_8629c43f-f309-46cc-8916-8e5bc80178a0.webp?v=1714890353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53e253d905acd0c3e5356b54fc662dd587cbf5f_702c7b12-7aea-44e0-8f6f-8a7b3179d97d.webp?v=1714890356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc05fb820758bb4070e6d8308f08944f3ba445ff_543c9275-feb8-47e7-9bae-3691d9cd4e77.webp?v=1714890358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e3fd8b0eca89e5968db9653edc587bb289213ac_0c632e12-0cf4-43e9-be3f-7b6ae9193ab1.webp?v=1714890360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a4736456e5246407ed0a60bf40cc0e29fa8df5a_2043c3b9-43fe-446c-892c-18477dab918b.webp?v=1714890362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60dc86d00eccbe6d59da4b3b1ba0b027198da831_b34823e8-be0d-4d82-9c77-f9579c0e421e.webp?v=1714890364","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a53f9f34be3338d5248f0ad5a88ad5ee3ff459a_9be64c36-7fdb-46b8-abcd-ae6e8b933fd8.webp?v=1714890367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb067be4d9d132403ed14fb93a190ff8f1870296_f7e68397-c791-4e2c-9a27-ffbe98eddea0.webp?v=1714890369"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349","options":["color"],"media":[{"alt":null,"id":23890792644707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349","width":2000},{"alt":null,"id":23890795036771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc13148a0743e170af46f1774a13bda0941422_91135128-e709-4e87-965d-7f30634ad7ec.webp?v=1714890351"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc13148a0743e170af46f1774a13bda0941422_91135128-e709-4e87-965d-7f30634ad7ec.webp?v=1714890351","width":2000},{"alt":null,"id":23890798018659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b769d9ada6519a7f8cdd94fd118ba38f66972d2_8629c43f-f309-46cc-8916-8e5bc80178a0.webp?v=1714890353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7b769d9ada6519a7f8cdd94fd118ba38f66972d2_8629c43f-f309-46cc-8916-8e5bc80178a0.webp?v=1714890353","width":2000},{"alt":null,"id":23890801164387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53e253d905acd0c3e5356b54fc662dd587cbf5f_702c7b12-7aea-44e0-8f6f-8a7b3179d97d.webp?v=1714890356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a53e253d905acd0c3e5356b54fc662dd587cbf5f_702c7b12-7aea-44e0-8f6f-8a7b3179d97d.webp?v=1714890356","width":2000},{"alt":null,"id":23890803851363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc05fb820758bb4070e6d8308f08944f3ba445ff_543c9275-feb8-47e7-9bae-3691d9cd4e77.webp?v=1714890358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc05fb820758bb4070e6d8308f08944f3ba445ff_543c9275-feb8-47e7-9bae-3691d9cd4e77.webp?v=1714890358","width":2000},{"alt":null,"id":23890806276195,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e3fd8b0eca89e5968db9653edc587bb289213ac_0c632e12-0cf4-43e9-be3f-7b6ae9193ab1.webp?v=1714890360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1e3fd8b0eca89e5968db9653edc587bb289213ac_0c632e12-0cf4-43e9-be3f-7b6ae9193ab1.webp?v=1714890360","width":2000},{"alt":null,"id":23890808635491,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a4736456e5246407ed0a60bf40cc0e29fa8df5a_2043c3b9-43fe-446c-892c-18477dab918b.webp?v=1714890362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a4736456e5246407ed0a60bf40cc0e29fa8df5a_2043c3b9-43fe-446c-892c-18477dab918b.webp?v=1714890362","width":2000},{"alt":null,"id":23890810994787,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60dc86d00eccbe6d59da4b3b1ba0b027198da831_b34823e8-be0d-4d82-9c77-f9579c0e421e.webp?v=1714890364"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/60dc86d00eccbe6d59da4b3b1ba0b027198da831_b34823e8-be0d-4d82-9c77-f9579c0e421e.webp?v=1714890364","width":2000},{"alt":null,"id":23890813714531,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a53f9f34be3338d5248f0ad5a88ad5ee3ff459a_9be64c36-7fdb-46b8-abcd-ae6e8b933fd8.webp?v=1714890367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a53f9f34be3338d5248f0ad5a88ad5ee3ff459a_9be64c36-7fdb-46b8-abcd-ae6e8b933fd8.webp?v=1714890367","width":2000},{"alt":null,"id":23890816008291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb067be4d9d132403ed14fb93a190ff8f1870296_f7e68397-c791-4e2c-9a27-ffbe98eddea0.webp?v=1714890369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb067be4d9d132403ed14fb93a190ff8f1870296_f7e68397-c791-4e2c-9a27-ffbe98eddea0.webp?v=1714890369","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41906529796195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485475324003,"product_id":7414445080675,"position":1,"created_at":"2024-05-05T14:25:49+08:00","updated_at":"2024-05-05T14:25:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349","variant_ids":[41906529796195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PC08","featured_media":{"alt":null,"id":23890792644707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906529992803,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485478240355,"product_id":7414445080675,"position":2,"created_at":"2024-05-05T14:25:51+08:00","updated_at":"2024-05-05T14:25:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc13148a0743e170af46f1774a13bda0941422_91135128-e709-4e87-965d-7f30634ad7ec.webp?v=1714890351","variant_ids":[41906529992803]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-白色邊框","public_title":"Mod NX-白色邊框","options":["Mod NX-白色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122804-PC08","featured_media":{"alt":null,"id":23890795036771,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61bc13148a0743e170af46f1774a13bda0941422_91135128-e709-4e87-965d-7f30634ad7ec.webp?v=1714890351"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906530451555,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485486727267,"product_id":7414445080675,"position":5,"created_at":"2024-05-05T14:25:58+08:00","updated_at":"2024-05-05T14:25:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc05fb820758bb4070e6d8308f08944f3ba445ff_543c9275-feb8-47e7-9bae-3691d9cd4e77.webp?v=1714890358","variant_ids":[41906530451555]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01228J5-PC08","featured_media":{"alt":null,"id":23890803851363,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc05fb820758bb4070e6d8308f08944f3ba445ff_543c9275-feb8-47e7-9bae-3691d9cd4e77.webp?v=1714890358"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41906529796195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PC08","requires_shipping":true,"taxable":true,"featured_image":{"id":31485475324003,"product_id":7414445080675,"position":1,"created_at":"2024-05-05T14:25:49+08:00","updated_at":"2024-05-05T14:25:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349","variant_ids":[41906529796195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - 波巴費特-推推-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0122824-PC08","featured_media":{"alt":null,"id":23890792644707,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431caba9afd2f8dfb8c7ee84e5db43f2049ac5a8_937d729e-d97d-46c4-9a40-516c156587fa.webp?v=1714890349"}},"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: "停產" }