WP all import is a great tool for managing stock levels and sale prices from woocommerce.
But most of the times the CSV of our clients are not provide us the true Sale price but sometime they return 0 as Sale price, or Sale price to be similar to regular price
if you try to import as this then your websiste will show wrong sale price!
so a small php script for the function editor
same value
<?php
function saleprice ($salesprice, $regularprice) {
if ( $regularprice != $salesprice )
return $salesprice;
else if ( $regularprice = $salesprice )
$salesprice=””;
return $salesprice;
}
and in the Sales filed you add
[saleprice({salesprice[1]},{regularprice[1]})]