Skip to content
Snippets Groups Projects
Commit cad4bd87 authored by Gundo Sifhufhi's avatar Gundo Sifhufhi
Browse files

Convert Checkout Rates From uAfrica as a shipping method ( From cents to `Rands`)

parent 91529c03
No related branches found
No related tags found
No related merge requests found
......@@ -544,8 +544,9 @@ class Customshipping extends AbstractCarrier implements CarrierInterface
$method->setCarrierTitle('uafrica');
$method->setMethod($code);
$method->setMethodTitle($title['service_name']);
$method->setPrice($title['total_price']);
$method->setCost($title['total_price']);
//Convert total price from cents to dollars
$method->setPrice($title['total_price'] / 100);
$method->setCost($title['total_price'] / 100);
$result->append($method);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment