I am learning Magento and trying to create a shipping method that appears only when the subtotal of the cart is over than $100.
I tried to getSubTotal()
in function collectRates()
, then return false
if the return value smaller than 100. However, it always returns 0
. I guess it had not been calculated at that step, is that true?
And is there any other way I can do what I wanted?
Please help... Thank you a lot!