Certificated magento

Q8.27) What is the difference between payment method and payment classes (such as order_payment, quote_payment, etc.)?

Q8.27) What is the difference between payment method and payment classes  (such as order_payment, quote_payment, etc.)?

Payment model is an abstract of an instance of payment method and it works with database. Payment model can be:   Mage_Sales_Model_Order_Payment or Mage_Sales_Model_Quote_Payment  - tables sales_flat_order_payment and sales_flat_quote_payment. Quote_Payment doesn't have any method to process an order.

Read more

8.28) What is the typical structure of the payment method module?

8.28) What is the typical structure of the payment method module?

http://goweb.vn/kien-thuc-web-vi/thiet-ke-web/84payment-methods-1006.html

Read more

8.30) How does the storage of quotes for multishipping and onepage checkouts differ?

8.30) How does the storage of quotes for multishipping and onepage checkouts differ?

- In multishipping, one more db table is used i.e. sales_flat_quote_address_item

Read more

Q8.32) What is the difference in the multishipping processing for a quote with virtual products in it?

Q8.32) What is the difference in the multishipping processing for a quote with virtual products in it?

- If all items in the quote are virtual, then billing address is used for calculation of all the totals of the order, since items will be assigned to billing address. If items are not virtual, then shipping address will be used.

Read more

9.0) Describe order creation in the admin

9.0) Describe order creation in the admin

From Magento 1.4, administrators can create order for customers in the back-end. It helps admin easily manage his store activity when customer doesn’t place order on the website. This part will guide you how to create order in admin panel step by step and also mention the way to calculate price when an order is created...

Read more

Q9.0)Which classes are involved in order creation in the admin? What are their roles (especially the role of adminhtml classes)?

Q9.0)Which classes are involved in order creation in the admin? What are their roles (especially the role of adminhtml classes)?

Mage_Adminhtml_controllers_Order_CreateController  Mage_Adminhtml_Model_Sales_Order_Create

Read more

Q9.4) What is the difference between order status and order state?

Q9.4) What is the difference between order status and order state?

If you are building website in Magento, you may have noticed that there are two columns in sales_flat_order table which are confusing. These are state and status. You might think what is the difference between these two, both having same meaning.   Well, this is not the case. They both are different. State is used...

Read more

Q9.5) Which classes and methods are responsible for credit card operations (for example authorization or capturing)?

Q9.5) Which classes and methods are responsible for credit card operations (for example authorization or capturing)?

Mage_Payment_Model_Method_Cc Mage_Payment_Model_Method_Abstract::authorize() and capture()

Read more

Q9.6) What is the difference between “pay” and “capture” operations?

Q9.6) What is the difference between “pay” and “capture” operations?

- pay() – Register payment fact: update self totals from the invoice / Update totals… - capture() – Capture the payment online * Requires an invoice. If there is no invoice specified, will automatically prepare an invoice for order * Updates transactions hierarchy, if required * Updates payment totals,...

Read more

9.1) Invoice magento

9.1) Invoice magento

An invoice is created when a customer pays for his order. If the order uses an online payment method, the invoice will be created automatically. If not, invoices are manually created by the administrator in back-end. I-Invoice Model   Invoice model (Mage_Sales_Model_Order_Invoice) works with invoice data. Magento...

Read more

9.2) Shipment Magento

9.2) Shipment Magento

Coming back to our topic: Sales and Customer. In this part, I’ll talk about the shipment, the next step of sale process.   I-Shipment Model   Shipment model (Mage_Sales_Model_Order_Shipment) works with shipment data. Magento allows you to create many shipments for an order with items which can ship separately....

Read more

9.3) Refund Magento

9.3) Refund Magento

A refund usually refers to the reimbursement of funds to a customer for a product or service provided. Magento framework will create a Credit Memo for the returned orders. I-Overview   Refund, in somehow, is a reverse process of the payment process. Magento uses the mode Mage_Sales_Model_Order_Creditmemo to...

Read more

9.4) Customer Management

9.4) Customer Management

Before we proceed further, let me ask you a very simple question: “What is the basic difference between a successful and an unsuccessful business?” A business is successful only when its products and services have enough buyers in the market. Yes, there are several other parameters also but customers play a...

Read more

9.5) Cancel Operations magento

9.5) Cancel Operations magento

This lesson refers to cancelation, which is an important operation since everyone can make a mistake sometime, right? It allows admin to cancel a wrong action while processing the order. I-Order entities support cancel Not all of order’s entities in Magento support cancelling operations (the shipment for example),...

Read more

Q9.14) Which classes are involved, and which tables are used to store refund information?

Q9.14) Which classes are involved, and which tables are used to store refund  information?

 Mage_Sales_Model_Order_Creditmemo  sales_flat_creditmemo sales_flat_creditmemo_..

Read more

Q9.16) How does Magento process shipping fees when refunding an order?

Q9.16) How does Magento process shipping fees when refunding an order?

 - It is equal to the full Shipping Amount from the order minus the Shipping Refund, which is the amount that has already been refunded. Like the quantity, the amount can be reduced, but not increased.

Read more

Q9.17) What is the difference between online and offline refunding?

Q9.17) What is the difference between online and offline refunding?

 - If you do an online refund the money will actually be transferred back to the customer. If you choose offline refund (or offline is the only available option) you need to make sure the customer gets his/her money back via other means. Most often you would log into the control panel for your payment gateway and...

Read more

Q9.23) How is customer information validated?

Q9.23) How is customer information validated?

 - customer address validation at checkout: Mage_Sales_Model_Quote_Address extends Mage_Customer_Model_Address_Abstract

Read more