Sunday, July 7, 2013

How to remove Checkout Step 2, Step 3, Step 4 in opencart



Code for Older version of  Opencart

For Latest Opencart version Please contact me. 
I am working on this module for latest version(demo latest version)

Dear Friends :)

Here is some Steps for remove Open cart checkout Steps:

For steps 2 : { Payment Address }

Open your checkout.tpl
catalog\view\theme\default\template\checkout\checkout.tpl 

Steps: 1
And find 


$('#payment-address .checkout-content').html(html);
$('#payment-address .checkout-content').slideDown('slow');
 And Replace with

$('#payment-address .checkout-content').html(html);
$('#payment-address #button-payment-address').click();
Steps: 2
And find 


 <div id="payment-address">
 And Replace with

 <div id="payment-address" style="display:none">
Enjoy Comments are welcome


For steps 3 :{ Shipping Address}

Open your checkout.tpl
catalog\view\theme\default\template\checkout\checkout.tpl 
And find 


$('#shipping-address .checkout-content').slideDown('slow');
 And Replace with

$("#shipping-existing select").prop("selectedIndex", $("#payment-existing select").prop("selectedIndex"));
$('#shipping-address #button-address').click();
$('#button-shipping-address').click();
Steps: 2

And find 


<div id="shipping-address">
 And Replace with

<div id="shipping-address" style="display: none">
Steps: 3
Open your guest.tpl
catalog/view/theme/default/template/checkout/guest.tpl

And find 


<input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" />
 And Replace with

<input type="checkbox" name="shipping_address" value="1" id="shipping" checked="checked" style="display: none"/>
Enjoy Comments are welcome

For steps 4 : { Shipping Method }

Open your checkout.tpl
catalog\view\theme\default\template\checkout\checkout.tpl 

Steps: 1
And find 


$('#shipping-method .checkout-content').slideDown('slow');
 And Replace with

$('#shipping-method #button-shipping-method').click();
Steps: 2
And find 


<div id="shipping-method">
 And Replace with

<div id="shipping-method" style='display: none'>
Enjoy Comments are welcome