Skip to content

Commit

Permalink
Issue techjoomla#40 fix: pass name, address, city etc while placing t…
Browse files Browse the repository at this point in the history
…he order so that the order details are shown prefilled on the 2checkout
  • Loading branch information
ankush-maherwal committed Jun 29, 2018
1 parent 4822244 commit fb72d3c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 19 deletions.
11 changes: 6 additions & 5 deletions code/plugins/2checkout/2checkout.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?php
/**
* @package Joomla Payments
* @author TechJoomla <[email protected]>
* @website http://techjoomla.com
* @copyright Copyright (c) 2009-2018 TechJoomla. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla_Payments
* @subpackage plg_payments_2checkout
*
* @author Techjoomla <[email protected]>
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

// No direct access
Expand Down
8 changes: 6 additions & 2 deletions code/plugins/2checkout/2checkout/helper.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<?php
/**
* @copyright Copyright (c) 2009-2013 TechJoomla. All rights reserved.
* @license GNU General Public License version 2, or later
* @package Joomla_Payments
* @subpackage plg_payments_2checkout
*
* @author Techjoomla <[email protected]>
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die(';)');
Expand Down
14 changes: 8 additions & 6 deletions code/plugins/2checkout/2checkout/tmpl/default.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php
/**
* @package Joomla Payments
* @author TechJoomla <[email protected]>
* @website http://techjoomla.com
* @copyright Copyright (c) 2009-2018 TechJoomla. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla_Payments
* @subpackage plg_payments_2checkout
*
* @author Techjoomla <[email protected]>
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die('Restricted access');
?>

Expand All @@ -14,7 +16,7 @@
<div>
<input type="hidden" name="sid" value="<?php echo $vars->sid?>" />
<input type="hidden" name="cart_order_id" value="<?php echo $vars->order_id ?>" />
<input type="hidden" name="total" value="<?php echo sprintf('%02.2f',$vars->amount) ?>" />
<input type="hidden" name="total" value="<?php echo sprintf('%02.2f', $vars->amount) ?>" />
<input type="hidden" name="demo" value="<?php echo $vars->demo; ?>" />
<input type="hidden" name="merchant_order_id" value="<?php echo $vars->order_id ?>" />
<input type="hidden" name="fixed" value="Y" />
Expand Down
13 changes: 7 additions & 6 deletions code/plugins/2checkout/2checkout/tmpl/form.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
<?php
/**
* @package Joomla Payments
* @author TechJoomla <[email protected]>
* @website http://techjoomla.com
* @copyright Copyright (c) 2009-2018 TechJoomla. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla_Payments
* @subpackage plg_payments_2checkout
*
* @author Techjoomla <[email protected]>
* @copyright Copyright (C) 2009 - 2018 Techjoomla. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die('Restricted access');
?>
<div class="tjcpg-wrapper">
<form action="<?php echo $vars->action_url ?>" class="form-horizontal" method="post" id="paymentForm">
<input type="hidden" name="sid" value="<?php echo $vars->sid?>" />
<input type="hidden" name="cart_order_id" value="<?php echo $vars->order_id ?>" />
<input type="hidden" name="total" value="<?php echo sprintf('%02.2f',$vars->amount) ?>" />
<input type="hidden" name="total" value="<?php echo sprintf('%02.2f', $vars->amount) ?>" />
<input type="hidden" name="demo" value="<?php echo $vars->demo; ?>" />
<input type="hidden" name="merchant_order_id" value="<?php echo $vars->order_id ?>" />
<input type="hidden" name="fixed" value="Y" />
Expand Down

0 comments on commit fb72d3c

Please sign in to comment.