Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(checkout): set affiliate code to get order origin #969

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

matheusgnreis
Copy link
Member

Checklist

  • I've read and understood contributing guidelines;
  • If changing UI, I've tested on most common viewports, desktop and mobile devices;

Main reason is in future we can send this origin to ERP and more custom reports about it

@@ -369,6 +369,9 @@ const actions = {
customer,
notes: getters.notes
}
if (customer.referral) {
checkoutBody.affiliate_code = customer.referral
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aqui o que você está propondo é:
Fulano indica Ciclano, Ciclano indica Sílvio, Sílvio faz um pedido, o pedido fica com affiliate_code apontando para Fulano (o primeiro), é isso mesmo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isso mesmo. É interessante para mapear quem fez a indicação, ainda mais para faturar o pedido. Normalmente os próprios vendedores que faturam os pedidos que eles venderam, por isso que é necessário ter uma informação que vincule, hoje essa informação é apenas um cupom por exemplo, se o link tiver o cupom.

@leomp12 leomp12 merged commit 4c35054 into master Nov 29, 2023
4 of 5 checks passed
@leomp12 leomp12 deleted the affiliate-code branch November 29, 2023 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants