DEVELOPER’SGUIDE1.5
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
www.belvg.com - Ecommerce Solutions and third party software integration<br />
Step 4 (Shipping). At this step the delivery methods for the existing order are specified. Since this<br />
step requires much logic, it will be described in a separate article.<br />
Step 5 (Payment). Paying for the order via the selected method. Since this step requires much logic,<br />
it will be described in a separate article.<br />
If your store uses a one-page checkout design, the entire logic will be managed by the controller<br />
OrderOpсCоntrоller . And as this is a one-page design, all requests to the controller are executed via<br />
Ajax. The requests are processed by the method OrderOpсCоntrоller: :init( ).<br />
Both controllers OrderCоntrоller and OrderOpсCоntrоller are inherited from the class<br />
PаrentOrderCоntrоller which configures general checkout settings. This prevents code duplication<br />
and leads to a more standard view. For example, PаrentOrderCоntrоller verifies which type of<br />
design is enabled in the settings and, depending on this, redirects to the necessary checkout<br />
controller.<br />
So which settings can be configured for checkout? Let’s look at the main ones (the path in the admin<br />
menu: Preferences -> Orders).<br />
41