Jump to content

Payment Confirmation Form


codearm2

Recommended Posts

I'm trying to make a payment confirmation page, been following a tutorial found in this forum
 
http://www.prestashop.com/forums/topic/275958-membuat-form-konfirmasi-pada-prestashop-15/
 
The language is Indonesian, but it's roughly like this

 
1. copy file
htdocs\presta\controllers\front\ContactControler.php to htdocs\presta\override\controllers\front and rename to ConfirmController.php
 
2. Copy and rename

htdocs\presta\themes\default\contact-form.tpl to confirm-form.tpl
 
3. copy dan rename file
htdocs\presta\contact-form.php to confirm-form.php
 

4. Edit the confirm-form.php to
 



require(dirname(__FILE__).'/config/config.inc.php');
Tools::displayFileAsDeprecated();

Tools::redirect('index.php?controller=confirm'.((count($_GET) || count($_POST)) ? '&'.http_build_query(array_merge($_GET, $_POST), '', '&') : ''), __PS_BASE_URI__, null, 'HTTP/1.1 301 Moved Permanently');

5. Edit confirm-controller.php to



class ConfirmControllerCore extends FrontController
{
public $php_self = 'confirm';
public $ssl = true;

6. Add css to contact-form.css

#confirm  fieldset {
padding:0 0 15px 0;
margin: 0;
 
}
#confirm  h3 {
margin:0 0 15px 0;
padding:8px;
font-size:14px;
text-transform:uppercase;
}
#confirm #center_column p {margin:0; padding:0 0 10px 0;}
#confirm #center_column p.desc_contact { text-align: center; padding-left: 10px; padding-right: 10px; }
 
#confirm p.text label,
#confirm p.select label,
#confirm p.select span,
#confirm p.textarea label {
display:inline-block;
padding:6px 15px;
width:150px;/* 180 */
font-size:12px;
text-align:right
}
#confirm p.textarea label {vertical-align:top}
#confirm p.text input,
#confirm p.select input {
padding:0 5px;
height:22px;
width:260px;/* 270 */
border:1px solid #ccc;
font-size: 12px;
color:#666
}
#confirm p.select select {
margin-right:10px;
border:1px solid #ccc;
font-size: 12px;
color:#666
}
#confirm p.textarea textarea {
height:80px;
width:270px;
border:1px solid #ccc;
font-size: 12px;
color:#666
}
#confirm p.submit input {margin-left:185px;}

7. Then edit your confirm-form.tpl file
 
 
i finished all the steps but whenever I edit the confirm-form.tpl file, the front store never changes
The confirmation page also messed up, I mean the page doesn't read the css setup
Any things I missed?

Edited by codearm2 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...