Page 1 of 1
Can you set new product listings to 'disabled' by default
Posted: Tue Jan 31, 2012 8:30 pm
by kingmonkey
Hi all, can anyone tell me how I can set new product listings to 'disabled' by default so they do not automatically display. I'm assuming it involves playing around with the php files but I'm a complete novice to this so any direction would be most appreciated. I'm running Version 1.5.1.3
Thank you in advance!
Re: Can you set new product listings to 'disabled' by defaul
Posted: Tue Jan 31, 2012 10:22 pm
by amdev
Open
catalog/view/them/Your-template/template/product/category.tpl
Find
Code: Select all
<script type="text/javascript"><!--
Put this code after.
Re: Can you set new product listings to 'disabled' by defaul
Posted: Tue Jan 31, 2012 10:29 pm
by Qphoria
amdev wrote:Open
catalog/view/them/Your-template/template/product/category.tpl
Find
Code: Select all
<script type="text/javascript"><!--
Put this code after.
LOL WTF? did you even read the question? This will NOT do what he wants. This is completely unrelated.
Re: Can you set new product listings to 'disabled' by defaul
Posted: Tue Jan 31, 2012 10:30 pm
by Qphoria
kingmonkey wrote:Hi all, can anyone tell me how I can set new product listings to 'disabled' by default so they do not automatically display. I'm assuming it involves playing around with the php files but I'm a complete novice to this so any direction would be most appreciated. I'm running Version 1.5.1.3
Thank you in advance!
Easiest way would be to set the date available for the product to a future date.
Or if you want to default the status to "Disabled" instead of "Enabled" you can do this
1. EDIT: admin/controller/catalog/product.php
2. FIND:
3. REPLACE WITH:
Re: Can you set new product listings to 'disabled' by defaul
Posted: Wed Feb 01, 2012 1:06 pm
by kingmonkey
Hi Qphoria I tried to edit the file: admin/controller/catalog/product.php by replacing the code: $this->data['status'] = 1. but this particular code does not seem to exist in the file. I am running Version 1.5.1.3. Any ideas?
Thanks for your help! Much appreciated
Re: Can you set new product listings to 'disabled' by defaul
Posted: Wed Feb 01, 2012 1:10 pm
by markisonfire
Qphoria wrote:kingmonkey wrote:Hi all, can anyone tell me how I can set new product listings to 'disabled' by default so they do not automatically display. I'm assuming it involves playing around with the php files but I'm a complete novice to this so any direction would be most appreciated. I'm running Version 1.5.1.3
Thank you in advance!
Easiest way would be to set the date available for the product to a future date.
Or if you want to default the status to "Disabled" instead of "Enabled" you can do this
1. EDIT: admin/controller/catalog/product.php
2. FIND:
3. REPLACE WITH:
Will this only affect new products, or will it default all current items to "Disabled"?
Re: Can you set new product listings to 'disabled' by defaul
Posted: Sat Feb 04, 2012 4:52 am
by Qphoria
markisonfire wrote:Qphoria wrote:kingmonkey wrote:Hi all, can anyone tell me how I can set new product listings to 'disabled' by default so they do not automatically display. I'm assuming it involves playing around with the php files but I'm a complete novice to this so any direction would be most appreciated. I'm running Version 1.5.1.3
Thank you in advance!
Easiest way would be to set the date available for the product to a future date.
Or if you want to default the status to "Disabled" instead of "Enabled" you can do this
1. EDIT: admin/controller/catalog/product.php
2. FIND:
3. REPLACE WITH:
Will this only affect new products, or will it default all current items to "Disabled"?
new products only
Re: Can you set new product listings to 'disabled' by defaul
Posted: Sat Feb 04, 2012 4:52 am
by Qphoria
kingmonkey wrote:Hi Qphoria I tried to edit the file: admin/controller/catalog/product.php by replacing the code: $this->data['status'] = 1. but this particular code does not seem to exist in the file. I am running Version 1.5.1.3. Any ideas?
Thanks for your help! Much appreciated
You are looking in "catalog/controller/product/product.php"
You need to be looking in "admin/controller/catalog/product.php"
Re: Can you set new product listings to 'disabled' by defaul
Posted: Sat Feb 04, 2012 1:00 pm
by kingmonkey
Hi Qphoria, thank you so much for your help. You've just help to save this project!
Re: Can you set new product listings to 'disabled' by defaul
Posted: Tue Feb 14, 2012 7:26 pm
by saliansanjay
HI All,
Can any one tell if i want to set the product end date so that on that end date automatic the product will get Disable through admin.
I tired to put an extra feild saying "Date will not available" in admin i went through success but can any one help me in setting up the script for end date for that product.
As i want that product to not display in Front Store after the given date in "Date will not available" Feild.
It will be so nice of you if any one help me.
I'm ready to pay for this extention also i any one develop it for me.
Regards
Sanjay Salian
Re: Can you set new product listings to 'disabled' by defaul
Posted: Thu Jun 07, 2012 10:09 pm
by Fahrenheit
I am looking for the same module -> disable product after date. I may write something if I can't locate one.
EDITED:
I found this. Haven't tried it, but it looks promising.
http://www.opencart.com/index.php?route ... ght&page=2
Re: Can you set new product listings to 'disabled' by defaul
Posted: Fri Jun 08, 2012 12:17 am
by rph
For people looking into the original question of setting a product to disabled by default
Admin Enhancement Suite allows you to do this.