@zouker @matt_daymoon
create file name app.invoices.$orderId.tsx
https://admin.shopify.com/store/{censor}/apps/ges-1/app/invoices/5595712848006
// Certifique-se de importar o useParams
import { Link, useParams } from "@remix-run/react";
// Dentro do componente Invoices, onde você está acessando os parâmetros da rota
const Invoices = () => {
const params = useParams(); // Obtenha os parâmetros da rota
const orderId = params ? params.orderId : undefined; // Acesse o orderId se params não for undefined
// Verifique se orderId é definido antes de invocar qualquer operação nele
return (
# Detalhes da Fatura
ID da Encomenda: {orderId}
Voltar para Encomendas
);
};
export default Invoices;
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.