Post by Simplicity » Mon May 14, 2012 4:46 am

Make product OUT OF STOCK while you still have this product in warehouse, etc.

It would be useful if one could change product status without changing it's quantity. Let's say, you have stock on hand, but due to some issues (awaiting for printed labels, paint to dry, etc.) you can't sell it just now.

At this time the only way is to make it "minus something" (-368) or completely hide it from visitors.

New member

Posts

Joined
Fri Mar 11, 2011 6:26 am

Post by straightlight » Mon May 14, 2012 4:54 am

I'm not sure I fully understand this request. While I do understand regarding the changing value of quantity to set an out of stock product isn't really reassuring, isn't there already a stock / not in stock drop-down option from the admin - > catalog - > products page ? (v1.5.2.1)

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by GoGo OpenCart » Mon May 14, 2012 5:25 am

straightlight wrote:isn't there already a stock / not in stock drop-down option from the admin - > catalog - > products page ? (v1.5.2.1)
Yeap, there is, but that one only "kicks in" when the product's quantity is 0 or less.

@Simplicity: I wrote you a PM, so please check it.

See all my extensions: https://www.opencart.com/index.php?rout ... 20OpenCart


User avatar
Active Member

Posts

Joined
Mon Nov 14, 2011 11:30 pm

Post by straightlight » Mon May 14, 2012 6:21 am

I understand.

In database:

Code: Select all

ALTER TABLE `oc_product` ADD `force_out_of_stock` INT(1) NOT NULL DEFAULT '0';
Change oc_ to your real prefix name if it isn't your actual prefix name.

Attachments

v1.5.2.1


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Simplicity » Mon May 14, 2012 8:22 pm

See how it works when come home from work (hope it won't ruin my playground). Yet, I don't like an idea which involves database editing.

There's another few things somehow related to out of stock products. Will try to make it a bit easyer to understand.

1. "Availability date" shouldn't hide product from your store.
2. There should be an option to changes status for items in stock.
3. There should be an option to use "In stock" message together with quantity on hand by default (Availability: 150 in stock).

Image

New member

Posts

Joined
Fri Mar 11, 2011 6:26 am
Who is online

Users browsing this forum: No registered users and 2 guests