Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shipping Estimator Small Form error


Guest

Recommended Posts

Hi all !

I had the shipping estimator working, but I only ship to the us, (other countries would have to call in) so I made USA the default, unchangeable to calculate the shipping.

so I added to the code

		if(CARTSHIP_SHOWCDD == 'true'){
	$ShipTxt.='<tr><td class="main"><b>USA</b>'. tep_draw_hidden_field('country','223');
	}

 

wich brings me back with

			<tr>
			<td class="main"><b>USA</b><input type="hidden" name="country" value="223">

now when i try to calculate the browser seems to not send the country in the form and so it doesn't calculate anything :(

 

anyone could give an Idea? I don't want to put back drop down list with only one country to choose as it looks stupid...

 

here is the code it comes back with as of now... maybe i have some html issues:

<tr>
<td class="boxText"><form name="estimator" action="http://www.brazilianhotstuff.com/shopping_cart.php" method="post"><input type="hidden" name="sid" value="">
	<table>
		<tr>
			<td colspan="3" class="main"> <b>Product(s) Qnt :</b> 1</td>
		</tr>
		<tr>
			<td class="main"><b>USA</b><input type="hidden" name="country" value="223"> <b>ZIP Code:</b> <input type="text" name="zip_code" value="" size="5"></td> 
			<td style="padding-right:8" align="right"><a href="_" onClick="return shipincart_submit('');"><img src="includes/languages/english/images/buttons/button_shipping_estimator.gif" border="0" alt="Update Cart" title="Update Cart"> </a></td>
		</tr>
		<tr>
			<td class="main"><b>Carrier</b></td>
			<td class="main" align="left"><b>Delivery Methods</b></td>
			<td class="main" align="right"><b>Rates</b></td>
		</tr>
		<tr>
			<td colspan="3" class="main"><img src="images/pixel_black.gif" width="100%" height="1" border="0" alt=""></td>
		</tr>
	</table>
</form></td>
</tr>

 

thanks for the help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...