#Add mxn currency
6 messages · Page 1 of 1 (latest)
What is your problems? @distant flax
@serene grove Hello and thank you for you response, I am new using MedusaJS and I am not very sure how to adapt the functionality.
right now I am trying to put my currency mxn according to my country Mexico, I ran and script to create it and did it but the problem is that in the admin dashboard I can not see the currency for mxn.
This is the script I ran:
import { MedusaContainer } from "@medusajs/framework/types";
import { Modules } from "@medusajs/framework/utils";
async function createMexicoRegion(container: MedusaContainer) {
const regionModuleService = container.resolve(Modules.REGION);
try {
const region = await regionModuleService.createRegions({
name: "México",
currency_code: "mxn",
countries: ["mx"],
});
console.log("Región de México creada con éxito:", region);
} catch (error) {
console.error("Error al crear la región de México:", error);
}
}
export default async function ({ container }: { container: MedusaContainer }) {
await createMexicoRegion(container);
}
The problem is that I do not know hot to fix to see the currency in te admin dashborad to see it, for future implements.
the currency, region and country was created with the script:
Add your currency here
@serene grove Thank you, that helps, I am felling bad because it was to easy, but I am new in MedusaJS, I hope to learn fast