Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6330047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:47:36+00:00 2026-05-24T17:47:36+00:00

I am working on an ecommerce solution using opencart, that has a bunch of

  • 0

I am working on an ecommerce solution using opencart, that has a bunch of checkboxes in order to batch update.

This field is a custom field and what I’m looking to do, is when the user selects these and then continues shopping when they return, they are checked.

I have the following code:

<input class="something" type="checkbox" value="£11.75" name="vat[]">
<input class="something" type="checkbox" value="£25.75" name="vat[]">

So when the first one is checked, it needs to be added to the session.

How woukd I do this? Could I use javascript/jquery to do an Ajax post to a script that would set the session for each checkbox?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:47:38+00:00Added an answer on May 24, 2026 at 5:47 pm

    You’d use something like this

    $('input.something').click(function() {
       $.ajax({
          url: 'http://...',
          data: {'checkbox' : this.value }
          ...
       });
    });
    

    however, you should ask yourself if it’s really required that every change in a checkbox be immediately sent to the server. Does checking off £11.75 mean that other tabs/windows on the site must be aware of that change? If it’s just to update a shopping cart, then wait until the user’s done making their changes, THEN send the current values to the server in-bulk. Otherwise you’re just using up bandwidth and server resources for no good reason.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an eCommerce application that's using quite a bit of JavaScript and
I'm currently working on a legacy eCommerce system front-end that has alot of duplicate
I have an ecommerce working in ASP.Net MVC. I'm using Caching to improve performance
Working on an ecommerce site which will be integrated with a 3rd party vendor--that
I'm working on a regional ecommerce website (ie. usa, uk, china) that offers a
I have a script in production - an ecommerce checkout page - that has
I am working on eCommerce app Using Asp.net 3.5 MVC. On my Cart View
I am developing an ecommerce website with CI that has product categories and products.
I am tasked with making a custom ecommerce app that will populate purchase options
I'm working on an ecommerce website for my work that gives me articles that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.