Guest camsides Posted December 10, 2006 Share Posted December 10, 2006 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? Quote Link to comment Share on other sites More sharing options...
roban Posted December 10, 2006 Share Posted December 10, 2006 My guess is that you can add them in modules/gateway/your gateway/form.php Quote Link to comment Share on other sites More sharing options...
Guest camsides Posted December 11, 2006 Share Posted December 11, 2006 i'm not seeing a form.php in either the authorize.net or paypal folder, any suggestions? Quote Link to comment Share on other sites More sharing options...
markscarts Posted December 11, 2006 Share Posted December 11, 2006 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 Quote Link to comment Share on other sites More sharing options...
Guest camsides Posted December 11, 2006 Share Posted December 11, 2006 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! Quote Link to comment Share on other sites More sharing options...
markscarts Posted December 11, 2006 Share Posted December 11, 2006 post the code from gateway.tpl here, and which skin are you using? To clarify, post the entire code from that file here, use the code button (#) Also, better show me the gateway.inc.php code as well . . . Quote Link to comment Share on other sites More sharing options...
Guest camsides Posted December 11, 2006 Share Posted December 11, 2006 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"); Quote Link to comment Share on other sites More sharing options...
markscarts Posted December 11, 2006 Share Posted December 11, 2006 hmmm, your files were heavily modded already, evidently . . . gateway.tpl file should not contain html tags, body tags, head tags, etc. as this is a simple html snippet pasted into global/cart.tpl. I will go over these files now and contacting you via PM regarding the problem. Quote Link to comment Share on other sites More sharing options...
Guest camsides Posted December 12, 2006 Share Posted December 12, 2006 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! Quote Link to comment Share on other sites More sharing options...
markscarts Posted December 12, 2006 Share Posted December 12, 2006 you're welcome :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.