On the payment tab of an order (admin/commerce/orders/ORDERID/payment) there is a status icon.
However, on multilingual sites this doesn't work, since the image src is for example http://domain.com/en/sites/all/modules/contrib/commerce/modules/payment/theme/icon-success.png
This can be changed by using file_create_url() instead of url() to generate the src attribute.
I cleaned this up further by using theme('image') instead. Not sure if that's desired, but works fine in my tests.
See attached patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | commerce_payment_icon-1271730.patch | 919 bytes | svendecabooter |
Comments
Comment #1
svendecabooterComment #2
guictx commentedWorks for me.
Comment #3
rszrama commentedThanks for the patch and the review. Committed!