Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

update button help


Guest

Recommended Posts

Hi

 

I know that this is not the place really to help but am getting desperate now to be honest, sorry guys

 

in my mobile website www.irhtoys.co.uk/mobile-shipping-address.php

 

I am testing it out and when I click on edit at the top, I go to put in a test address and click update but the update button is not working

 

It works ok on my normal website but just not the mobile version for some reason

 

I have contacted the creator of the mobile add on and he said he has not got the time to support it

 

I have tried copying the code from the checkout-shipping-address.php from the normal site that processes the new address part but still does the same thing and not update a new address

 

The code is below from the mobile-shipping-address.php - if anyone could take a quick look at it and point me in the right direction, I would really appreciate it, I know I am a pain and post a lot but am learning from all this and eventually want to solve problems on my own

 

<?php
/*
 mobile-shipping-address.php, http://www.css-oscommerce.com
  >modified from shipping_address.php OSC to CSS v2 2010, http://www.css-oscommerce.com
   >modified from $Id: shipping_address.php 1739 2007-12-20 00:52:16Z hpdl $v2.2RC2a osCommerce, http://www.oscommerce.com
 Released under the GNU General Public License
*/
 require('includes/mobile_application_top.php');
// if the customer is not logged on, redirect them to the login page
 if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }
// if there is nothing in the customers cart, redirect them to the shopping cart page
 if ($cart->count_contents() < 1) {
   tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
 }
 require(DIR_WS_CLASSES . 'order.php');
 $order = new order;
 if ($order->content_type == 'virtual') {
   if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
   $shipping = false;
   if (!tep_session_is_registered('sendto')) tep_session_register('sendto');
   $sendto = false;
   tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
 }
 $error = false;
 $process = false;
//  if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'submit')) {
 if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'submit') && isset($HTTP_POST_VARS['formid']) && ($HTTP_POST_VARS['formid'] == $sessiontoken)) {
// process a new shipping address
   if (tep_not_null($HTTP_POST_VARS['firstname']) && tep_not_null($HTTP_POST_VARS['lastname']) && tep_not_null($HTTP_POST_VARS['street_address'])) {
  $process = true;
  if (ACCOUNT_GENDER == 'true') $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);
  if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);
  $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);
  $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);
  $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);
  if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);
  $city = tep_db_prepare_input($HTTP_POST_VARS['city']);
  $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);
  $country = tep_db_prepare_input($HTTP_POST_VARS['country']);
  if (ACCOUNT_STATE == 'true') {
    if (isset($HTTP_POST_VARS['zone_id'])) {
	  $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);
    } else {
	  $zone_id = false;
    }
    $state = tep_db_prepare_input($HTTP_POST_VARS['state']);
  }
  if (ACCOUNT_GENDER == 'true') {
    if ( ($gender != 'm') && ($gender != 'f') ) {
	  $error = true;
	  $messageStack->add('checkout_address', ENTRY_GENDER_ERROR);
    }
  }
  if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
    $error = true;
    $messageStack->add('checkout_address', ENTRY_FIRST_NAME_ERROR);
  }
  if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {
    $error = true;
    $messageStack->add('checkout_address', ENTRY_LAST_NAME_ERROR);
  }
  if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
    $error = true;
    $messageStack->add('checkout_address', ENTRY_STREET_ADDRESS_ERROR);
  }
  if (strlen($city) < ENTRY_CITY_MIN_LENGTH) {
    $error = true;
    $messageStack->add('checkout_address', ENTRY_CITY_ERROR);
  }
  if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {
    $error = true;
    $messageStack->add('checkout_address', ENTRY_POST_CODE_ERROR);
  }
  if (ACCOUNT_STATE == 'true') {
    $zone_id = 0;
    $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "'");
    $check = tep_db_fetch_array($check_query);
    $entry_state_has_zones = ($check['total'] > 0);
    if ($entry_state_has_zones == true) {
	  $zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and (zone_name = '" . tep_db_input($state) . "' or zone_code = '" . tep_db_input($state) . "')");
	  if (tep_db_num_rows($zone_query) == 1) {
	    $zone = tep_db_fetch_array($zone_query);
	    $zone_id = $zone['zone_id'];
	  } else {
	    $error = true;
	    $messageStack->add('checkout_address', ENTRY_STATE_ERROR_SELECT);
	  }
    } else {
	  if (strlen($state) < ENTRY_STATE_MIN_LENGTH) {
	    $error = true;
	    $messageStack->add('checkout_address', ENTRY_STATE_ERROR);
	  }
    }
  }
  if ( (is_numeric($country) == false) || ($country < 1) ) {
    $error = true;
    $messageStack->add('checkout_address', ENTRY_COUNTRY_ERROR);
  }
  if ($error == false) {
    $sql_data_array = array('customers_id' => $customer_id,
						    'entry_firstname' => $firstname,
						    'entry_lastname' => $lastname,
						    'entry_street_address' => $street_address,
    'entry_city' => $city,
						    'entry_postcode' => $postcode,
						    'entry_country_id' => $country);
    if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;
    if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company;
    if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb;
    if (ACCOUNT_STATE == 'true') {
	  if ($zone_id > 0) {
	    $sql_data_array['entry_zone_id'] = $zone_id;
	    $sql_data_array['entry_state'] = '';
	  } else {
	    $sql_data_array['entry_zone_id'] = '0';
	    $sql_data_array['entry_state'] = $state;
	  }
    }
    if (!tep_session_is_registered('sendto')) tep_session_register('sendto');
    tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);
    $sendto = tep_db_insert_id();
    if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  }
