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

Checkout twig variables vary between different stages #216

Open
thomasjthomasj opened this issue Jul 30, 2014 · 0 comments
Open

Checkout twig variables vary between different stages #216

thomasjthomasj opened this issue Jul 30, 2014 · 0 comments
Labels

Comments

@thomasjthomasj
Copy link
Contributor

Bug description

Not strictly speaking a bug but so stupid it may as well be a bug, to get the base price of an order item on the first and third stage of checkout, you need call item.item.basePrice, where on the last stage, you need to call item.sum('basePrice')

The reason for this is that at the first and third stage, item is an array of data, where on the last stage, it's an instance of Order\Entity\Item\Row

How can this be replicated?

Related Issues / Trello Card / Code?

Anything else to add? (Screenshots, background context, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant