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

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-01-2009, 11:29 AM
 
pfarcus pfarcus is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 179
 

Default /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>*}
__________________
CDSEO PRO
4.1.11 PRO
Dynamic images by xcartmod.com
X-Cart CSSTemplate/Skin for v4.1.11 PRO
Reply With Quote
  #2  
Old 02-01-2009, 11:30 AM
 
pfarcus pfarcus is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 179
 

Default Re: /main/product_details.tpl Fill in all the fields error

EDITED
see above
__________________
CDSEO PRO
4.1.11 PRO
Dynamic images by xcartmod.com
X-Cart CSSTemplate/Skin for v4.1.11 PRO
Reply With Quote
  #3  
Old 02-01-2009, 12:32 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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]
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 06:05 PM.

   

 
X-Cart forums © 2001-2020