In Drupal 7 Commerce, I am running into an issue with this workflow:
- Add item to cart
- Apply qualifying coupon. Correct discount is taken off item
- Add new item to cart with qualifying discount.
- Old discount in order shown UNTIL you reload the page 2 times.
Basically I am adding a coupon to the cart at the /checkout/%
page
It seems like the block or view is being cached.
What is the best means to uncache the block?
I have tried using:
cache_clear_all('shopping_cart_summary_new', 'cache_views_data', TRUE);
as well as:
$order_wrapper = entity_metadata_wrapper('commerce_order', $order);
commerce_coupon_commerce_cart_order_refresh($order_wrapper);
drush cc all
? Restartingmemcached
? Any other caches? Can you list all your relevant modules? What do you use for discounts? – kenorb Oct 21 '15 at 15:44cache_%
tables manually and see if that helps. – kenorb Oct 22 '15 at 14:49