Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Some modules implement hook_form_alter and modify any form that matches 'uc_product_add_to_cart_form_####'. The uc_ajax_cart module does not send the proper form_id in the uc_ajax_cart_add_item function.
The drupal_execute function should be modified to be
drupal_execute($data['form_id'], $formValues, $product );
Comment | File | Size | Author |
---|---|---|---|
uc_ajax_cart_form_id.diff | 430 bytes | jeffmace |
Comments
Comment #1
PieterDCThis also fixes it for me.
Thanks @jeffmace
Comment #2
stewart.adam CreditAttribution: stewart.adam commentedThanks for this, committed.