Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Fix orders loading in 3DS account info formatter #157

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mmenozzi
Copy link

Using the same collection to load 3 different set of orders is wrong because Magento always use the firs loaded collection. Indeed with the previous code Magento was sending the count of orders in the last 6 month even for the last year orders count and the last 24 hours orders count.

Also note that the HiPay API limit the length of the last 24 hours orders count parameter to 3 characters length. So in a store where the same customer place more than 999 orders in 6 months he cannot pay anymore with the HiPay payment method.

Using the same collection to load 3 different set of orders is wrong because Magento always use the firs loaded collection. Indeed with the previous code Magento was sending the count of orders in the last 6 month even for the last year orders count and the last 24 hours orders count.

Also note that the HiPay API limit the length of the last 24 hours orders count parameter to 3 characters length. So in a store where the same customer place more than 999 orders in 6 months he cannot pay anymore with the HiPay payment method.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant