我要导出XML woocommerce可变产品。
我想要那种XML格式。
<?xml version="1.0" encoding="UTF-8"?>
<data>
<!-- BEGIN LOOP -->
<post>
<ID>{ID}</ID>
<ProductCategory>{Product Category}</ProductCategory>
<Title>{Title}</Title>
<Content>{Content}</Content>
<Excerpt>{Excerpt}</Excerpt>
<ProductType>{Product Type}</ProductType>
<ParentProductID>{Parent Product ID}</ParentProductID>
<Sku>{Sku}</Sku>
<Price>{Price}</Price>
<SalePrice>{Sale Price}</SalePrice>
<ImageURL>{Image URL}</ImageURL>
<ImageFeatured>{Image Featured}</ImageFeatured>
<Options>
<Size>
<Size>{Size}</Size>
</Size>
<Color>
<Color>{Color}</Color>
</Color>
<StockAmount>
<Stock>{Stock}</Stock>
<StockAmount>
</Options>
</post>
<!-- END LOOP -->
</data>
我想在产品标签的变量中写明库存量。但是我不能。你能帮我吗?