X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing and adding new features (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Make Product Status default to Available for Sale (https://forum.x-cart.com/showthread.php?t=43878)

JRC 11-25-2008 11:34 AM

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>


###


All times are GMT -8. The time now is 06:53 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.