// process the selected shipping destination
   } elseif (isset($HTTP_POST_VARS['address'])) {
  $reset_shipping = false;
  if (tep_session_is_registered('sendto')) {
    if ($sendto != $HTTP_POST_VARS['address']) {
	  if (tep_session_is_registered('shipping')) {
	    $reset_shipping = true;
	  }
    }
  } else {
    tep_session_register('sendto');
  }
  $sendto = $HTTP_POST_VARS['address'];
  $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'");
  $check_address = tep_db_fetch_array($check_address_query);
  if ($check_address['total'] == '1') {
    if ($reset_shipping == true) tep_session_unregister('shipping');
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  } else {
    tep_session_unregister('sendto');
  }
   } else {
  if (!tep_session_is_registered('sendto')) tep_session_register('sendto');
  $sendto = $customer_default_address_id;
  tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
   }
 }
// if no shipping destination address was selected, use their own address as default
 if (!tep_session_is_registered('sendto')) {
   $sendto = $customer_default_address_id;
 }
 $addresses_count = tep_count_customer_address_book_entries();
echo $doctype;
echo $html_parameters;
?><head>
<?php
echo $meta_equiv;
echo $meta_mobi;
?>
<meta name="googlebot" content="noindex, nofollow" >
<title>Edit/Add Shipping Address</title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<?php echo $stylesheet; ?>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<?php echo tep_draw_form('shipping_address', tep_href_link('mobile-shipping.php', 'action=update_shipping_address')); ?>
<script language="javascript"><!--
var selected;
function selectRowEffect(object, buttonSelect) {
 if (!selected) {
   if (document.getElementById) {
  selected = document.getElementById('defaultSelected');
   } else {
  selected = document.all['defaultSelected'];
   }
 }
 if (selected) selected.className = 'moduleRow';
 object.className = 'moduleRowSelected';
 selected = object;
// one button is not an array
 if (document.checkout_address.address[0]) {
   document.checkout_address.address[buttonSelect].checked=true;
 } else {
   document.checkout_address.address.checked=true;
 }
}
function rowOverEffect(object) {
 if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}
