Page 1 of 1
Disable "Quantity" in Options and Discount (need help)
Posted: Mon Aug 13, 2012 9:26 pm
by alikhan99
Friends I have no Stock issue for my products therefore i would like to know how to disable
"Stocks" and also the
"Quantity" field in Product Options... for no reason i have to input some numbers there every time
Along with that in the discount field I would like to make it fix for all products based on
percentage somehow. i.e. for 10 or more products
10% discount and for 20 or more products
25% Discount.
Friends please help and guide me how to do that, it would be a big favor.... thanks
Re: Disable "Quantity" in Options and Discount (need help)
Posted: Wed Aug 15, 2012 6:29 am
by alikhan99
Quite sad to see when a question is posted ether it gets an irrelevant reply or no reply unless some person offers $$$

so far only 1 of my question have been responded and correctly
Re: Disable "Quantity" in Options and Discount (need help)
Posted: Wed Aug 15, 2012 7:35 am
by asphole
Cant you just set 'Display Stock: NO' in settings and then set the quantity to 10,000 or higher?
I think there may be a mod that does point 2 but by default in OC you would have to add these manually on each product.
PS:I'm sure when someone who can answer your question sees them, they will try and help but please remember most people helping on here are also running their own stores and help willingly when they have time. Accusing them/us of only helping when money is offered will likely offend some people.
As this is a free cart everyone using it is saving money, you are of course free to spend some of the savings paying for instant support on many freelance websites. Free support isn't always the quickest.
Good luck.
Re: Disable "Quantity" in Options and Discount (need help)
Posted: Thu Aug 16, 2012 5:11 am
by alikhan99
asphole wrote:Cant you just set 'Display Stock: NO' in settings and then set the quantity to 10,000 or higher?
I think there may be a mod that does point 2 but by default in OC you would have to add these manually on each product.
PS:I'm sure when someone who can answer your question sees them, they will try and help but please remember most people helping on here are also running their own stores and help willingly when they have time. Accusing them/us of only helping when money is offered will likely offend some people.
As this is a free cart everyone using it is saving money, you are of course free to spend some of the savings paying for instant support on many freelance websites. Free support isn't always the quickest.
Good luck.
thanks for the help asphole, but all my stock settings are already on "NO" including Display Stock. still the problem is there. anyways i found the solution and i hope this will help all others
File: \system\library\cart.php [Find this code around lines 67-69]
Code: Select all
if ($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] < $quantity))) {
$stock = false;
}
Remove it or comment it out then there is no need to insert quantity for product options anymore.
......
I never want to offend anyone but this is what i observed and including many who PM me as well. In all the questions i have ever asked here only 1 got the correct response plus your response as well ..... Thank you my friend
Re: Disable "Quantity" in Options and Discount (need help)
Posted: Thu Aug 16, 2012 7:09 am
by asphole
Im glad you got it sorted. I know it can be frustrating when there is nowhere to turn for answers so all I would say is to make sure you give as much information as possible when posting a question. Example of any errors/page/code/OC version etc as I have noticed it is usually the questions that are unclear that go unanswered. If you havent had a reply, just bump it in case it got missed.
Anyway stick with it as there a lot of people on here ready and willing to help when time permits (which is why giving as much info as possible to start with always helps.)
Best of luck.
Re: Disable "Quantity" in Options and Discount (need help)
Posted: Fri Aug 17, 2012 9:42 pm
by Avvici
alikhan99 wrote:Quite sad to see when a question is posted ether it gets an irrelevant reply or no reply unless some person offers $$$

so far only 1 of my question have been responded and correctly
There are many questions to answer on the forum. Some, probably most advice is offered free. Other advice and "fixes" require more attention which might dictate charging a fee. In the end, sometimes it takes a little while to get a valid response. We are glad that you figured it out
