Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Attribute Stock Quantities Won't Change


hebert01

Recommended Posts

Hi - I recently installed QT 3.1_2 and I'm having a problem. QTP is deducting quantity from the total stock of a product, but quantities are not being deducted from the various sizes in stock.

 

For example, when a t-shirt is purchased, a deduction is made from the total quantity of t-shirts, but not from the particular size that was purchased (small, medium, etc.). I've read through the earlier forums, disabled the download, check stock level and subtract stock are enabled, allow customer to check out with insufficient stock is disabled. I tried the fix suggested below in an earlier thread for a similiar problem, but it didn't work.

 

I think this is a common problem. Can anyone help?

 

Thanks...

 

In catalog/checkout_process.php:

 

Move:

 

CODE

$products_attributes = $order->products[$i]['attributes'];

 

 

right beneath:

 

CODE

if (STOCK_LIMITED == 'true') {

Link to comment
Share on other sites

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...