Jump to content

membuat form konfirmasi pada prestashop 1.5


ardi85

Recommended Posts

merubah contact form menjadi form konfirmasi pada prestashop 1.5

 

copy file



htdocs\presta\controllers\front\ContactControler.php ke htdocs\presta\override\controllers\front dan ubah nama /rename menjadi ConfirmController.php


 

copy dan rename file


htdocs\presta\themes\default\contact-form.tpl menjadi confirm-form.tpl

 

copy dan rename file 



htdocs\presta\contact-form.php menjadi confirm-form.php

 

ubah isi confirm-form.php

 



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');


 

ubah isi ConfirmController.php




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

 

tambahkan css pada 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;}


 

 

tinggal berkreasi pada confirm-form.tpl sesuai keinginan anda

 



post-364550-0-53221000-1379564993_thumb.png

Edited by ardi85 (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 7 months later...
  • 5 months later...

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