ocularmagic Posted December 31, 2002 Posted December 31, 2002 Is there a way to set the admin section so that when products are added by the admin, they are NOT shown in the cart immediately. The way it is now if you add a new product, it shows up in the cart right away. The reason I ask is I'm adding products to our cart but haven't got confirmation on the price yet. It's not a major problem but just thought it might be a nice feature to be able to select whether or not products show up immediately or not. Any suggestions or contributions that anyone knows about? I searched for "default product status" as well as some others but nothing came up. TIA If every member of this board donated $1 to the dev team, that would be over $11,000.00. Don't you think this cart is worth at least a $1????
jficarra Posted December 31, 2002 Posted December 31, 2002 James, You can set the product to "inactive" after you've added it so it won't show up. Go to Admin/Catalog/Categories-products then navigate to the product you want to set inactive. Then, click the red dot under the Status column. Your product will not show up in the store. -Jim
ocularmagic Posted December 31, 2002 Author Posted December 31, 2002 Thanks Jim, that's what I'm currently doing but thought it just might be a nice feature to be able to select whether or not it is automatically displayed or not. We have nothing close to a large customer base, but for big shops that have a lot of visitors, if you enter a product without a price and someone just happens to see it during that brief period it's active, it might cause some problems. Thanks for the suggestion and the fast reply. If every member of this board donated $1 to the dev team, that would be over $11,000.00. Don't you think this cart is worth at least a $1????
burt Posted December 31, 2002 Posted December 31, 2002 Go into PHPMyadmin and set the products.products_status to default 0
ocularmagic Posted December 31, 2002 Author Posted December 31, 2002 Thanks Gary, but when I checked, it's already set to default 0. I tried setting it to 1 and still no change. Thanks though. If every member of this board donated $1 to the dev team, that would be over $11,000.00. Don't you think this cart is worth at least a $1????
jficarra Posted December 31, 2002 Posted December 31, 2002 James, I did some research...the In Stock/Out of Stock options when adding a new product is the same database field as making the product active/inactive. So, there's no sense in adding a new set of radio buttons. As you stated, the default in the database is 0, but the trick is changing the new products page to have the Out of Stock set as default instead of In Stock. I just tried this and it seems to work. Go to /admin/categories.php on on or around line 374 you'll see the <td> tags for the products status. There is a function tep_draw_radio_field() which is called twice to draw the radio buttons with the checked value. The In Stock has a parameter $in_status and the Out of STock has a parameter $out_status. Switch this and try it then. Good Luck.
ocularmagic Posted December 31, 2002 Author Posted December 31, 2002 I found it. For anyone that is interested. In admin/categories.php around line 445 Change: switch ($pInfo->products_status) { case '0': $in_status = false; $out_status = true; break; case '1': default: $in_status = true; $out_status = false; } To: switch ($pInfo->products_status) { case '0': $in_status = false; $out_status = true; break; case '1': $in_status = true; $out_status = false; break; default: $in_status = false; $out_status = true; } Hope it helps someone. If every member of this board donated $1 to the dev team, that would be over $11,000.00. Don't you think this cart is worth at least a $1????
ocularmagic Posted December 31, 2002 Author Posted December 31, 2002 Thanks Jim, looks like we found two different solutions at the exact same time. At least someone who wants to do this in the future can pick which one they want to use. Thanks again. If every member of this board donated $1 to the dev team, that would be over $11,000.00. Don't you think this cart is worth at least a $1????
Recommended Posts
Archived
This topic is now archived and is closed to further replies.