Biz Connection FREE TRIAL + $75 GOOGLE ADWORD - FREE VOUCHER for YOU!

Checkout flow – Order -ZenCart

The most “interesting” part is the step 2 of 3 – Payment Information because here is computed the order value including any discount, here the user can redeem his code and here the user will choose the payment option.

We assume  that the user is in this page :checkout_payment

1)  the address has been selected in the previous step.

2) how the total to pay si computed:

- all payment modules enabled are scaned and the “process” method for every single “module” class is executed.

For example:

The system load all php files  which contain classes about payment  :

In /includes/modules/order_total
are loaded the following files:
- ot_lev_discount.php
- ot_subtotal.php
- ot_coupon.php
- ot_tax.php
- ot_loworderfee.php
- ot_gv.php
- ot_total.php

In every single  file above mentioned  is defined the corresponding class. Every class has a standard structure ( methods).

The “process” method is called in  checkout_payment:

- /includes/modules/pages/checkout_payment/header_php.php
- /includes/templates/YOURTEMPLATE/templates/tpl_checkout_payment_default.php

checkout_payment

Related articles

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Comment