If you’ve ever wanted a tab delimited list of product attributes and prices to update pricing, here’s one way:
Export product attributes through ‘Utilities > Export Data > Export Attributes to XML File’
- When exporting choose ‘Replace All Mode
- You will have to add a root level
element around the xml generated by miva and the file: 12PS C:\>$a = Get-Content .\provide.xmlPS C:\>Set-Content .\provide.xml -value "<products>",$a,"</products>"Now bring in file as xml:
1PS C:\>$xml = [xml] (Get-Content .\provide.xml)Run this command to generate a tab delimited list of Product_Code, Code, & Price
12PS C:\>$xml.Products.ProductAttributeOption_Add |foreach { $_.product_code + "`t" + $_.Price } > .\provide-list.txtFor more information on Powershell’s xml capabilities and how easy it is to use XML with Powershell visit Powershell XML on Code Project
.