X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   /main/product_details.tpl Fill in all the fields error (https://forum.x-cart.com/showthread.php?t=45243)

pfarcus 02-01-2009 11:29 AM

/main/product_details.tpl Fill in all the fields error
 
Hi

I commented out some of the shipping related fields at the bottom, but now when I create a product it's saying "Please make sure you have filled in properly all required fields!"

I guess its still thinking its blank even though I commented it out. Can anyone take a look at the code and maybe see whats up?

I'd surly appreciate it!

(EDITED) ok you mean like this? I think its in this somewhere (EDITED)

code here
{*<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[list_price]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_list_price} <span class="Text">({$config.General.currency_symbol})</span></td>
<td class="ProductDetails"><input type="text" name="list_price" size="18" value="{$product.list_price|formatprice|default:$z ero}" /></td>
</tr>*}
code here
{*<tr>
{if $geid ne ''}<td width="15" class="TableSubHead">{if $product.is_variants eq 'Y'} {else}<input type="checkbox" value="Y"

name="fields[avail]" />{/if}</td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_quantity_in_stock}</td>
<td class="ProductDetails">
{if $product.is_variants eq 'Y'}
<b>{$lng.lbl_note}:</b> {$lng.txt_pvariant_edit_note|substitute:"href":$va riant_href}
{else}
<input type="text" name="avail" size="18" value="{if $product.productid eq ""}{$product.avail|default:1000}{else}{$product.av ail}{/if}" />
{if $top_message.fillerror ne "" and $product.avail eq ""}<font class="Star"><<</font>{/if}
{/if}
</td>*}
</tr>
code here
{*<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[low_avail_limit]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_lowlimit_in_stock}</td>
{*<td class="ProductDetails">
<input type="text" name="low_avail_limit" size="18" value="{if $product.productid eq ""}10{else}{ $product.low_avail_limit }{/if}" />
{if $top_message.fillerror ne "" and $product.low_avail_limit le 0}<font class="Star"><<</font>{/if}
</td>
</tr>*}
code here
{*<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[min_amount]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_min_order_amount}</td>
<td class="ProductDetails"><input type="text" name="min_amount" size="18" value="{if $product.productid eq

""}1{else}{$product.min_amount}{/if}" /></td>
</tr>*}
code here
{*<tr>
{if $geid ne ''}<td width="15" class="TableSubHead">{if $product.is_variants eq 'Y'} {else}<input type="checkbox" value="Y"

name="fields[weight]" />{/if}</td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_weight} ({$config.General.weight_symbol})</td>
<td class="ProductDetails">
{if $product.is_variants eq 'Y'}
<b>{$lng.lbl_note}:</b> {$lng.txt_pvariant_edit_note|substitute:"href":$va riant_href}
{else}
<input type="text" name="weight" size="18" value="{ $product.weight|formatprice|default:$zero }" />
{/if}
</td>
code here
</tr>*}

{if $active_modules.RMA ne ''}
<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[return_time]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_return_time}</td>
<td class="ProductDetails"><input type="text" name="return_time" size="18" value="{$product.return_time}" /></td>
</tr>
{/if}

<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[membershipids]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_membership}</td>
<td class="ProductDetails">{include file="main/membership_selector.tpl" data=$product}</td>
</tr>

{*<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[free_tax]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_tax_exempt}</td>
<td class="ProductDetails">
<select name="free_tax"{if $taxes} onchange="javascript: ChangeTaxesBoxStatus();"{/if}>
<option value='N'{if $product.free_tax eq 'N'} selected="selected"{/if}>{$lng.lbl_no}</option>
<option value='Y'{if $product.free_tax eq 'Y'} selected="selected"{/if}>{$lng.lbl_yes}</option>
</select>
</td>
</tr>*}
code here
{if $taxes}
<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[taxes]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_apply_taxes}</td>
<td class="ProductDetails">
<select name="taxes[]" multiple="multiple"{if $product.free_tax eq "Y"} disabled="disabled"{/if}>
{section name=tax loop=$taxes}
<option value="{$taxes[tax].taxid}"{if $taxes[tax].selected gt 0} selected="selected"{/if}>{$taxes[tax].tax_name}</option>
{/section}
</select>
<br />{$lng.lbl_hold_ctrl_key}
{if $usertype eq "P" or $active_modules.Simple_Mode ne ""}<br /><a href="{$catalogs.provider}/taxes.php" class="SmallNote"

target="_new">{$lng.lbl_click_here_to_manage_taxes }</a>{/if}
</td>
</tr>
{/if}
code here
{*<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[free_shipping]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_free_shipping}</td>
<td class="ProductDetails">
<select name="free_shipping">
<option value='Y'{if $product.free_shipping eq 'N'} selected="selected"{/if}>{$lng.lbl_no}</option>
<option value='Y'{if $product.free_shipping eq 'Y'} selected="selected"{/if}>{$lng.lbl_yes}</option>
</select>
</td>
</tr>*}
code here
{*<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[shipping_freight]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_shipping_freight} ({$config.General.currency_symbol})</td>
<td class="ProductDetails">
<input type="text" name="shipping_freight" size="18" value="{$product.shipping_freight|formatprice|defa ult:$zero}" />
</td>
</tr>*}
code here
{*<tr>
{if $geid ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[discount_avail]" /></td>{/if}
<td class="FormButton" nowrap="nowrap">{$lng.lbl_apply_global_discounts}< /td>
<td class="ProductDetails">
<input type="checkbox" name="discount_avail" value="Y"{if $product.productid eq "" || $product.discount_avail eq "Y"} checked="checked"{/if}

/>
</td>
</tr>*}

pfarcus 02-01-2009 11:30 AM

Re: /main/product_details.tpl Fill in all the fields error
 
EDITED
see above

balinor 02-01-2009 12:32 PM

Re: /main/product_details.tpl Fill in all the fields error
 
Surround code with code tags, will make it a hell of a lot easier to read :)

Code:

code here

It is done using [code]


All times are GMT -8. The time now is 12:20 AM.

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