View Single Post
  #7  
Old 04-12-2006, 04:28 PM
  ryno's Avatar 
ryno ryno is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: Tempe, Az
Posts: 30
 

Default

Okay - here's the deal.


Don't worry about include/product_modify.php
Leave it alone - it does what it's supposed to.

Edit: /yourSkin/main/product_details.tpl

Instead of this:
Code:
<tr> {if $productids ne ''}<td width="15" class="TableSubHead"><input type="checkbox" value="Y" name="fields[descr]" /></td>{/if} <td class="FormButton" valign="top" nowrap>{$lng.lbl_short_description}* :</td> <td class="ProductDetails"> <textarea name="descr" cols="45" rows="8" class="InputWidth">{$product.descr|escape:"html"}</textarea> {if $top_message.fillerror ne "" and $product.descr eq ""}<font class="Star">&lt;&lt;</font>{/if} </td> </tr>

I replaced that whole row with a hidden field:
Code:
<input type=hidden value=" " name="descr" />

So the textarea doesn't have to be a textarea, its just that the variable "descr" just has to have SOME value - hence the 'space' in the value attribute.

The BEST way to do this, would be to go hack out every insert and validation rule for this field but - time is money and money talks so... It's semi-ugly but extremely effective.

rYno
__________________
gold v4.0.18 -> live
...working on another soon
Reply With Quote