Post by kingmonkey » Tue Jan 31, 2012 8:30 pm

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!

Newbie

Posts

Joined
Tue Jan 31, 2012 8:23 pm

Post by amdev » Tue Jan 31, 2012 10:22 pm

Open

catalog/view/them/Your-template/template/product/category.tpl

Find

Code: Select all

<script type="text/javascript"><!--
Put this code after.

Code: Select all

		$.cookie('display', 'grid');

ร้านค้าออนไลน์
OpenCart Thailand Support Forum
How to Upgrade oc1.5 to 2.0.1.1
Upgrading OpenCart From v.1.4 or v.1.5 to V.2.2 Step by step


User avatar
Active Member

Posts

Joined
Fri Nov 27, 2009 3:40 pm
Location - Bangkok - Thailand

Post by Qphoria » Tue Jan 31, 2012 10:29 pm

amdev wrote:Open

catalog/view/them/Your-template/template/product/category.tpl

Find

Code: Select all

<script type="text/javascript"><!--
Put this code after.

Code: Select all

		$.cookie('display', 'grid');
LOL WTF? did you even read the question? This will NOT do what he wants. This is completely unrelated.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Tue Jan 31, 2012 10:30 pm

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:

Code: Select all

$this->data['status'] = 1;
3. REPLACE WITH:

Code: Select all

$this->data['status'] = 0;

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by kingmonkey » Wed Feb 01, 2012 1:06 pm

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

Newbie

Posts

Joined
Tue Jan 31, 2012 8:23 pm

Post by markisonfire » Wed Feb 01, 2012 1:10 pm

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:

Code: Select all

$this->data['status'] = 1;
3. REPLACE WITH:

Code: Select all

$this->data['status'] = 0;
Will this only affect new products, or will it default all current items to "Disabled"?

New member

Posts

Joined
Sat Oct 29, 2011 8:33 am

Post by Qphoria » Sat Feb 04, 2012 4:52 am

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:

Code: Select all

$this->data['status'] = 1;
3. REPLACE WITH:

Code: Select all

$this->data['status'] = 0;
Will this only affect new products, or will it default all current items to "Disabled"?
new products only

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Qphoria » Sat Feb 04, 2012 4:52 am

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"

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by kingmonkey » Sat Feb 04, 2012 1:00 pm

Hi Qphoria, thank you so much for your help. You've just help to save this project!

Newbie

Posts

Joined
Tue Jan 31, 2012 8:23 pm

Post by saliansanjay » Tue Feb 14, 2012 7:26 pm

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

Newbie

Posts

Joined
Wed Jan 04, 2012 2:31 pm

Post by Fahrenheit » Thu Jun 07, 2012 10:09 pm

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

Newbie

Posts

Joined
Fri Mar 09, 2012 8:39 pm

Post by rph » Fri Jun 08, 2012 12:17 am

For people looking into the original question of setting a product to disabled by default Admin Enhancement Suite allows you to do this.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: No registered users and 33 guests