Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Removing zero stock items

Removing zero stock items

Locked

Views: 2,337

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
9 Apr 2008, 6:48 PM
#1
rob_adrenalfuel avatar

rob_adrenalfuel

New Zenner

Join Date:
Apr 2008
Posts:
11
Plugin Contributions:
0

Removing zero stock items

Hi there,

I'm new to this cart so this may be an oblivious question.

Can I set up so that any zero stock items are removed from the store? See I sell unique one off items so once an item has sold I need it off the site.

cheers for your tiem
Rob

9 Apr 2008, 7:26 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Removing zero stock items

This will remove from being displayed but not from the Database as this must be done manually or scripted outside of Zen Cart to be automatic

admin > config > stock > Products status in Catalog when out of stock should be set to > set to "0"

10 Apr 2008, 8:37 AM
#3
rob_adrenalfuel avatar

rob_adrenalfuel

New Zenner

Join Date:
Apr 2008
Posts:
11
Plugin Contributions:
0

Re: Removing zero stock items

Cheers mate, think I can work with zen then.

Got a lot of reading to do!

12 Apr 2008, 6:28 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing zero stock items

You might leave those on the site in Sold Out form so people see they gotta buy fast to get them ... :smile:

29 Dec 2008, 6:17 AM
#5
taogem avatar

taogem

Zen Follower

Join Date:
Jun 2008
Posts:
165
Plugin Contributions:
0

Re: Removing zero stock items

I have been leaving my sold out items showing so as visitors see that activity.

Now I have quite a few and would like to know how to delete many of these the proper way.

Not sure if just deleting the item from within my admin, and also deleting the image in my database associated with it will cover everything?

If so, where is the correct image folder for deleting those images?

If more needs to be done at the database, could someone please elaborate?

Thank you :smile:

30 Dec 2008, 7:17 AM
#6
mamasylvia avatar

mamasylvia

Zen Follower

Join Date:
Feb 2008
Posts:
379
Plugin Contributions:
0

Re: Removing zero stock items

You can definitely delete the item from Admin -- when you click on a category and see the list of products, the red X on the right side is to delete. You don't have to delete the image in order to delete the product.

I don't know of a faster way to do it than one-at-a-time, but maybe Linda will jump in and enlighten us. ;)

30 Dec 2008, 10:12 AM
#7
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Removing zero stock items

Rob,

most likely your images are stored in the

yoursite.com/your_cart_installation/images/products/

folder.

As far as I know there is no easier way in deleting individual products than the method explained by Sylvia.

Frank

https://www.frnt.org/zencart

30 Dec 2008, 4:40 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Removing zero stock items

When you delete an image via the admin, ie: clicking on the red X and confirming your intent, the corresponding image file is also deleted, as long as the folder in which the images are stored is writable by the webserver.

And the default location for product images is the /images/ folder.

30 Dec 2008, 5:40 PM
#9
taogem avatar

taogem

Zen Follower

Join Date:
Jun 2008
Posts:
165
Plugin Contributions:
0

Re: Removing zero stock items

DrByte:

When you delete an image via the admin, ie: clicking on the red X and confirming your intent, the corresponding image file is also deleted, as long as the folder in which the images are stored is writable by the webserver.

And the default location for product images is the /images/ folder.

That was what I was curious about. Seemed like I had heard that there was an extra step within the database regarding images, and that letting them build up and not deleting them would cause the cart to load slower over time.

Any way....... Thank you for clearing that up :smile:

30 Dec 2008, 7:30 PM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Removing zero stock items

It wouldn't create a database issue per se, but could cause a filesystem issue:
Having images "left behind" is not going to directly slow the server down just because they exist; however, if you have a huge amount of files in any single folder, you may have difficulty seeing that folder's contents via your FTP program. And of course use up disk space in your hosting account.

30 Dec 2008, 11:00 PM
#11
taogem avatar

taogem

Zen Follower

Join Date:
Jun 2008
Posts:
165
Plugin Contributions:
0

Re: Removing zero stock items

Ok DrByte...

Got it :smile:

Thank you very much again for the response :bigups: