$product = {"id":7414556229731,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具1-白","handle":"iphone-13-mini-mod-nx-magsafe-printable-pb10","description":null,"published_at":"2024-06-11T17:52:00+08:00","created_at":"2024-05-05T14:30:12+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":41907335888995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485756997731,"product_id":7414556229731,"position":9,"created_at":"2024-05-05T14:30:33+08:00","updated_at":"2024-05-05T14:30:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4373d4e72e295f811335d4dbf6e912575237f3f9_dca721a4-2fc3-4fcb-bd0a-a86dd0edf19b.webp?v=1714890633","variant_ids":[41907335888995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23891084345443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4373d4e72e295f811335d4dbf6e912575237f3f9_dca721a4-2fc3-4fcb-bd0a-a86dd0edf19b.webp?v=1714890633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907336118371,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485755359331,"product_id":7414556229731,"position":8,"created_at":"2024-05-05T14:30:30+08:00","updated_at":"2024-05-05T14:30:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82558e80da932ca9bf7d5c1c68e41d9da6a757d_e8ad17ed-ec4a-461e-955c-9c3f66da2076.webp?v=1714890630","variant_ids":[41907336118371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23891079856227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82558e80da932ca9bf7d5c1c68e41d9da6a757d_e8ad17ed-ec4a-461e-955c-9c3f66da2076.webp?v=1714890630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907336708195,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485741498467,"product_id":7414556229731,"position":1,"created_at":"2024-05-05T14:30:14+08:00","updated_at":"2024-05-05T14:30:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a704ee1cb460477d2ec5a8f568ba1877e18c81db_80800cb0-a6eb-4a7f-a5f8-b0dc8b236188.webp?v=1714890614","variant_ids":[41907336708195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23891065962595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a704ee1cb460477d2ec5a8f568ba1877e18c81db_80800cb0-a6eb-4a7f-a5f8-b0dc8b236188.webp?v=1714890614"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a704ee1cb460477d2ec5a8f568ba1877e18c81db_80800cb0-a6eb-4a7f-a5f8-b0dc8b236188.webp?v=1714890614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a36847375165b919198bc87ca2569c183ce564_026b8cb8-4050-4907-9985-ddbf167357e0.webp?v=1714890617","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe7a48081edb13fd9d52f019de56565714bcc2d3_2ab0c643-87e9-479c-9ce4-83da21234905.webp?v=1714890619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe765054c6dc06327ec2fcd5f0cec555a41b78c_e9612597-223f-48a3-986b-483f7b4dc921.webp?v=1714890621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fc1d8cc8f5d3f0e7d5851d99440d474091ea4e_f8cb1ee1-6846-45d7-9af2-8ce596ae60f7.webp?v=1714890623","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3c7fde32a7ac8b7b4381602abbdde8ce04d160_a220b053-1086-4f75-b178-4119a3f2ed6f.webp?v=1714890626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2e0bf292320891752fccec0e63faea5aed82c61_66844f62-9ea2-46e0-a71d-f18b482c324b.webp?v=1714890628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82558e80da932ca9bf7d5c1c68e41d9da6a757d_e8ad17ed-ec4a-461e-955c-9c3f66da2076.webp?v=1714890630","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4373d4e72e295f811335d4dbf6e912575237f3f9_dca721a4-2fc3-4fcb-bd0a-a86dd0edf19b.webp?v=1714890633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14efc0cc0be2b57257be92d30cdcffb6107fb707_58b789d8-178a-48de-94f8-952c9c266e39.webp?v=1714890635"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a704ee1cb460477d2ec5a8f568ba1877e18c81db_80800cb0-a6eb-4a7f-a5f8-b0dc8b236188.webp?v=1714890614","options":["color"],"media":[{"alt":null,"id":23891065962595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a704ee1cb460477d2ec5a8f568ba1877e18c81db_80800cb0-a6eb-4a7f-a5f8-b0dc8b236188.webp?v=1714890614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a704ee1cb460477d2ec5a8f568ba1877e18c81db_80800cb0-a6eb-4a7f-a5f8-b0dc8b236188.webp?v=1714890614","width":2000},{"alt":null,"id":23891067764835,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a36847375165b919198bc87ca2569c183ce564_026b8cb8-4050-4907-9985-ddbf167357e0.webp?v=1714890617"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a36847375165b919198bc87ca2569c183ce564_026b8cb8-4050-4907-9985-ddbf167357e0.webp?v=1714890617","width":2000},{"alt":null,"id":23891069370467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe7a48081edb13fd9d52f019de56565714bcc2d3_2ab0c643-87e9-479c-9ce4-83da21234905.webp?v=1714890619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe7a48081edb13fd9d52f019de56565714bcc2d3_2ab0c643-87e9-479c-9ce4-83da21234905.webp?v=1714890619","width":2000},{"alt":null,"id":23891071238243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe765054c6dc06327ec2fcd5f0cec555a41b78c_e9612597-223f-48a3-986b-483f7b4dc921.webp?v=1714890621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fe765054c6dc06327ec2fcd5f0cec555a41b78c_e9612597-223f-48a3-986b-483f7b4dc921.webp?v=1714890621","width":2000},{"alt":null,"id":23891073007715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fc1d8cc8f5d3f0e7d5851d99440d474091ea4e_f8cb1ee1-6846-45d7-9af2-8ce596ae60f7.webp?v=1714890623"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fc1d8cc8f5d3f0e7d5851d99440d474091ea4e_f8cb1ee1-6846-45d7-9af2-8ce596ae60f7.webp?v=1714890623","width":2000},{"alt":null,"id":23891074711651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3c7fde32a7ac8b7b4381602abbdde8ce04d160_a220b053-1086-4f75-b178-4119a3f2ed6f.webp?v=1714890626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b3c7fde32a7ac8b7b4381602abbdde8ce04d160_a220b053-1086-4f75-b178-4119a3f2ed6f.webp?v=1714890626","width":2000},{"alt":null,"id":23891076612195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2e0bf292320891752fccec0e63faea5aed82c61_66844f62-9ea2-46e0-a71d-f18b482c324b.webp?v=1714890628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2e0bf292320891752fccec0e63faea5aed82c61_66844f62-9ea2-46e0-a71d-f18b482c324b.webp?v=1714890628","width":2000},{"alt":null,"id":23891079856227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82558e80da932ca9bf7d5c1c68e41d9da6a757d_e8ad17ed-ec4a-461e-955c-9c3f66da2076.webp?v=1714890630"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82558e80da932ca9bf7d5c1c68e41d9da6a757d_e8ad17ed-ec4a-461e-955c-9c3f66da2076.webp?v=1714890630","width":2000},{"alt":null,"id":23891084345443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4373d4e72e295f811335d4dbf6e912575237f3f9_dca721a4-2fc3-4fcb-bd0a-a86dd0edf19b.webp?v=1714890633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4373d4e72e295f811335d4dbf6e912575237f3f9_dca721a4-2fc3-4fcb-bd0a-a86dd0edf19b.webp?v=1714890633","width":2000},{"alt":null,"id":23891086475363,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14efc0cc0be2b57257be92d30cdcffb6107fb707_58b789d8-178a-48de-94f8-952c9c266e39.webp?v=1714890635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14efc0cc0be2b57257be92d30cdcffb6107fb707_58b789d8-178a-48de-94f8-952c9c266e39.webp?v=1714890635","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null}; $isMerge = null; $variants = [{"id":41907335888995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485756997731,"product_id":7414556229731,"position":9,"created_at":"2024-05-05T14:30:33+08:00","updated_at":"2024-05-05T14:30:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4373d4e72e295f811335d4dbf6e912575237f3f9_dca721a4-2fc3-4fcb-bd0a-a86dd0edf19b.webp?v=1714890633","variant_ids":[41907335888995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23891084345443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4373d4e72e295f811335d4dbf6e912575237f3f9_dca721a4-2fc3-4fcb-bd0a-a86dd0edf19b.webp?v=1714890633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907336118371,"title":"Mod NX-白色邊框","option1":"Mod NX-白色邊框","option2":null,"option3":null,"sku":"MPB0122804-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485755359331,"product_id":7414556229731,"position":8,"created_at":"2024-05-05T14:30:30+08:00","updated_at":"2024-05-05T14:30:30+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82558e80da932ca9bf7d5c1c68e41d9da6a757d_e8ad17ed-ec4a-461e-955c-9c3f66da2076.webp?v=1714890630","variant_ids":[41907336118371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23891079856227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b82558e80da932ca9bf7d5c1c68e41d9da6a757d_e8ad17ed-ec4a-461e-955c-9c3f66da2076.webp?v=1714890630"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907336708195,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01228J5-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485741498467,"product_id":7414556229731,"position":1,"created_at":"2024-05-05T14:30:14+08:00","updated_at":"2024-05-05T14:30:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a704ee1cb460477d2ec5a8f568ba1877e18c81db_80800cb0-a6eb-4a7f-a5f8-b0dc8b236188.webp?v=1714890614","variant_ids":[41907336708195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23891065962595,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a704ee1cb460477d2ec5a8f568ba1877e18c81db_80800cb0-a6eb-4a7f-a5f8-b0dc8b236188.webp?v=1714890614"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}]; $defaultVariant = {"id":41907335888995,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0122824-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485756997731,"product_id":7414556229731,"position":9,"created_at":"2024-05-05T14:30:33+08:00","updated_at":"2024-05-05T14:30:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4373d4e72e295f811335d4dbf6e912575237f3f9_dca721a4-2fc3-4fcb-bd0a-a86dd0edf19b.webp?v=1714890633","variant_ids":[41907335888995]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 mini - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23891084345443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4373d4e72e295f811335d4dbf6e912575237f3f9_dca721a4-2fc3-4fcb-bd0a-a86dd0edf19b.webp?v=1714890633"}},"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: "停產" }