Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I set a URL alias for the cart page, then removing an item from the cart causes 2 messages instead of 1:
<product> removed from your shopping cart.
<product> successfully removed from cart.
Any idea what might be causing this?
Steps to reproduce:
- Create a URL alias for the cart page e.g. basket
- Add an item to your cart (takes you to /basket)
- Remove the item from you cart (the URL stays on /basket)
Comments
Comment #1
longwaveThe text "successfully removed from cart" does not appear in Ubercart core, so I suspect this is caused by some custom configuration or a contributed module.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedYou are right, it's being caused by Ubercart ajax cart module. Moved accordingly.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commented[Removed by user]
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedThis is still a problem with 6.x-2.x-dev
Comment #5
stewart.adam CreditAttribution: stewart.adam commentedTagging for 6.x-2.2 blocker.
Comment #6
thtas CreditAttribution: thtas commentedI've worked around this by turning off the remove message by manually setting the DB variable
doesn't look like this setting has a UI element in the admin page yet
Comment #7
stewart.adam CreditAttribution: stewart.adam commentedI'd like to get a smaller than planned 6.x-2.2 release out shortly to fix some bugs and unfortunately I do not think I will have enough time to investigate this by then. I am bumping this to 6.x-2.3 blocker. In the mean time thtas's suggestion in #6 is a viable workaround.
Comment #8
stewart.adam CreditAttribution: stewart.adam commentedTurns out some refactoring I did inadvertently got rid of this message, so looks like this will be in 6.x-2.2 after all.
Latest dev should not cause duplicate remove messages. I will be releasing 6.x-2.2 stable shortly.