Creating an XML with promotional price using a price table
Learn more about the XML feature on the VTEX platform in the article How XML updating works To apply different prices to products via XML, you must associate a SKU price table. To do this, please follow the steps below:
- In the VTEX Admin, go to Store Settings > Channels > XML Integration, or type XML Integration in the search bar at the top of the page.
- Find the XML file you want to edit and click on
Modify
. If you want to create a new file, please read our article Configuring XML. - Here, you must check if the fields related to SKU price (lowest product price, highest product price, original SKU price, current SKU price and current SKU price + taxes) are filled in. For the operation to work correctly, at least one of these fields must contain information.
- Fill in the **Price tables ** field with the name of the desired price table. Then, click on the check box corresponding to the tag in the column Show content. The selected price table must have fixed prices registered. Otherwise, the configuration will not be performed.
Once the price table is included in the XML, all price fields will be overwritten.
- Click on
Save
.
Thus, the platform will associate the values in the price table with the products registered in the XML file collection. After finishing the XML registration and saving the changes, you can check the information when it is updated by entering the URL as follows:
https://{domain}.myvtex.com/XMLData/{XML file name}.xml
Example of updated XML:
