Enable support for AJAX add to cart (dc_ajax_add_cart)

Created on 28 September 2022, almost 2 years ago
Updated 19 July 2023, 12 months ago

Problem/Motivation

There is no way to enable the wishlist button for the AJAX add to cart form implemented in dc_ajax_add_cart.

Steps to reproduce

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.

Proposed resolution

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.

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024