Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Customer
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Aug 2012 at 04:33 UTC
Updated:
15 Sep 2012 at 04:11 UTC
In order to have dynamic events happen on the checkout pages such as #1287124: Support recalculating shipping when the address is entered, I think it is necessary to be able to alter the AJAX callbacks so that more events can be chained to the response. Here's a patch that allows other modules to add their own commands to the AJAX response.
| Comment | File | Size | Author |
|---|---|---|---|
| commerce-add_alter_to_profile_copy_ajax_callback.patch | 2.06 KB | andyg5000 |
Comments
Comment #1
andyg5000Comment #2
rszrama commentedMentioned this in the other issue, but I'd already made the change while on my flight home from Munich when I changed some other bits of this profile copying code. Still, I didn't know about the NULL first argument for ajax_command_replace() - that was a nice touch. : )
Commit: http://drupalcode.org/project/commerce.git/commitdiff/ee16120