Shopp 1.2 (https://shopplugin.net) doesn't provide a native way to show sku for the selected variant. This plugin solves that problem.
安装:
Upload the directory "shopp-variants-sku" to the '/wp-content/plugins/' directory
Activate the plugin through the 'Plugins' menu in WordPress
Add this code in the product loop where you want to see SKU:
<?php if(function_exists('am_shopp_variants_sku')) am_shopp_variants_sku(true); ?>
use true to echo the sku;
use false to return the sku: <?php if(function_exists('am_shopp_variants_sku')) $sku = am_shopp_variants_sku(false); ?>
升级注意事项:
1.0.4
Important to upgrate to that version from 1.0.3
1.0.3
Not important to upgrate to that version from 1.0.2