Post by platypuspuzzles » Sat Jul 16, 2016 10:06 am

Hi guys

I installed poli payments, an Australian bank transfer payment option, onto a fresh install of 2.2.0.0 and originally it produced

Notice: Error: Could not load template /...../catalog/view/theme/default/template/default/template/payment/poli.tpl! in /....../system/storage/modification/system/library/template/basic.php on line 26

I fixed this error, by copying the same fix that my credit card extention producer used to fix the same error in their extension. (blocked out the template section of coding)

I now receive the next page at checkout, however the confirm order button at the right hand corner is missing.

Active Member

Posts

Joined
Sun Jan 23, 2011 8:11 pm

Post by pprmkr » Sat Jul 16, 2016 2:33 pm

System needs payment template, otherwise confirm button is missing.

Last step is checkout/success, and this is set by payment method. Clicking Confirm button mostly triggers call to payment method function and sends order data, sets order status and redirects to success page.

For example Cash on delivery:

Code: Select all

<div class="buttons">
  <div class="pull-right">
    <input type="button" value="<?php echo $button_confirm; ?>" id="button-confirm" class="btn btn-primary" data-loading-text="<?php echo $text_loading; ?>" />
  </div>
</div>
<script type="text/javascript"><!--
$('#button-confirm').on('click', function() {
	$.ajax({
		type: 'get',
		url: 'index.php?route=payment/cod/confirm',
		cache: false,
		beforeSend: function() {
			$('#button-confirm').button('loading');
		},
		complete: function() {
			$('#button-confirm').button('reset');
		},
		success: function() {
			location = '<?php echo $continue; ?>';
		}
	});
});
//--></script>

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 6 guests