function rowOutEffect(object) {
 if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
function check_form_optional(form_name) {
 var form = form_name;
 var firstname = form.elements['firstname'].value;
 var lastname = form.elements['lastname'].value;
 var street_address = form.elements['street_address'].value;
 if (firstname == '' && lastname == '' && street_address == '') {
   return true;
 } else {
   return check_form(form_name);
 }
}
//--></script>
<?php
require(DIR_WS_INCLUDES . 'form_check.js.php');
require(DIR_WS_INCLUDES . 'mobile-top.php');
echo tep_draw_form('checkout_address', tep_href_link(FILENAME_MOBILE_SHIPPING, '', 'SSL'), 'post', 'onSubmit="return check_form_optional(checkout_address);"', true);
?>

<div class="contentwrapper">
<div id="contentwrapperinner">
 <h1>Delivery Information</h1>
 <?php
 if ($messageStack->size('checkout_address') > 0) {
echo $messageStack->output('checkout_address');
 }

if ($process == false) {
?>
<p><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></p>  
    <?php
	   if ($addresses_count > 1) {
  ?>
  <p>Please select the shipping address below, or enter a new address</p>
  <?php
    $radio_buttons = 0;
    $addresses_query = tep_db_query("select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_state as state, entry_zone_id as zone_id, entry_postcode as postcode, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "'");
    while ($addresses = tep_db_fetch_array($addresses_query)) {
	  $format_id = tep_get_address_format_id($addresses['country_id']);  
   ?>  
   <table>
 <tr>
  <td><?php echo tep_output_string_protected($addresses['firstname'] . ' ' . $addresses['lastname']); ?><hr></td>  
  <td><?php echo tep_draw_radio_field('address', $addresses['address_book_id'], ($addresses['address_book_id'] == $sendto)); ?></td>
 </tr>
 <tr>
  <td colspan="2"><?php echo tep_address_format($format_id, $addresses, true, '<br/> ', ', '); ?></td>
 </tr>
   </table>
  <?php
	 $radio_buttons++;
    }
  ?>
 <p><?php echo '<a href="' . tep_href_link(FILENAME_MOBILE_SHIPPING, '', 'SSL') . '" class="ui-button">back</a>'; ?> </p>
   <div style="float: right;"><?php echo tep_draw_hidden_field('action', 'submit') . tep_draw_button(IMAGE_BUTTON_UPDATE, 'triangle-1-e', null, 'primary'); ?></div>
  <?php
   }
 }

 if ($addresses_count < MAX_ADDRESS_BOOK_ENTRIES) {
 ?>
 <div class="rule"></div>

 <h3>add / edit shipping address:</h3>			  
  <?php  require(DIR_WS_MODULES . 'checkout_new_address.php'); ?>
  <div class="vspace"></div>
   <div class="alignleft"><?php echo '<a href="' . tep_href_link(FILENAME_MOBILE_SHIPPING, '', 'SSL') . '" class="ui-button">back</a>'; ?></div>
  <div style="float: right;"><?php echo tep_draw_hidden_field('action', 'submit') . tep_draw_button(IMAGE_BUTTON_UPDATE, 'triangle-1-e', null, 'primary'); ?></div>
  <div class="clear"></div>
 <?php 
   }

   if ($process == true) {
   }
 ?>
</form>
</div>
</div>
<?php
require(DIR_WS_INCLUDES . 'mobile-bottom.php');
?>

Link to comment
Share on other sites

Hard to say could be something from the mobile template is causing it. Like you said it's working on the non-mobile version. Perhaps the form is not being created in the mobile version?

tep_draw_form(....)

Link to comment
Share on other sites

The form is as follows

 

<?php echo tep_draw_form('shipping_address', tep_href_link('mobile-shipping.php', 'action=update_shipping_address')); ?>

 

To note here is that it submit to file mobile_shipping.php while the actual file is mobile_shipping_address.php that contain anything necessary to perform the actions

 

So, you either need to look into file mobile_shipping.php and check if there there are any activities action for action=update_shipping_address,

or, you need to change the form to process within the same file (same as the default osCommerce)

Link to comment
Share on other sites

Hi multimixer

 

Thank you so much for that line of coding

 

if the action is not in the mobile-shipping.php, I take it I add it in and is that easy to do

Link to comment
Share on other sites

Hi

 

I added in that line of code you supplied multimixer and then looked in the mobile-shipping.php file and could not see anything action wise for action=update_shipping_address

 

Below is my code from the mobile-shipping.php

 

<?php
/*mobile-shipping.php, http://www.css-oscommerce.com
  >modified from checkout_shipping.php OSC to CSS v2 2010, http://www.css-oscommerce.com
   >modified from $Id: checkout_shipping.php 1739 2007-12-20 00:52:16Z hpdl $v2.2RC2a osCommerce, http://www.oscommerce.com
 Released under the GNU General Public License
*/
 require('includes/mobile_application_top.php');
//kgt - discount coupons

 require('includes/classes/http_client.php');
// if the customer is not logged on, redirect them to the login page
 if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_MOBILE_LOGIN, '', 'SSL'));
 }
