Skip to content

Instantly share code, notes, and snippets.

@deivisonarthur
Created September 14, 2012 17:30
Show Gist options
  • Select an option

  • Save deivisonarthur/3723390 to your computer and use it in GitHub Desktop.

Select an option

Save deivisonarthur/3723390 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<onepagecheckout_index_index translate="label">
<label>Easy Checkout</label>
<remove name="left"/>
<remove name="right"/>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="head">
<action method="addItem" ifconfig="onepagecheckout/general/enabled"><type>skin_css</type><name>css/onepagecheckout.css</name></action>
<action method="addItem" ifconfig="onepagecheckout/general/jquery"><type>skin_js</type><name>deivison/jquery.js</name></action>
<action method="addItem" ifconfig="onepagecheckout/general/jquery"><type>skin_js</type><name>deivison/jquery.maskedinput-1.2.2.min.js</name></action>
<action method="addItem" ifconfig="onepagecheckout/general/jquery"><type>skin_js</type><name>deivison/deivison.js</name></action>
</reference>
<reference name="content">
<block type="checkout/onepage" name="onepagecheckout" template="onepagecheckout/onepagecheckout.phtml">
<block type="customer/form_login" name="customer.login" template="onepagecheckout/login.phtml"/>
<block type="customer/account_forgotpassword" name="customer.forgot" template="onepagecheckout/forgotpassword.phtml"/>
<block type="onepagecheckout/onepage_billship" name="checkout.onepage.billing" as="billing.address" template="onepagecheckout/onepage/billing.phtml"/>
<block type="onepagecheckout/onepage_billship" name="checkout.onepage.shipping" as="shipping.address" template="onepagecheckout/onepage/shipping.phtml"/>
<block type="checkout/onepage_shipping_method" name="checkout.onepage.shipping_method" as="shipping.method" template="onepagecheckout/onepage/shipping_method.phtml">
<block type="checkout/onepage_shipping_method_available" name="checkout.onepage.shipping_method.available" as="available" template="checkout/onepage/shipping_method/available.phtml"/>
<block type="checkout/onepage_shipping_method_additional" name="checkout.onepage.shipping_method.additional" as="additional" template="checkout/onepage/shipping_method/additional.phtml"/>
</block>
<block type="checkout/onepage_payment" name="checkout.onepage.payment" as="payment.method" template="onepagecheckout/onepage/payment.phtml">
<block type="checkout/onepage_payment_methods" name="checkout.payment.methods" as="methods" template="onepagecheckout/onepage/payment/methods.phtml">
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
</block>
</block>
<block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="onepagecheckout/onepage/coupon.phtml"/>
<block type="checkout/onepage_review" name="checkout.onepage.review" as="review" template="onepagecheckout/onepage/review.phtml">
<block type="onepagecheckout/agreements" name="checkout.onepage.agreements" as="agreements" template="onepagecheckout/onepage/agreements.phtml"/>
<block type="checkout/onepage_review_info" name="info" template="onepagecheckout/onepage/review/info.phtml">
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>onepagecheckout/onepage/review/item.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>onepagecheckout/onepage/review/item.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>onepagecheckout/onepage/review/item.phtml</template></action>
<block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="onepagecheckout/onepage/review/totals.phtml"/>
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
</block>
</block>
</block>
</reference>
</onepagecheckout_index_index>
<checkout_cart_index>
<reference name="checkout.cart.top_methods">
<action method="unsetChild" ifconfig="onepagecheckout/general/enabled"><name>checkout.cart.methods.onepage</name></action>
</reference>
<reference name="checkout.cart.methods">
<action method="unsetChild" ifconfig="onepagecheckout/general/enabled"><name>checkout.cart.methods.onepage</name></action>
</reference>
<reference name="checkout.cart.top_methods">
<block type="onepagecheckout/onepage_link" name="checkout.cart.methods.fire" template="onepagecheckout/onepage/link.phtml"/>
</reference>
<reference name="checkout.cart.methods">
<block type="onepagecheckout/onepage_link" name="checkout.cart.methods.fire" template="onepagecheckout/onepage/link.phtml" before="checkout.cart.methods.multishipping"/>
</reference>
</checkout_cart_index>
<onepagecheckout_index_updatecheckout>
<remove name="right"/>
<remove name="left"/>
<block type="checkout/onepage_payment_methods" name="checkout.payment.method" template="onepagecheckout/onepage/payment/methods.phtml">
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
</block>
<block type="checkout/cart_coupon" name="checkout.cart.coupon" as="coupon" template="onepagecheckout/onepage/coupon.phtml"/>
<block type="checkout/onepage_shipping_method_available" name="checkout.shipping.method" template="checkout/onepage/shipping_method/available.phtml"/>
<block type="checkout/onepage_review_info" name="checkout.review" template="onepagecheckout/onepage/review/info.phtml">
<action method="addItemRender"><type>default</type><block>checkout/cart_item_renderer</block><template>onepagecheckout/onepage/review/item.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>onepagecheckout/onepage/review/item.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>onepagecheckout/onepage/review/item.phtml</template></action>
<block type="checkout/cart_totals" name="checkout.onepage.review.info.totals" as="totals" template="onepagecheckout/onepage/review/totals.phtml"/>
<block type="core/text_list" name="checkout.onepage.review.info.items.before" as="items_before"/>
</block>
</onepagecheckout_index_updatecheckout>
<!-- Redireciona para o Success e Failure default do Magento - Se remover ele tenta procurar assim onestepcheckout/success.phtml -->
<onepagecheckout_index_success translate="label">
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="checkout/onepage_success" name="checkout.success" template="checkout/success.phtml"/>
</reference>
</onepagecheckout_index_success>
<onepagecheckout_index_failure translate="label">
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="checkout/onepage_failure" name="checkout.failure" template="checkout/onepage/failure.phtml"/>
</reference>
</onepagecheckout_index_failure>
<customer_account_create>
<reference name="customer_form_register">
<action method="setTemplate"><template>onepagecheckout/persistent/customer/form/register.phtml</template></action>
</reference>
</customer_account_create>
<customer_account_edit>
<reference name="customer_edit">
<action method="setTemplate"><template>onepagecheckout/persistent/customer/form/edit.phtml</template></action>
</reference>
</customer_account_edit>
<customer_address_form translate="label">
<reference name="my.account.wrapper">
<block type="customer/address_edit" name="customer_address_edit" template="onepagecheckout/persistent/customer/address/edit.phtml"/>
</reference>
</customer_address_form>
<!--
<customer_address_form translate="label">
<label>Customer My Account Address Edit Form</label>
<update handle="customer_account"/>
<reference name="my.account.wrapper">
<block type="customer/address_edit" name="customer_address_edit" template="onepagecheckout/persistent/customer/address/edit.phtml"/>
</reference>
</customer_address_form>
<customer_address_index translate="label">
<label>Customer My Account Address Book</label>
<update handle="customer_account"/>
<reference name="my.account.wrapper">
<block type="customer/address_book" name="address_book" template="onepagecheckout/persistent/customer/address/book.phtml"/>
</reference>
</customer_address_index>
-->
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment