Because of the way Drupal behaviors work, the ucOutOfStock behavior will be called both on page load and whenever an ahah method calls the Drupal.attachBehaviors method. So, I had a block of products on the checkout page and the out of stock message was added both on page load and when the shipping quote pane finished fetching the quotes. The attached patch just makes sure to remove any previous out of stock messages before adding new ones.
| Comment | File | Size | Author |
|---|---|---|---|
| out_of_stock_fix_multiple.patch | 2.15 KB | jrust |
Comments
Comment #1
summit commentedHi, This patch is working great! Thanks for building it.
greetings, Martijn
Comment #2
juves commentedThanks!
Comment #3
hanoiiI fixed this slightly different, but thanks for reporting