xxkylexx Posted August 22, 2006 Share Posted August 22, 2006 Currently, the payment options on step 4 of an order are listed out horizontally. I am wanting to edit the template so that each payment gateway is listed downward, vertically for one per each line. The code in the template shows this: [b]{$LANG.orderpaymentmethod}:[/b] {$gateway}</p> I am unsure how I can add a to this so that it will do what I want (since it only gives the one variable "{$gateway}" to display all gateways). Any ideas? Kyle 0 Quote Link to comment Share on other sites More sharing options...
taylorwilsdon Posted August 22, 2006 Share Posted August 22, 2006 I'm afraid thats where the encrypted PHP becomes problematic. The reason it loops across instead of down is because the results from the mysql query are echoed straight out. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted August 22, 2006 Share Posted August 22, 2006 it can be done though with smarty. Give me a chance tomorrow to look at the smarty debug results and i will see what i can come up with. It might be dirty, but it will work. 0 Quote Link to comment Share on other sites More sharing options...
xxkylexx Posted August 22, 2006 Author Share Posted August 22, 2006 Thanks! Thought for sure there was some way. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted August 22, 2006 Share Posted August 22, 2006 Just so you know, you could even go the really dirty way and just hardcode the html in that part of the template. Its not like you switch gateways that often. All you have to do is view the source of the current html output, then just arrange it how you like. Then paste it in over the $gateway tag. I will still try to look into it later though. 0 Quote Link to comment Share on other sites More sharing options...
xxkylexx Posted August 23, 2006 Author Share Posted August 23, 2006 Any word on this MACscr? 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted August 23, 2006 Share Posted August 23, 2006 ewwwwwwww. Matt put markup in the php files!!! Sorry, cant be done with normal templating because Matt hard coded that area of the form instead of doing a section loop. The only ways to do it now is to do a really dirty str_replace on the output or just hardcode the html as i originally suggested. Thats what i would recommend. {gatewaylist} is actually what you want to replace and its in order-stepthree.tpl 0 Quote Link to comment Share on other sites More sharing options...
xxkylexx Posted August 23, 2006 Author Share Posted August 23, 2006 Found a way this can be done. Just enter a break tag ( ) in the gateway configuration on the Payment option's name. Thanks Chris! 0 Quote Link to comment Share on other sites More sharing options...
chrishaley Posted August 24, 2006 Share Posted August 24, 2006 Found a way this can be done. Just enter a break tag () in the gateway configuration on the Payment option's name. Thanks Chris! No problem. I'll keep working on a way to try to get that first option to line up with the rest. 0 Quote Link to comment Share on other sites More sharing options...
xxkylexx Posted August 24, 2006 Author Share Posted August 24, 2006 I just went ahead and added the html in manaually. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted August 24, 2006 Share Posted August 24, 2006 Those work arounds are bad IMHO, why not just do the html thing as i suggested. It gives you the most control by far. 0 Quote Link to comment Share on other sites More sharing options...
xxkylexx Posted August 24, 2006 Author Share Posted August 24, 2006 I just went ahead and added the html in manaually. That's what I did. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted August 24, 2006 Share Posted August 24, 2006 lol, sry, i hadnt refreshed the page, you beat me to the post by a few mins. =P 0 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.