Profit margin

Closed

Import WP Pro Updated 4 months ago 2 Replies

Edward asked 4 months ago on January 21, 2024 at 9:35 pm

Hi James,

Is there a way of adding VAT & profit margin % when importing a ftp feed, or do you know of a plugin that will do the job?

Regards

Eddie

J

James replied Support Agent

4 months ago on January 21, 2024 at 9:39 pm

Hi Edward,

You could use a custom method to your theme/website to modify a value e.g. .

function iwpex_add_vat($priceExVat = ''){
    $vatRate = 20;
    $priceExVat = 10;
    $vatComponent = ($priceExVat / 100) * $vatRate;
    return $priceExVat + $vatComponent;
}

Then you would use it in the importer Replacing:

{0}

With:

[iwpex_add_vat("{0}")]

James

ED

Edward replied

4 months ago on January 21, 2024 at 9:52 pm

Thank you James for the quick reply.