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 8384953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:32:36+00:00 2026-06-09T17:32:36+00:00

Friends i am stuck with a big problem in Opencart Version 1.5.3.1 and badly

  • 0

Friends i am stuck with a big problem in Opencart Version 1.5.3.1 and badly need your help.

I added option for “Color” for my product and for each color Opencart requires to tell its Quantity. My client have thousands of products with no issue of stock/quantity.

Its very irritating for them to keep on inserting some numeric value for each color in each product … not forgetting most of the products have 5 to 15 colors.

Is been 3 days i am searching codes and trying but so far i am unable to find how to disable that.
Problem is if quantity is not inserted then it will not show that color.

I found this code in controller/product/product.php but it solved nothing

foreach ($option['option_value'] as $option_value) {
if (!$option_value['subtract'] || ($option_value['quantity'] > 0)) { ...

I changed it to:

foreach ($option['option_value'] as $option_value) {
if (!$option_value['subtract']) {...

Kindly help me solve this issue, it would be a great favor.
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-06-09T17:32:38+00:00Added an answer on June 9, 2026 at 5:32 pm

    Open system/library/cart.php

    Find this code around lines 67-69

    if ($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $quantity))) {
        $stock = false;
    }
    

    and either remove them, comment them out or change false to true

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

Sidebar

Related Questions

Friends i am stuck with a strange issue and i need your suggests to
I'm having a puzzle contest with my friends, and I'm stuck on this problem:
Basically I need your advice my good stack friends :D For the last six
Friends, I have a strange need and cannot think my way through the problem.
One of my friends raised this problem to me. I was stuck because I
Hello stack overflow I need help with this problem. Ok, I have a flat
Friends its really giving me a great head ache about the problem I am
Friends, I like to know using which version of Android SDK we can develop
I have a problem selecting 6 random friends This is the query I've got
I'm stuck at a point in making mutual friends code for my website. I

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.