Im using opencart 1.5.5.1 with simple free responsive theme
I have an Idea for skipping step 3. when i was trying to test guest payment i saw the chekbox in step 2 that skips step3. but in logged user or registerd user it dosent shown.
so i decide to use smiler way to let registered customers skip this step.
first of all i copy this code to line 89 of payment_address.tpl
Code: Select all
<?php if ($shipping_required) { ?>
<div style="clear: both; padding-top: 15px; border-top: 1px solid #DDDDDD;">
<?php if ($shipping_address) { ?>
<input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" />
<?php } else { ?>
<input type="checkbox" name="shipping_address" value="1" id="shipping" />
<?php } ?>
<label for="shipping"><?php echo $entry_shipping; ?></label>
<br />
<br />
<br />
</div>
<?php } ?>
(still i have error

step 2 : modifying checkout.tpl
replace line 406 to 428 with this code
Code: Select all
$.ajax({
url: 'index.php?route=checkout/shipping_address',
dataType: 'html',
success: function(html) {
$('#shipping-address .checkout-content').html(html);
***************************************************//;
},
error: function(xhr, ajaxOptions, thrownError) {
alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
}
});

I think if i can automaticly click on proceed button in virtual, all things will be ok
so i need a command to add in line **********************// in upper code to automaticly do as proceed button in shipping_address.tpl
checkout files are in attached file
please help me to complete this procedure.