Closed tinashechiraya closed 2 months ago
@tinashechiraya
Let's avoid fetching another API here. Instead, we can change the API that retrieves product details to POST request. The React frontend can send the user's location (if available) to the server, and the server will handle pricing logic and return the products with the correct prices.
For example, the current API to get product details:
https://geohosting.dev.do.kartoza.com/api/products/G3W/
Let's convert this to a POST request, with the frontend adding the user's location if it exists.
Thank you @tinashechiraya Please create test for this @meomancer done
@tinashechiraya Please split the function:
LGTM Thank you @tinashechiraya
Description
The user will be prompted to allow access to location so product price and currency can be adjusted according to users location
Adjustments: