I am creating mobileApp using APIs i used my custom API to return products and used the the function that return price according to the currencycode given below is the code

public function getPriceByCurrency($price)

    $rate = $this->_currencyFactory->create()->load($this->apiHelper-

    $itemAmount = number_format(($price * $rate), 2);
    return $itemAmount;

However it returns the dedicated price but how can i add to cart using the given currency code i am using the APIs endpoint /V1/carts/mine/items

Please Help Thanks in Advanced...



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.