Forums / Bug Reports / [Done v1.3.9] Validation error in Shipping Estimator

[Done v1.3.9] Validation error in Shipping Estimator

Locked

Started by torvista on 10 Nov 2009, 5:42 PM · Views: 1,219

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
10 Nov 2009, 5:42 PM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,878
Plugin Contributions:
7

[Done v1.3.9] Validation error in Shipping Estimator

Hi
(for v1.38a.)

In
catalog\includes\templates\CUSTOM\templates\tpl_modules_shipping_estimator.php
I get a validation error:

Error: duplicate specification of attribute "name"

this is the browser html:

<label class="inputLabel" for="seAddressPulldown">Address:</label>
<select name="address_id" onchange="return shipincart_submit();" name="seAddressPulldown">

and sure enough there are two names declared.

This is the template:

<label class="inputLabel" for="seAddressPulldown"><?php echo CART_SHIPPING_METHOD_ADDRESS; ?></label>
<?php echo zen_draw_pull_down_menu('address_id', $addresses_array, $selected_address, 'onchange="return shipincart_submit();" name="seAddressPulldown"'); ?>

and thats about as far as I go...too many parameters here that I have only vague notions about.

regards
Steve

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

11 Nov 2009, 5:01 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: [Done v1.3.9] Validation error in Shipping Estimator

<?php echo zen_draw_pull_down_menu('address_id', $addresses_array, $selected_address, 'onchange="return shipincart_submit();" [B]name[/B]="seAddressPulldown"'); ?>
```should be:```
<?php echo zen_draw_pull_down_menu('address_id', $addresses_array, $selected_address, 'onchange="return shipincart_submit();" [B]id[/B]="seAddressPulldown"'); ?>

ie: name="seAddressPulldown" becomes: id="seAddressPulldown"

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.