Jump to content

Checkout - alignment.


cpugeek

Recommended Posts

Ok, so below i have the code for the second page of my checkout :: Confirming the item selection&& i have an alignment problem. i can't get the 'modify order' button on the left && the 'continue shopping' & 'checkout' button on the same line on the rightCan Anyone help? To see the problem live: HERE Checkout :: Step 2 - Confirm your selection

<div id="checkoutForm"><div class="gbBlock gcBackground1">  <h2 class="gbTitle">	{g->text text="Checkout"} :: {g->text text="Step 2 - Confirm your selection"}  </h2></div><table width="80%"><td align="right">{g->text text="All Payments are secured through Paypal.<img src=images/lock.jpg />"}</td></table><div id="checkoutConfirm">	{include file='modules/checkout/templates/CartContents.tpl'}	<table class="checkoutButtonTable checkoutPaymentOptions" width="80%">	  <tr>		<td> </td>  		<td align="">	  <!-- start Continue Shopping button -->	<form action="{g->url}" method="post">	<input type="submit" class="inputTypeSubmit checkoutButton checkoutShoppingButton1" 	name="{g->formVar var="form[action][continueshopping]"}" 	value="{g->text text="Continue shopping"}"/>	</form>	  <!-- end Continue Shopping button -->		</td>		<td align="right" class="checkoutPaymentButtons"> 		  <!-- start modify order button -->		  <form action="{g->url}" method="post">			{g->hiddenFormVars}			<input type="hidden" name="{g->formVar var="controller"}" value="{$tpl.controller}"/>			<input type="hidden" name="{g->formVar var="form[formName]"}" value="{$form.formName}"/>			{if isset($tpl.returnUrl)}<input type="hidden" class="inputTypeSubmit checkoutButton" name="{g->formVar var="form[returnUrl]"}" value="{$tpl.returnUrl}"/>{/if}			<input type="submit" class="inputTypeSubmit checkoutButton" name="{g->formVar var="form[action][modify]"}" value="{g->text text="Modify Order"}"/>		  </form>		  <!-- end modify order button -->		 </td>		 <td>	  <!-- start Donate button -->			  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">			   <form action="https://www.paypal.com/cgi-bin/webscr" method="post">			   <input type="hidden" name="cmd" value="_xclick">			   <input type="hidden" name="business" value="email">			   <input type="hidden" name="item_name" value="Donation">			   <input type="hidden" name="item_number" value="231DONA">			   <input type="hidden" name="no_shipping" value="0">			   <input type="hidden" name="return" value="refurl">			   <input type="hidden" name="cancel_return" value="refurl">			   <input type="hidden" name="cn" value="Notes">			   <input type="hidden" name="currency_code" value="USD">			   <input type="hidden" name="tax" value="0">			   <input type="hidden" name="lc" value="US">			   <input type="hidden" name="bn" value="PP-DonationsBF">			   <input type="submit" name="submit" value="Donate" class="inputTypeSubmit" alt="Donate" />			  </form>	  <!-- end Donate button -->			</td>	  </tr>	  {if $tpl.candownload}	  <tr>		<td align="left" class="checkoutPaymentOptionText">		{g->text text="To download the items selected as a zip file, click the 'Download as zip' button."}		</td>  		<td align="right" class="checkoutPaymentButtons">		  <!-- start download as zip button --> 		  <form action="{g->url}" method="post">			{g->hiddenFormVars}			<input type="hidden" name="{g->formVar var="controller"}" value="{$tpl.controller}"/>			<input type="hidden" name="{g->formVar var="form[formName]"}" value="{$form.formName}"/>			{if isset($tpl.returnUrl)}			<input type="hidden" class="inputTypeSubmit checkoutButton" 				name="{g->formVar var="form[returnUrl]"}" value="{$tpl.returnUrl}"/>{/if}		<input type="hidden" name="{g->formVar var="transactionId"}" value="{$tpl.transactionId}"/>		<input type="hidden" name="{g->formVar var="verify1"}" value="{$tpl.verify1}"/>		<input type="hidden" name="{g->formVar var="verify2"}" value="{$tpl.verify2}"/>			<input type="submit" class="inputTypeSubmit checkoutButton" 				name="{g->formVar var="form[action][downloadzip]"}" 				value="{g->text text="Download as zip"}"/>		  </form>		  <!-- end download as zip button --> 		</td>	  </tr>	  {/if}	  {if isset($tpl.requireTandCs) and $tpl.requireTandCs}	  <tr>		<td align="left" class="checkoutPaymentOptionText">		<span class="checkoutTandCtext">		{g->text text="By continuing you confirm that you have read and agree to the"}		{if isset($tpl.TandCLink)}<a href="{$tpl.TandCLink}" target="_blank"><span class="checkoutLink">{/if}		{g->text text="Terms and Conditions"}		{if isset($tpl.TandCLink)}</span></a>{/if}		</span>		</td>		<td align="right" class="checkoutPaymentButtons"></td>	  </tr>	  {else}	  <tr><td> </td></tr>	  {/if}	{foreach from=$tpl.payments item=payment}	  <tr>		<td align="left" class="checkoutPaymentOptionText">	  {if $payment.interfaceVersion=="1.0"}	  {$payment.paymentText}	  {else}		  {include file=$payment.paymentText}	  {/if}		</td>		<td align="right" class="checkoutPaymentButtons">		  <!-- start checkout button --> 		  {include file=$payment.paymentTemplate}		  <!-- end checkout button --> 		</td>	  </tr>	{/foreach}	{if isset($tpl.showCartPlugins) and $tpl.showCartPlugins}	{foreach from=$tpl.cartplugins key=pluginId item=pluginData}	  <tr>	<td align="left" class="checkoutPaymentOptionText"> </td>	<td align="right" class="checkoutPaymentButtons">	 <form action="{g->url}" method="post">	{g->hiddenFormVars}	<input type="hidden" name="{g->formVar var="controller"}" value="{$tpl.controller}"/>	<input type="hidden" name="{g->formVar var="form[formName]"}" value="{$form.formName}"/>	<input type="hidden" name="{g->formVar var="form[pluginId]"}" value="{$pluginId}"/>	<input type="submit"  class="inputTypeSubmit checkoutButton" name="{g->formVar var="form[action][cartplugin]"}" value="{$pluginData.actionDisplayName}"/>	</form>		</td>	  </tr>	{/foreach}	{/if}  </table></div></div>

