Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Make Product Status default to Available for Sale
 
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features
 
Thread Tools Search this Thread
  #1  
Old 11-25-2008, 11:34 AM
 
JRC JRC is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 38
 

Default Make Product Status default to Available for Sale

When adding new products, the default status is set to Disabled.

To make the default status "Available for sale" when adding a new product, modify these two files:

..\admin\skin1\main\product_details.tpl
..\skin1\main\product_details.tpl


=== CHANGE ===
<select name="forsale">
<option value="Y"{if $product.forsale eq "Y"} selected="selected"{/if}>{$lng.lbl_avail_for_sale}</option>
<option value="H"{if $product.forsale eq "H"} selected="selected"{/if}>{$lng.lbl_hidden}</option>
<option value="N"{if $product.forsale ne "Y" && $product.forsale ne "H" && ($product.forsale ne "B" || not $active_modules.Product_Configurator)} selected="selected"{/if}>{$lng.lbl_disabled}</option>


=== TO ===
<select name="forsale">
<option value="Y"{if $product.forsale eq "Y" || $product.forsale eq ""} selected="selected"{/if}>{$lng.lbl_avail_for_sale}</option>
<option value="H"{if $product.forsale eq "H"} selected="selected"{/if}>{$lng.lbl_hidden}</option>
<option value="N"{if $product.forsale ne "Y" && $product.forsale ne "H" && $product.forsale ne "" && ($product.forsale ne "B" || not $active_modules.Product_Configurator)} selected="selected"{/if}>{$lng.lbl_disabled}</option>


###
__________________
X-Cart Pro 4.1.12 | Linux | MySQL
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing and adding new features


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:05 PM.

   

 
X-Cart forums © 2001-2018