Skip to content

Instantly share code, notes, and snippets.

@madismanni
Last active April 26, 2016 20:28
Show Gist options
  • Save madismanni/6fe2ae599fec671ee3a14d863a9a40c6 to your computer and use it in GitHub Desktop.
Save madismanni/6fe2ae599fec671ee3a14d863a9a40c6 to your computer and use it in GitHub Desktop.
INTEGRATION : Idev One Step Checkout 4.5.5. (http://onestepcheckout.com/) WITH Auto Add Promo Items (https://amasty.com/auto-add-promo-items.html)
<!--this file: app/design/frontend/base/default/layout/onestepcheckout.xml-->
<?xml version="1.0"?>
<layout version="0.1.0">
<onestepcheckout_ajax_add_extra_product>
<block type="onestepcheckout/summary" name="checkout.cart.totals" as="summary" template="onestepcheckout/summary.phtml" output="toHtml" />
</onestepcheckout_ajax_add_extra_product>
<onestepcheckout_ajax_set_methods_separate>
<block output="toHtml" type="core/template" name="set_methods_result" as="set_methods_result" template="onestepcheckout/set_methods_separate.phtml" >
<block type="onestepcheckout/summary" as="summary" name="onestepcheckout.summary" template="onestepcheckout/summary.phtml">
<block type="core/template" as="preview" name="onestepcheckout.summary.preview" template="onestepcheckout/preview/preview.phtml" />
</block>
<block type="checkout/onepage_payment_methods" name="choose-payment-method" template="onestepcheckout/payment_method.phtml" as="choose-payment-method">
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
</block>
</block>
</onestepcheckout_ajax_set_methods_separate>
<onestepcheckout_ajax_paymentrefresh>
<block output="toHtml" type="core/template" name="paymentrefresh_result" template="onestepcheckout/set_methods_separate.phtml" >
<block type="onestepcheckout/summary" as="summary" name="onestepcheckout.summary" template="onestepcheckout/summary.phtml">
<block type="core/template" as="preview" name="onestepcheckout.summary.preview" template="onestepcheckout/preview/preview.phtml" />
</block>
<block type="checkout/onepage_payment_methods" name="choose-payment-method" template="onestepcheckout/payment_method.phtml" as="choose-payment-method">
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
</block>
</block>
</onestepcheckout_ajax_paymentrefresh>
<onestepcheckout_ajax_save_billing>
<block output="toHtml" type="onestepcheckout/billing" name="billing" as="billing" template="onestepcheckout/billing.phtml">
<block type="checkout/onepage_payment_methods" name="choose-payment-method" template="onestepcheckout/payment_method.phtml" as="choose-payment-method">
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
</block>
<block type="checkout/onepage_shipping_method_available" name="choose-shipping-method" template="onestepcheckout/shipping_method.phtml" as="choose-shipping-method" />
<block type="onestepcheckout/summary" as="summary" name="onestepcheckout.summary" template="onestepcheckout/summary.phtml">
<block type="core/template" as="preview" name="onestepcheckout.summary.preview" template="onestepcheckout/preview/preview.phtml" />
</block>
<block type="checkout/cart_totals" name="checkout.cart.totals" as="totals" template="checkout/cart/totals.phtml"/>
</block>
</onestepcheckout_ajax_save_billing>
<onestepcheckout_index_index>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
<action method="setHeaderTitle" translate="title"><title>Checkout</title></action>
</reference>
<reference name="head">
<action method="setTitle" translate="title"><title>One Step Checkout</title></action>
<action method="addItem"><type>skin_js</type><name>onestepcheckout/js/jquery-1.11.3.min.js</name></action>
<action method="addItem"><type>skin_js</type><name>onestepcheckout/js/remodal.min.js</name></action>
<action method="addItem"><type>skin_js</type><name>onestepcheckout/js/onestepcheckout.js</name></action>
<action method="addCss"><stylesheet>onestepcheckout/onestepcheckout.css</stylesheet></action>
<action method="addCss"><stylesheet>onestepcheckout/remodal.css</stylesheet></action>
<action method="addCss"><stylesheet>onestepcheckout/remodal-default-theme.css</stylesheet></action>
<!-- added by One Step Checkout support Madis -->
<action method="addJs"><script>amasty/ampromo/carousel-min.js</script></action>
</reference>
<reference name="content">
<!-- added by One Step Checkout support Madis -->
<block type="ampromo/add" name="ampromo.add" template="amasty/ampromo/add.phtml" />
<block type="onestepcheckout/checkout" name="onestepcheckout.checkout" template="onestepcheckout/checkout.phtml">
<block type="checkout/agreements" name="checkout.onepage.agreements" as="agreements" template="onestepcheckout/agreements.phtml"/>
<block type="onestepcheckout/fields" as="billing_address" name="onestepcheckout.billing.address" template="onestepcheckout/billing_fields.phtml" />
<block type="onestepcheckout/fields" as="shipping_address" name="onestepcheckout.shipping.address" template="onestepcheckout/shipping_fields.phtml" />
<block type="onestepcheckout/summary" as="summary" name="onestepcheckout.summary" template="onestepcheckout/summary.phtml" />
<block type="checkout/onepage_payment_methods" name="choose-payment-method" template="onestepcheckout/payment_method.phtml">
<action method="setMethodFormTemplate"><method>purchaseorder</method><template>payment/form/purchaseorder.phtml</template></action>
</block>
<block type="checkout/onepage_shipping_method_available" name="choose-shipping-method" template="onestepcheckout/shipping_method.phtml"/>
</block>
</reference>
<reference name="before_body_end">
<block type="core/template" template="onestepcheckout/login_popup.phtml" name="login-popup" />
<block type="core/template" as="preview" name="onestepcheckout.summary.preview" template="onestepcheckout/preview/preview.phtml" />
<block type="core/template" template="onestepcheckout/osc-google-places/oscgp.phtml" name="osc-google-places" />
<block type="onestepcheckout/deliverydate" template="onestepcheckout/deliverydate/datecontrol.phtml" name="deliverydate" />
<block type="core/template" template="onestepcheckout/ga_tracking/ga_tracking.phtml" name="osc_ga_tracking" />
<!-- added by One Step Checkout support Madis -->
<block type="ampromo/items" name="ampromo.items" template="amasty/ampromo/items.phtml" />
</reference>
</onestepcheckout_index_index>
<checkout_onepage_success translate="label">
<reference name="content">
<block type="onestepcheckout/register" name="onestepcheckout.register" template="onestepcheckout/register.phtml">
<block type="onestepcheckout/register" name="customer_form_register" template="onestepcheckout/register_form.phtml"/>
</block>
</reference>
</checkout_onepage_success>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment