Back to jobs

Fix WooCommerce "Confirm Form Resubmission" bug on Add to Cart — mobile

Search - PHP · local_filter_skipped · UID ~022082746194862202595

Open Job

Job Details

Budget $10.00 - $25.00/hr
ExperienceIntermediate
DurationUnknown
Weekly hoursUnknown
Client countryUnknown
ProposalsUnknown
InterviewingUnknown
Invites sentUnknown
First seenThu, Jul 30, 2026 10:05 AM
Last seenThu, Jul 30, 2026 8:38 PM

Description

Hello, I run a WooCommerce store selling customizable products via the FancyProductDesigner (FPD) plugin. On mobile, after clicking "Add to Cart" on a personalizable product page, the browser shows a "Confirm Form Resubmission" dialog if the customer refreshes the page — and confirming it re-adds the product to the cart a second time. Root cause already confirmed via DevTools Network tab: Add to Cart is a POST request to the product page itself Server responds with 200 OK, rendering the full page directly What I've already ruled out: Confirmed via console.trace() that form.submit() on .cart/.variations_form is called natively by FPD itself (frontend-woo.js → FancyProductDesigner-all.min.js → toDataURL/canvas rendering → submit), as part of its normal flow, NOT a duplicate or rogue call Multiple JS-side attempts to intercept form.submit() / requestSubmit() / the submit event and replace it with a fetch() call have all broken FPD's internal flow — the "Add to Cart" button gets stuck, the FPD editor gets stuck on "loading," and the mini-cart sidebar opens then closes erratically (because added_to_cart fires without the full response data FPD/WooCommerce expects) Tried history.replaceState() — doesn't fully solve it because the browser's internal "this page was loaded via POST" flag isn't reset by that Deliverable: Add to Cart works normally on mobile — single add, no duplicate, and reloading afterward never shows "Confirm Form Resubmission." FPD editor and button remain fully fu

Skills

PHP WordPress WooCommerce JavaScript jQuery

Notification History

ChannelTypeStatusSentError
No notifications.

User Actions

ActionActed at
No actions.