문제

I've been poking around the RMA class file to try and find a way to close it, and it would seem that simply running $rma->close(); should be enough, but that fails without displaying an error.

Has anyone found another way to close an RMA through PHP?

도움이 되었습니까?

해결책

A simple mistake, seeing as there was no example code I could follow and I was just going off what I read in the class file, I failed to realize that you needed to run ->save() after closing the RMA.

The final line looks like this:

$rma->close()->save();
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top