I use Woocommerce and their one page checkout plugin. I also use the Avada theme.
I have a variable product with 2 variations. I have a product page that has the one page checkout below the product.
I have it working at the moment when you click on a variation, then click on add to cart and it works fine. It loads in the one page checkout.
What I want to achieve however is a user clicks a button that adds that variation to cart (without having to click on add to cart), the cart refreshes automatically. Seems simple but I can't get it to work via ajax!
I know this can be achieved via URL but I've been trying to do it via ajax and I just cant get it working.
Expected Results: - Seamless Cart Updates: When the user clicks on the "Add to Cart" button, the cart should be updated, and the checkout table should update immediately to show the new product. - No Page Reload: The page should not reload, and the checkout table should refresh dynamically. - Secure and Functional AJAX: Ensure proper nonce validation is in place for security when sending AJAX requests to update the cart and checkout table.
The Specific Tasks: Product Selection with Custom Buttons:
On a custom page (e.g., a product page for access to reports), users will be presented with buttons for selecting product variations (e.g., 12 months access to the Cash report or 12 months full access to all report categories). When a user selects one of these options, the product should be added to the cart immediately. Auto-updating the Checkout Review Table:
After the product is added to the cart, the One Page Checkout review table (where the user can see their selected products and prices) should refresh automatically without the need for a page reload. This will update the review table with the newly added product. Handling AJAX Requests for Cart Updates:
The One Page Checkout plugin requires specific AJAX actions to update the checkout table and the cart contents. The nonce used for security in AJAX requests needs to be correctly passed from WordPress to JavaScript to avoid 400 Bad Request errors.
We're looking for an experience developer with knowledge of WooCommerce that can help us.
Alkaline RO Showcase Page Category: Bootstrap, CSS, HTML, SEO, Web Design, Web Development Budget: ₹600 - ₹1500 INR
31 Aug 2025 04:03 GMT
AI-Driven Freelancer Marketplace Creation Category: AI Development, AI Model Development, Cloud Computing, Graphic Design, HTML, PHP, User Experience Research, Web Application, Web Development, Web Design Budget: $2 - $8 USD
Single-Page Website Maintenance & Security Category: Amazon S3, Amazon Web Services, AWS Lambda, Email Handling, Web Development, Web Hosting, Web Security, Website Optimization Budget: $30 - $250 AUD
31 Aug 2025 03:58 GMT
AI Freelancer Marketplace Development Category: AI Agents, AI Development, API Development, Automation, Graphic Design, PHP, Software Architecture, Web Design Budget: min $50 USD
31 Aug 2025 03:58 GMT
Modern Redesign of Two Images Category: Adobe Illustrator, Photoshop, Color Grading, Graphic Design, Illustration, Photoshop Design, Visual Design Budget: $10 - $11 USD
Car Detail Breakeven Analysis Category: Business Analysis, Data Analysis, Data Entry, Data Processing, Data Visualization, Excel, Financial Analysis, Financial Modeling, Google Sheets, Microsoft Office Budget: $30 - $250 USD
31 Aug 2025 03:55 GMT
Dhirendra center Category: Content Creation, Customer Support, Data Collection, Data Entry, Excel, Social Media Management, Social Media Marketing, Typing, Virtual Assistant, Word Budget: ₹12500 - ₹37500 INR
31 Aug 2025 03:55 GMT
Android Delivery App Development Category: Android, Android App Development, Android SDK, IPhone, Java, Mobile App Development, UI / User Interface, User Experience Research Budget: ₹12500 - ₹37500 INR
31 Aug 2025 03:54 GMT
E-commerce Sales Supervisor Needed Category: B2B Marketing, Business Analysis, Digital Marketing, Internet Marketing, Marketing, Research, Sales, Sales Management Budget: ₹12500 - ₹37500 INR
Voice Gender Identification Function (Male/Female Detection) Category: AI Development, AI Model Development, AI Research, AI Text To Speech, Audio Processing, Audio Services, Data Analysis, Machine Learning (ML), Python, Voice Talent Budget: ₹1500 - ₹12500 INR