For some reason, the next button for the VM "select shipping address" checkout step doesn't appear in Firefox and Safari. What's strange though is that it does appear for all the other steps. It appears to be a template issue since changing templates solves the problem - the button appears. This is the template I need to use though so have been trying to figure out what's causing it. The problem doesn't happen in IE8, Chrome or Opera.
I think the file I need to edit is checkout.index.php, specifically the lines quoted below. So far,The only way I could get the next button to appear is by changing the input type value in the line highlighted below to anything but hidden. This however creates a new input box, button, etc depending on what I put in. Can someone please help by pointing me in the right direction? Am I editing the right line of code? Many thanks in advance for the help.
Here's the website: http://www.dibetto.com
// CHECK_OUT_GET_SHIPPING_ADDR
// Lets the user pick or add an alternative Shipping Address
if( in_array('CHECK_OUT_GET_SHIPPING_ADDR', $checkout_steps[$current_stage]) ) {
echo '<a name="CHECK_OUT_GET_SHIPPING_ADDR"></a>';
echo $theme->fetch( 'checkout/get_shipping_address.tpl.php');
$theme->set('basket_html', '');
}
// CHECK_OUT_GET_SHIPPING_METHOD
// Let the user pick a shipping method
if( in_array('CHECK_OUT_GET_SHIPPING_METHOD', $checkout_steps[$current_stage]) ) {
echo '<a name="CHECK_OUT_GET_SHIPPING_METHOD"></a>';
echo $theme->fetch( 'checkout/get_shipping_method.tpl.php');
$theme->set('basket_html', '');
}
// -CHECK_OUT_GET_PAYMENT_METHOD
// let the user choose a payment method
if( in_array('CHECK_OUT_GET_PAYMENT_METHOD', $checkout_steps[$current_stage]) ) {
echo '<a name="CHECK_OUT_GET_PAYMENT_METHOD"></a>';
echo $theme->fetch( 'checkout/get_payment_method.tpl.php');
$theme->set('basket_html', '');
}
// -CHECK_OUT_GET_FINAL_CONFIRMATION
// shows a total summary including all payments, taxes, fees etc.
if( in_array('CHECK_OUT_GET_FINAL_CONFIRMATION', $checkout_steps[$current_stage]) ) {
echo '<a name="CHECK_OUT_GET_FINAL_CONFIRMATION"></a>';
// Now let the user confirm
echo $theme->fetch( 'checkout/get_final_confirmation.tpl.php');
$theme->set('basket_html', '');
}
?>
<br /><?php
foreach( $checkout_steps[$current_stage] as $this_step ) {
echo '<input type="hidden" name="checkout_this_step[]" value="'.$this_step.'" />';
}
// Set Dynamic Page Title: "Checkout: Step x of x"
$ii = 0;
for( $i = 1; $i < 5; $i++ ) {
if( isset( $checkout_steps[$i] ) ) {
$ii += 1;
if( in_array($this_step, $checkout_steps[$i] ) ) {
$mainframe->setPageTitle( sprintf( $VM_LANG->_('VM_CHECKOUT_TITLE_TAG'), $ii, count($checkout_steps) ));
break;
}
}
}
if( !in_array('CHECK_OUT_GET_FINAL_CONFIRMATION', $checkout_steps[$current_stage]) ) {
?>
<div align="center">
<input type="submit" class="button" name="formSubmit" value="<?php echo $VM_LANG->_('PHPSHOP_CHECKOUT_NEXT');?> >>" />
</div>