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!
Thank you in advance!
Open
catalog/view/them/Your-template/template/product/category.tpl
Find
Put this code after.
catalog/view/them/Your-template/template/product/category.tpl
Find
Code: Select all
<script type="text/javascript"><!--
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
LOL WTF? did you even read the question? This will NOT do what he wants. This is completely unrelated.amdev wrote:Open
catalog/view/them/Your-template/template/product/category.tpl
Find
Put this code after.Code: Select all
<script type="text/javascript"><!--
Code: Select all
$.cookie('display', 'grid');
Easiest way would be to set the date available for the product to a future date.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!
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;
Code: Select all
$this->data['status'] = 0;
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
Thanks for your help! Much appreciated
Will this only affect new products, or will it default all current items to "Disabled"?Qphoria wrote:Easiest way would be to set the date available for the product to a future date.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!
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:Code: Select all
$this->data['status'] = 1;
Code: Select all
$this->data['status'] = 0;
new products onlymarkisonfire wrote:Will this only affect new products, or will it default all current items to "Disabled"?Qphoria wrote:Easiest way would be to set the date available for the product to a future date.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!
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:Code: Select all
$this->data['status'] = 1;
Code: Select all
$this->data['status'] = 0;
You are looking in "catalog/controller/product/product.php"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 need to be looking in "admin/controller/catalog/product.php"
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
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
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
EDITED:
I found this. Haven't tried it, but it looks promising.
http://www.opencart.com/index.php?route ... ght&page=2
For people looking into the original question of setting a product to disabled by default Admin Enhancement Suite allows you to do this.
-Ryan
Who is online
Users browsing this forum: No registered users and 33 guests