Paymentbutton.tpl

 <form action="https://{$payment.paymentVariables.ppurl}/cgi-bin/webscr" method="post">  <input type="hidden" name="cmd" value="_cart" />  <input type="hidden" name="rm" value="2" />  <input type="hidden" name="return" value="{g->url arg1="view=checkoutpaypal.PaymentComplete" forceFullUrl=true}" />    <input type="hidden" name="cancel_return" value="{g->url arg1="view=checkoutpaypal.PaymentCancelled" forceFullUrl=true}" />  <input type="hidden" name="notify_url" value="{g->url arg1="view=checkoutpaypal.IPN" forceFullUrl=true}" />    <input type="hidden" name="upload" value="1" />  <input type="hidden" name="no_shipping" value="2" />  <input type="hidden" name="business" value="{$payment.paymentVariables.paypalname}" />  <input type="hidden" name="currency_code" value="{$payment.paymentVariables.ccode}" />  <input type="hidden" name="invoice" value="{$payment.paymentVariables.transactionId}" />  <input type="hidden" name="lc" value="{g->text text="en_US"}" />  {if !empty($payment.paymentVariables.pprtnbuttontext)}  <input type="hidden" name="cbt" value="{$payment.paymentVariables.pprtnbuttontext}"/>  {/if}  {foreach from=$payment.paymentVariables.ppItems item=item}	<input type="hidden" name="{$item.ppname}" value="{$item.name}" />	<input type="hidden" name="{$item.ppnumber}" value="{$item.number}" />	<input type="hidden" name="{$item.ppamount}" value="{$item.amount}" />	<input type="hidden" name="{$item.ppshipping}" value="{$item.shipping}" />	<input type="hidden" name="{$item.ppquantity}" value="{$item.quantity}" />	  {foreach from=$item.options key=k item=i}		<input type="hidden" name="{$k}" value="{$i}" />	  {/foreach}	  {/foreach}	  <div style="width:200px">  <input type="submit" name="submit" value="Checkout" class="inputTypeSubmit" alt="{g->text text="Pay with PayPal"}" />  </div></form>

Link to comment
Share on other sites

I can't even figure out how to add something to the freaking cart... Am i just slow today or is there nothing that clearly says "add to cart"?

Link to comment
Share on other sites

I think you may have to login first, because I don't see one either :)

Link to comment
Share on other sites

Jhecht:

I can't even figure out how to add something to the freaking cart... Am i just slow today or is there nothing that clearly says "add to cart"?
the payment button is in another file that gets included in the end
Tried creating an account, it wouldn't let me.
it's because i was experiencing problems so i uninstalled it for a while.
The link shows a security error, and I don't know what you mean by "getting" a button, how do you "get" a button?
Justsomeguy: sorry, i should've been clearer i mean 'align'.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...