View Single Post
  #22  
Old 04-14-2005, 12:12 PM
 
jb5ep jb5ep is offline
 

Advanced Member
  
Join Date: Apr 2005
Location: U.K.
Posts: 65
 

Default

Has anyone tried this with 4.0.13? Looking at the 2 changes:

1. products.tpl

I changed this:

Code:
<SELECT id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}> {section name=quantity loop=$mq start=$start_quantity} <OPTION value="{%quantity.index%}" {if $smarty.get.quantity eq %quantity.index%}selected{/if}>{%quantity.index%}</OPTION> {/section} </SELECT>

to this:

Code:
<input name=amount type="text" value="{$product.min_amount}" size="6" maxlength="4">

That appears to work no probs. BUT...

2. form_validation.tpl

I replaced the entire contents of this file with the suggestion in zilker's post of Sun Feb 13, 2005

The problem...

Whenever I now submit the form to 'add to cart', I get the Jscript error "document.orderform.minamount.value' is null or not an object.

Has anyone else had any luck making this mod on 4.0.13?

Cheers,
JB
__________________
X-Cart 4.0.17
ezUpsell
PHP 4.4.1
MySQL 4.0.25-standard
Apache 1.3.34
Linux
Reply With Quote