// if there is nothing in the customers cart, redirect them to the shopping cart page
 if ($cart->count_contents() < 1) {
   tep_redirect(tep_href_link(FILENAME_MOBILE_CART));
 }
// if no shipping destination address was selected, use the customers own address as default
 if (!tep_session_is_registered('sendto')) {
   tep_session_register('sendto');
   $sendto = $customer_default_address_id;
 } else {
// verify the selected shipping address
   if ( (is_array($sendto) && empty($sendto)) || is_numeric($sendto) ) {
  $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$sendto . "'");
  $check_address = tep_db_fetch_array($check_address_query);
  if ($check_address['total'] != '1') {
    $sendto = $customer_default_address_id;
    if (tep_session_is_registered('shipping')) tep_session_unregister('shipping');
  }
   }
 }
 require(DIR_WS_CLASSES . 'order.php');
 $order = new order;
// register a random ID in the session to check throughout the checkout procedure
// against alterations in the shopping cart contents
 if (!tep_session_is_registered('cartID')) tep_session_register('cartID');
 $cartID = $cart->cartID;
// if the order contains only virtual products, forward the customer to the billing page as
// a shipping address is not needed
 if ($order->content_type == 'virtual') {
   if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
   $shipping = false;
   $sendto = false;
   tep_redirect(tep_href_link(FILENAME_MOBILE_PAYMENT, '', 'SSL'));
 }
 $total_weight = $cart->show_weight();
 $total_count = $cart->count_contents();
// load all enabled shipping modules
 require(DIR_WS_CLASSES . 'shipping.php');
 $shipping_modules = new shipping;
 if ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) {
   $pass = false;
   switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
  case 'national':
    if ($order->delivery['country_id'] == STORE_COUNTRY) {
	  $pass = true;
    }
    break;
  case 'international':
    if ($order->delivery['country_id'] != STORE_COUNTRY) {
	  $pass = true;
    }
    break;
  case 'both':
    $pass = true;
    break;
   }
   $free_shipping = false;
   if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
  $free_shipping = true;
  include(DIR_WS_LANGUAGES . $language . '/modules/order_total/ot_shipping.php');
   }
 } else {
   $free_shipping = false;
 }
// process the selected shipping method
//  if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) {
   if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') && isset($HTTP_POST_VARS['formid']) && ($HTTP_POST_VARS['formid'] == $sessiontoken) ) {
   if (!tep_session_is_registered('comments')) tep_session_register('comments');
   if (tep_not_null($HTTP_POST_VARS['comments'])) {
  $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
   }
   if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
   if ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {
  if ( (isset($HTTP_POST_VARS['shipping'])) && (strpos($HTTP_POST_VARS['shipping'], '_')) ) {
    $shipping = $HTTP_POST_VARS['shipping'];
    list($module, $method) = explode('_', $shipping);
    if ( is_object($$module) || ($shipping == 'free_free') ) {
	  if ($shipping == 'free_free') {
	    $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
	    $quote[0]['methods'][0]['cost'] = '0';
	  } else {
	    $quote = $shipping_modules->quote($method, $module);
	  }
	  if (isset($quote['error'])) {
	    tep_session_unregister('shipping');
	  } else {
	    if ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {
		  $shipping = array('id' => $shipping,
						    'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
						    'cost' => $quote[0]['methods'][0]['cost']);
		  tep_redirect(tep_href_link(FILENAME_MOBILE_PAYMENT, '', 'SSL'));
	    }
	  }
    } else {
	  tep_session_unregister('shipping');
    }
  }
   } else {
  $shipping = false;

  tep_redirect(tep_href_link(FILENAME_MOBILE_PAYMENT, '', 'SSL'));
   }   
 }
 $quotes = $shipping_modules->quote();
 if ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();
