Added use-ajax-submit class to ensure that if the same wishlist form is displayed more than once on the same page, it still uses ajax for submission.
- last update
over 1 year ago 36 pass
There is no way to enable the wishlist button for the AJAX add to cart form implemented in dc_ajax_add_cart.
Install both dc_ajax_add_cart and this module and try to enable wishlist using the AJAX add to cart formatter in the product display.
The AJAX Form is similar enough to just enable support for it in the hooks commerce_wishlist_form_commerce_order_item_add_to_cart_form_alter, commerce_wishlist_field_formatter_third_party_settings_form and commerce_wishlist_field_formatter_settings_summary_alter.
The form alter hook needs to change to the more general hook_form_alter version.
Active
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Added use-ajax-submit class to ensure that if the same wishlist form is displayed more than once on the same page, it still uses ajax for submission.