Jump to content

Use images instead of text in payment options screen


Guest metallic07039

Recommended Posts

Guest metallic07039

The text is very boring.

I use regular PayPal and PayPal Pro.

I want to get rid of the text and put PayPal's logo for the PayPal and an image of credit cards for the PayPal Pro.

Any thoughts on how to do this?

Link to comment
Share on other sites

Guest metallic07039

I did a search at the cubecart.org forum and nothing.

If you know where it might be it would be great if you can link me.

Thanks.

Link to comment
Share on other sites

Guest metallic07039

I actually was able to mod this one myself.

If anyone is interested on how I did that just PM me and i'll try to explain.

paymentmodli5.gif

Link to comment
Share on other sites

Untested:

*********************************************

In skins/your skin/styleTemplates/content/gateway.tpl

*********************************************

Change the relevant part to:

-------------------------------------

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

*********************************************

In includes/content/gateway.inc.php

*********************************************

Find:

-------------------------------------

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

Add after:

-------------------------------------

$gateway->assign("VAL_GATEWAY_LOGO","admin/modules/gateway/".$gatewayModules[$i]['folder']."/logo.gif");

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