In spite of everything I get Drupal Messages: Product added to the cart.
I suggest that instead of Ajax command[] use drupal_get_messages()
| Comment | File | Size | Author |
|---|---|---|---|
| dc_ajax_add_cart_add_drupal_get_messages_0_D7.patch | 1.17 KB | lukasss |
In spite of everything I get Drupal Messages: Product added to the cart.
I suggest that instead of Ajax command[] use drupal_get_messages()
| Comment | File | Size | Author |
|---|---|---|---|
| dc_ajax_add_cart_add_drupal_get_messages_0_D7.patch | 1.17 KB | lukasss |
Comments
Comment #2
subhojit777Can you tell us what's wrong with the previous implementation.
Comment #3
lukasss commented1. I add to cart any products. Its fine!
2. I go to any page and I see Drupal Messages: Product added to the cart
Comment #4
subhojit777Comment #6
subhojit777Comment #8
lukasss commentedIt really is already been fixed?
I don't see this hotfix in 7.x-2.11 and 7.x-2.x-dev
Comment #9
subhojit777The fix is in the latest 7.x release. Can you show me screenshots/gif of what you are doing.
Comment #10
lukasss commentedI can only see part of the fix, but I don't see this part:
// Clear status messages if any.
-$commands[] = ajax_command_remove('div.messages');
+drupal_get_messages();
Comment #11
subhojit777I made some modifications. Your patch pointed out the problem in this module, but it was not aligned with the purpose of this module. So, I made a couple of changes http://cgit.drupalcode.org/dc_ajax_add_cart/commit/?id=bf9482e
Comment #12
lukasss commentedThen everything is clear, thank you.
But still I do not understand why to show the usual message when you open a modal window?
Comment #13
subhojit777Good point :) You can disable the popup. There's a setting. You can find it here
admin/commerce/config/ajax-cart/pop-up-message- Display popup messageComment #14
lukasss commentedYes, I can disable the window! But it is very necessary!
It would be nice if you could disable normal message.
Thanks for the quick answers!
Comment #15
Neo13 commentedYou can disbale the normal message in rules at
admin/config/workflow/rules/reaction/manage/commerce_cart_add_to_cart_message.