Any answer or help please.
Thanking you for your time and effort.

Code: Select all
$this->session->data['shipping_methods'] = $quote_data;
Code: Select all
//Q: Bypass shipping if using only one and its single rate
if (count($quote_data) == 1) {
$values = array_values($quote_data);
if (count($values[0]['quote']) == 1) {
$keys = array_keys($values[0]['quote']);
$method = $values[0]['quote'][$keys[0]];
$this->session->data['shipping_method'] = $method;
$this->session->data['comment'] = '';
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/payment');
}
}//
Code: Select all
$this->session->data['payment_methods'] = $method_data;
Code: Select all
// If there is only one payment option, set it to session and go to confirm
if (count($method_data) == 1) {
$keys = array_keys($method_data);
$values = array_values($method_data);
$method = $values[0];
$this->session->data['payment_method'] = $method;
$this->session->data['comment'] = '';
$this->redirect(HTTPS_SERVER . 'index.php?route=checkout/confirm');
}
Code: Select all
<script type="text/javascript">
$('#checkout').submit();
</script>
Code: Select all
if (!isset($this->session->data['shipping_methods'])) {
Code: Select all
if (0==0) {
Users browsing this forum: No registered users and 10 guests