<?xml version="1.0" encoding="utf-8"?>
<modification>
    <name>Short Checkout</name>
	<code>shortcheckout</code>
    <version>1.0</version>
    <author>OCProfi</author>
    <link>http://ocprofi.com</link>
    <file path="catalog/controller/total/coupon.php">
        <operation>
            <search><![CDATA[
            $data['redirect'] = $this->url->link('checkout/cart');
            ]]></search>
            <add position="replace"><![CDATA[
            $data['redirect'] = $this->url->link('checkout/buy');
            ]]></add>
        </operation>
    </file>
	<file path="catalog/controller/total/voucher.php">
        <operation>
            <search><![CDATA[
            $json['redirect'] = $this->url->link('checkout/cart');
            ]]></search>
            <add position="replace"><![CDATA[
            $json['redirect'] = $this->url->link('checkout/buy');
            ]]></add>
        </operation>
    </file> 
	<file path="catalog/controller/checkout/confirm.php">
        <operation>
            <search><![CDATA[
            $redirect = $this->url->link('checkout/checkout', '', 'SSL');
            ]]></search>
            <add position="replace"><![CDATA[
            $redirect = $this->url->link('checkout/buy', '', 'SSL');
            ]]></add>
        </operation>
		<operation>
            <search><![CDATA[
            $redirect = $this->url->link('checkout/cart');
            ]]></search>
            <add position="replace"><![CDATA[
            $redirect = $this->url->link('checkout/buy');
            ]]></add>
        </operation>
    </file> 
	<file path="catalog/controller/common/cart.php">
        <operation>
            <search><![CDATA[
            $data['cart'] = $this->url->link('checkout/cart');
            ]]></search>
            <add position="replace"><![CDATA[
            $data['cart'] = $this->url->link('checkout/buy');
            ]]></add>
        </operation>
		<operation>
            <search><![CDATA[
            $data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');
            ]]></search>
            <add position="replace"><![CDATA[
            $data['checkout'] = $this->url->link('checkout/buy', '', 'SSL').'#checkout-f';
            ]]></add>
        </operation>
    </file>
	<file path="catalog/controller/common/header.php">
        <operation>
            <search><![CDATA[
            $data['cart'] = $this->url->link('checkout/cart');
            ]]></search>
            <add position="replace"><![CDATA[
            $data['cart'] = $this->url->link('checkout/buy');
            ]]></add>
        </operation>
		<operation>
            <search><![CDATA[
            $data['checkout'] = $this->url->link('checkout/checkout', '', 'SSL');
            ]]></search>
            <add position="replace"><![CDATA[
            $data['checkout'] = $this->url->link('checkout/buy', '', 'SSL').'#checkout-f';
            ]]></add>
        </operation>
    </file>
	<file path="catalog/controller/checkout/cart.php">
        <operation>
            <search><![CDATA[
            $json['success'] = sprintf($this->language->get('text_success'), $this->url->link('product/product', 'product_id=' . $this->request->post['product_id']), $product_info['name'], $this->url->link('checkout/cart'));
            ]]></search>
            <add position="replace"><![CDATA[
            $json['success'] = sprintf($this->language->get('text_success'), $this->url->link('product/product', 'product_id=' . $this->request->post['product_id']), $product_info['name'], $this->url->link('checkout/buy'));
            ]]></add>
        </operation>
    </file>
	<file path="catalog/controller/account/voucher.php">
        <operation>
            <search><![CDATA[
            $data['continue'] = $this->url->link('checkout/cart');
            ]]></search>
            <add position="replace"><![CDATA[
			$data['continue'] = $this->url->link('checkout/buy');
            ]]></add>
        </operation>
    </file>
	<file path="catalog/model/checkout/order.php">
		<operation>
            <search><![CDATA[
            $mail->setTo($order_info['email']);
            ]]></search>
            <add position="before"><![CDATA[
			if($order_info['email']){
            ]]></add>
        </operation>
        <operation>
            <search index="0"><![CDATA[
            $mail->send();
            ]]></search>
            <add position="after"><![CDATA[
			}
            ]]></add>
        </operation>
        <operation>
            <search index="3"><![CDATA[
			$mail->send();
            ]]></search>
            <add position="after"><![CDATA[
			}
            ]]></add>
        </operation>
    </file>
</modification>