0

in app/code/core/Mage/Sales/Model/order.php there's a method getBaseShippingAmount(); I want to know where is this function defined?

1 Answer 1

3

There is a field in order table with name base_shipping_amount and getBaseShippingAmount() returns the value of the field for the order object. It is handled by ORM and this is not defined statically something like

public function getBaseShippingAmount(){ }

This is defined some where dynamically. for reference you may check this link

https://gielberkers.com/magentos-magical-getters-setters-demystified/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.