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

Add param discount_source=gift to checkout url #20

Closed
wants to merge 1 commit into from

Conversation

mircobabini
Copy link
Member

All Submissions:

Changes proposed in this Pull Request:

This one is useful to detect if we are on a checkout page because of a gift (in order to change design, messages...)

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

@mircobabini
Copy link
Member Author

mircobabini commented Dec 14, 2020

This one would be useless if we had a lookup table for gifts.

See the proposal request: #22
And see the implementation of the lookup table: https://gist.github.com/mircobabini/c694770e217e483b249be9941eb07ff3

@mircobabini
Copy link
Member Author

Mh, maybe there's another way to do it.

If the code => code_id is for a level which is a gift-level... then it's a gift code.

@dparker1005
Copy link
Member

We are going to push forward with the order meta approach proposed in #22. Is it ok if I close this PR?

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