I am not sure it really concerns this module but in my environment a 1-click-buy form failed to submit if it was loaded after switching of current variation in a standard add_to_cart form. In spite of everything was OK on views pages (with multiple products), on a single product page I got an «Invalid form POST data» error. The only way I could fix this issue was to replace drupal_get_form() to a drupal_build_form().

Comments

Alex Zu created an issue. See original summary.

alezu’s picture

Status: Needs review » Needs work

No, it does not work properly at last. I suspect that it can be related to how the form is ajaxified. It seems that removing «jQuery('#commerce_buy_one_click_form').ajaxForm();» and adding ajax functionality on form API side solves the problem but this way needs rewriting of the form callbacks. I hope I'll be able to do it soon...