Jump to content

Requesting help regarding Ajax


Michael_Derksen

Recommended Posts

Hi there, 

I have a question, which I seem to be unable to find out myself; 

 

I have my own webshop (coded by myself), and trying to add multiple configurable options into it, each option having their own stock limit. 

 

Here is the problem: 

I am trying to implement AJAX for the following: 

Lets say: Customer wants Product A with Config 1: A, Config 2: C and Config 3: C

Lets say config 1 is length, Config 2 is design of the product, and config 3 is the dimension of the product. 

Config 1 Option A has 12 items in stock 

Config 2 Option C has 7 items in stock 

Config 3 Option C has 1 item in stock. 

 

Here is my question: 

How do I implement AJAX to check all these variables (so lets say: You have Config A with Option A (12 stock) B (16 stock) and C(109 stock), etc, and when she selects for example Config 3 Option C, that she can ONLY order 1 of the items, and if she tries to put the order in higher (in the selector) that it sais that with the current configuration only 1 order can be made? 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.