limera1n Posted May 1 Share Posted May 1 Hej, może ktoś będzie miał inny pomysł na to: Chce wyłączyć automatyczne dodawanie produktów do magazynu po częściowym zwrocie (partial refund). Zrobiłem prosty moduł, oparty na dekoracji IssuePartialRefundHandler (załącznik) Problem jest taki że wszystkie właściwości IssuePartialRefundHandler są private i robiąc dekoracje nie mam do nich dostępu (dostaję Cannot access property) co jest oczywiste. Pytanie - istnieje jakiś sposób, żeby dobrać się do tych wartości w module? Podmiana na "public" w ramach testu bezpośrednio w IssuePartialRefundHandler sprawia, że moduł działa zgodnie z założeniami. refundard.zip Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now