Jump to content

Archived

This topic is now archived and is closed to further replies.

jhande

Duplicate "Product Status" for "Product Discontinued"

Recommended Posts

I had it working with my old 2.2 MS2 shop but have lost those files. Now I can't for the life of me figure it out.

 

What I am trying to do is add a feature in admin panel just like the "Status" for a "Discontinued" feature.

 

I have added a column to the products table and edited admin/categories.php, admin/includes/functions/general.php, language file, etc...

 

I had it working when I make the selection on the product edit page but not the category/product list page, it would change the "Status" in stead.

 

I have tried and tried editing the code but just can't seem to get it correctly.

 

Really need some help with this!!!

 

 

I think the problem resides with this bit of code that I can't seem to duplicate correctly.

 

 if (tep_not_null($action)) {
   switch ($action) {
  case 'setflag':
    if ( ($HTTP_GET_VARS['flag'] == '0') || ($HTTP_GET_VARS['flag'] == '1') ) {
	  if (isset($HTTP_GET_VARS['pID'])) {
	    tep_set_product_status($HTTP_GET_VARS['pID'], $HTTP_GET_VARS['flag']);
	  }

	  if (USE_CACHE == 'true') {
	    tep_reset_cache_block('categories');
	    tep_reset_cache_block('also_purchased');
	  }
    }

 

I even tried this that I found but can't get that to work - http://www.oscmax.com/forums/custom-mods-hacks/28300-discontinued-products.html

 

If the rest of my edited code needs to be posted let me know and I will gladly go through it.


- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Share this post


Link to post
Share on other sites

http://forums.oscommerce.com/topic/393501-make-a-featured-product-module/

 

follow the admin part, use "discontinued" instead of "featured".


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

Thanks Gary!!!

 

 

Can't believe that slipped my mind. :blush:

 

Yeah I can... :wacko:

 

TNX again. :thumbsup:


- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Share this post


Link to post
Share on other sites

×