echo $doctype;
echo $html_parameters;
?><head>
<?php
echo $meta_equiv;
echo $meta_mobi;
?>
<meta name="googlebot" content="noindex, nofollow" >
<title>Irh Toys Mobile Shipping</title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<?php echo $stylesheet; ?>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<?php require(DIR_WS_INCLUDES . 'mobile-top.php'); ?>
<?php
 echo tep_draw_form('checkout_address', tep_href_link(FILENAME_MOBILE_SHIPPING, '', 'SSL'), 'post', '', true) . tep_draw_hidden_field('action', 'process');
?>
<div class="contentwrapper"><div id="contentwrapperinner">
<h1>Shipping</h1>
<div class="rule"></div>
<h4>Shipping Address:</h4>
<div class="vspace"></div>
<div class="clear"></div>
<div class="alignleft"><?php echo tep_address_label($customer_id, $sendto, true, ' ', '<br>'); ?></div>
<div class="alignright"> <?php echo '<a href="' . tep_href_link(FILENAME_MOBILE_SHIPPING_ADDRESS, '', 'SSL') . ' " class="ui-button">edit</a>'; ?> </div>
<div class="clear"></div>
<div class="vspace"></div>
<div class="rule"></div>
<div class="vspace"></div>	 
<?php
 if (tep_count_shipping_modules() > 0) {
  if ($free_shipping == true) {
 echo 'Free Shipping'; ?> <?php echo $quotes[$i]['icon']; ?>
 <p><?php echo sprintf('Shipping is Free', $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . tep_draw_hidden_field('shipping', 'free_free'); ?></p>		   
<?php
 } else {
   echo '<table class="striped">';
    $radio_buttons = 0;
  for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
echo '<tr><td class="td-title" colspan="3">'.$quotes[$i]['module'].'</td></tr>';		  
    if (isset($quotes[$i]['error'])) {
  echo '<tr><td colspan="3" class="warn">'.$quotes[$i]['error'].'</td><tr>';
    } else {
	  for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {
// set the radio button to be checked if it is the method chosen
	    $checked = (($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false);
	    if ( ($checked == true) || ($n == 1 && $n2 == 1) ) {
		  echo '				  <tr  onclick="selectRowEffect(this, ' . $radio_buttons . ')" >' . "\n";
	   } else {
		  echo '				  <tr onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
	    }
?>
<td class="td-left"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td>
<?php
	    if ( ($n > 1) || ($n2 > 1) ) {
?>
<td class="td-middle"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td>
<td class="td-right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td>								  
<?php
	    } else {
echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']);
	    }
	    $radio_buttons++;
	   echo '</tr>';
	    }

	   }

	 }
	 echo '</table>';
  }
   }
?>
<p><?php echo tep_draw_textarea_field('comments', 'soft', '30', '2','add comments','class="area"'); ?></p>
<div class="alignleft"><?php echo '<a href="' . tep_href_link(FILENAME_MOBILE_CART) . '" class="ui-button">Back</a>'; ?></div>
<div class="alignright"><?php echo tep_draw_button('Next'); ?></div>
</form><div class="clear vspace"></div></div></div>
<?php
require(DIR_WS_INCLUDES . 'mobile-bottom.php');
?>

 

The closest thing I saw to it was the following

 

<?php
 echo tep_draw_form('checkout_address', tep_href_link(FILENAME_MOBILE_SHIPPING, '', 'SSL'), 'post', '', true) . tep_draw_hidden_field('action', 'process');
?>

Link to comment
Share on other sites

I did not supply any line of code, I just highlighted how the form is getting constructed in your file right now. I didn't say to add it to anywhere

 

Since there is no routine for any action defined in mobile_shipping.php, you'll need to process the form within the same file (mobile_shipping_address.php), take an example of the default checkout_shipping.php

 

Easy or hard, this depend on your understanding of things. Whatever the result will be, sure thing is, you will learn

Link to comment
Share on other sites

Ahh sorry my mistake, I just woke up, brain not fully functioning yet

 

ok I will give that a go after taking the girls to school

 

Thank you George

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...