Jump to content

gateway page in checkout


Guest camsides

Recommended Posts

Guest camsides

basically what i want to do is have the paypal logo and visa/mc logos on the gateway chooser page, instead of the form buttons to paypal and authorize.net, any ideas? anyone doen this?

Link to comment
Share on other sites

This has to be coded in the skin, skins/xx/styleTemplates/content/gateway.tpl

					<!-- BEGIN: gateways_true -->

					<tr>

						<td class="{TD_CART_CLASS}">{VAL_GATEWAY_DESC}</td>

						  <td width="50" align="center" class="{TD_CART_CLASS}">

						<input name="gateway" type="radio" value="{VAL_GATEWAY_FOLDER}" {VAL_CHECKED} />

						</td>

					</tr>

					<!-- END: gateways_true -->

That creates a loop to list all yopur gateways of choice. You need to code an image in there. Best way is to have images for each gateway in the gateway folder, and code this to show for each gateway in the loop in includes/content/gateway.inc.php

If you are unsure how to go about this, you can save time if able to find the free mod at cubecart.org

Link to comment
Share on other sites

Guest camsides

ok, i applied the mod you sent me, but when i did a test, instead of going to the page where you choose your between authorize.net and paypal, it automatically redirected me to authorize.net.

I restored the files yet it still does this weird re-direct, how is that possible? I checked it before I applied the mod and I was getting the standard gateway chooser with radio buttons, now it just re-dierects. Help!

Link to comment
Share on other sites

Guest camsides

it's a custom skin, originally based on killer. here is gateway.tpl :

<!-- BEGIN: gateway -->



<html>

<head>

  <title></title>

</head>



<body>

  <div class="boxContent">

	<span class="txtContentTitle">{LANG_PAYMENT}</span>



	<div style="text-align: center; height: 25px;">

	  <div class="cartProgress">

		{LANG_CART} » {LANG_ADDRESS} » <span class="txtcartProgressCurrent">{LANG_PAYMENT}</span> » {LANG_COMPLETE}

	  </div>

	</div><!-- BEGIN: cart_false -->



	<p>{LANG_CART_EMPTY}</p><!-- END: cart_false -->

	<!-- BEGIN: cart_true -->



	<div style="text-align: center">

	  <form action="{VAL_FORM_ACTION}" method="{val_form_method}" name="gateway" target="{VAL_TARGET}" id="gateway">



	<!-- BEGIN: choose_gate -->



<p>{LANG_CHOOSE_GATEWAY}</p>



<table width="300" border="0" align="center" cellspacing="0" cellpadding="3">



<!-- BEGIN: gateways_true -->



<tr>



<td align="left" class="{TD_CART_CLASS}"><img src="{VAL_GATEWAY_LOGO}" /></td>



<td width="100" class="{TD_CART_CLASS}">{VAL_GATEWAY_DESC}</td>



<td width="50" align="center" class="{TD_CART_CLASS}">



<input name="gateway" type="radio" value="{VAL_GATEWAY_FOLDER}" {VAL_CHECKED} />



</td>



</tr>



<!-- END: gateways_true -->



<tr>



<td colspan="3" align="left">{LANG_COMMENTS}</td>



</tr>



<tr align="right">



<td colspan="3"><textarea name="customer_comments" cols="35" rows="3" class="textbox">{VAL_CUSTOMER_COMMENTS}</textarea></td>



</tr>



<!-- BEGIN: gateways_false -->



<tr>



<td>{LANG_GATEWAYS_FALSE}</td>



</tr>



<!-- END: gateways_false -->



</table>



<!-- END: choose_gate -->		

		<!-- BEGIN: transfer -->

		<!-- BEGIN: auto_submit-->



		<p>{LANG_TRANSFERRING}</p>



		<p><img src="skins/{VAL_SKIN}/styleImages/progress.gif" alt="" title="" onload="submitDoc('gateway');"></p><!-- END: auto_submit-->

		<!-- BEGIN: manual_submit-->



		<p align="left">{LANG_FORM_TITLE}</p>{FORM_TEMPLATE} <!-- END: manual_submit-->

		 {FORM_PARAMETERS} <!-- END: transfer -->



		<p><a href="java script:submitDoc('gateway');" class="txtCheckout">{LANG_CHECKOUT}</a></p>

	  </form>

	</div><!-- END: cart_true -->

  </div><!-- END: gateway -->

</body>

</html>




and here is the relevent spot in gateway.inc.php, let me knwo i you need the whole thing.


	$gateway->assign("VAL_GATEWAY_DESC",$module['desc']);

			$gateway->assign("VAL_GATEWAY_FOLDER",$gatewayModules[$i]['folder']);

			$gateway->assign("VAL_GATEWAY_LOGO","admin/modules/gateway/".

			$gatewayModules[$i]['folder']."/logo.gif");

Link to comment
Share on other sites

Guest camsides

took out the extra tags, actually replaced those 2 files with the ones from killer, what the skin is based on and re-did the mod and voila! works like a charm, thanks markscarts!

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
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...