
Public Member Functions | |
| getReview () | |
| getBillingAddress () | |
| getShippingAddress () | |
| getAddress () | |
| getShippingRates () | |
| getCarrierName ($carrierCode) | |
| getAddressShippingMethod () | |
| setMethod ($varName) | |
| getShippingPrice ($price, $flag) | |
| formatPrice ($price) | |
| isVirtual () | |
Protected Attributes | |
| $_method = 'express' | |
Definition at line 34 of file Review.php.
| formatPrice | ( | $ | price | ) |
Definition at line 107 of file Review.php.
00108 { 00109 return $this->getReview()->getQuote()->getStore()->convertPrice($price, true); 00110 }
| getAddress | ( | ) |
Definition at line 57 of file Review.php.
00058 { 00059 if (empty($this->_address)) { 00060 $this->_address = $this->getReview()->getQuote()->getShippingAddress(); 00061 } 00062 return $this->_address; 00063 }
| getAddressShippingMethod | ( | ) |
Definition at line 92 of file Review.php.
00093 { 00094 return $this->getAddress()->getShippingMethod(); 00095 }
| getBillingAddress | ( | ) |
Definition at line 47 of file Review.php.
00048 { 00049 return $this->getReview()->getQuote()->getBillingAddress(); 00050 }
| getCarrierName | ( | $ | carrierCode | ) |
Definition at line 84 of file Review.php.
00085 { 00086 if ($name = Mage::getStoreConfig('carriers/'.$carrierCode.'/title')) { 00087 return $name; 00088 } 00089 return $carrierCode; 00090 }
| getReview | ( | ) |
Get PayPal Express Review Information
Definition at line 42 of file Review.php.
00043 { 00044 return Mage::getSingleton('paypal/express_review'); 00045 }
| getShippingAddress | ( | ) |
Definition at line 52 of file Review.php.
00053 { 00054 return $this->getReview()->getQuote()->getShippingAddress(); 00055 }
| getShippingPrice | ( | $ | price, | |
| $ | flag | |||
| ) |
Definition at line 102 of file Review.php.
00103 { 00104 return $this->formatPrice($this->helper('tax')->getShippingPrice($price, $flag, $this->getAddress())); 00105 }
| getShippingRates | ( | ) |
Definition at line 65 of file Review.php.
00066 { 00067 if (empty($this->_rates)) { 00068 #$this->getAddress()->collectShippingRates()->save(); 00069 00070 $groups = $this->getAddress()->getGroupedAllShippingRates(); 00071 /*if (!empty($groups)) { 00072 $ratesFilter = new Varien_Filter_Object_Grid(); 00073 $ratesFilter->addFilter(Mage::app()->getStore()->getPriceFilter(), 'price'); 00074 00075 foreach ($groups as $code => $groupItems) { 00076 $groups[$code] = $ratesFilter->filter($groupItems); 00077 } 00078 }*/ 00079 return $this->_rates = $groups; 00080 } 00081 return $this->_rates; 00082 }
| isVirtual | ( | ) |
Definition at line 112 of file Review.php.
00113 { 00114 return $this->getReview()->getQuote()->getIsVirtual(); 00115 }
| setMethod | ( | $ | varName | ) |
$_method = 'express' [protected] |
Definition at line 36 of file Review.php.
1.5.8