The commerce_cart_commerce_order_load() function uses a standard PHP static variable to track orders that have been refreshed. Can this be changed to the new drupal_static way?

Doing this would allow a custom module to be able to load a cart order without having Commerce refresh the prices.

CommentFileSizeAuthor
#1 commerce_cart_static-1312290-1.patch580 bytesmjpa

Comments

mjpa’s picture

Status: Active » Needs review
StatusFileSize
new580 bytes

Patch attached.

rszrama’s picture

Status: Needs review » Fixed

Committed. Great find. : )

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.