- π·πΊRussia shevgeny Moscow
The patch #2 doesn't work.
First, there are two more modules in the attachment.
Secondly, if you make changes to the main and additional modules, Drupal 10 gives a fatal error. - π·πΊRussia shevgeny Moscow
Thank you, the fatal error has disappeared, but when choosing a widget "Ajax Add To Cart" in variations on the product page there is no button "Add to the cart" at all.
- π·πΊRussia shevgeny Moscow
Also, quantity field doesn't work through ajax on cart page (views form)
- π³π±Netherlands mrcdrx
You also need the patch in this issue π D9: UntrustedCallbackException Needs work for this patch to work.
- First commit to issue fork.
- π³π±Netherlands jeroen dost
@mrcdrx Thanks for pointing to the other issue!
- Status changed to Needs review
about 1 year ago 4:46pm 2 November 2023 With the new commerce update this is also not enough. In AjaxAddToCartForm.php __construct can be removed and the static create function needs to look similar to the new AddToCartForm.php create function i.e. calling the parent create function and assigning the refreshPageElementsHelper afterwards.
- Status changed to Needs work
10 months ago 12:41pm 12 January 2024 - First commit to issue fork.
- Status changed to Needs review
7 months ago 6:15am 7 May 2024 - π³π±Netherlands arantxio Dordrecht
I've adjusted the MR based on the feedback from @marioki.
I've tested this on our site and it seems to be working as expected.
- π³π±Netherlands arantxio Dordrecht
I've also adjusted the MR based on the changes made in π Automated Drupal 10 compatibility fixes Needs review , and added the TrustedCallback tag to ProductLazyBuilders:ajaxAddToCartForm as stated in the Upgrade Status module.
- Status changed to RTBC
7 months ago 8:00am 8 May 2024 Thanks @Arantxio. Tested on our site as well and everything is working fine. @gaurav.kapoor and other maintainers, please consider merging this and releasing a Drupal 10 release.