Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
There is a dc_ajax_add_to_cart_message for handling such customizations. You can use it to add the cart total. Either you can use the order ID attached to $line_item, or you can pass the current $order entity to grab the total amount.
Comments
Comment #2
subhojit777Glad that you liked this module :)
There is a
dc_ajax_add_to_cart_messagefor handling such customizations. You can use it to add the cart total. Either you can use the order ID attached to$line_item, or you can pass the current$orderentity to grab the total amount.Comment #3
tonytheferg commentedThanks! Could you give examples of those? I'm new to code. I mostly just do css right now as I am still learning.