Kiedy wybieram dany produkt i chce go dodać do koszyka zwraca mi taki błąd:
Kod: Zaznacz cały
Fatal error: Call to a member function getCollection() on a non-object in /home/users/domena/public_html/app/code/core/Mage/Sales/Model/Quote/Address.php on line 246
Zawartość Address.php:
Kod: Zaznacz cały
238 /**
239 * Retrieve address items collection
240 *
241 * @return Mage_Eav_Model_Entity_Collection_Abstract
242 */
243 public function getItemsCollection()
244 {
245 if (is_null($this->_items)) {
246 $this->_items = Mage::getModel('sales/quote_address_item')->getCollection()
247 ->setAddressFilter($this->getId());
248
249 if ($this->getId()) {
250 foreach ($this->_items as $item) {
251 $item->setAddress($this);
252 }
253 }
254 }
255 return $this->_items;
256 }
Doszedłem już naprawdę daleko, sklep jest praktycznie gotowy a nie działa jego najważniejsza część. Myślę że dla wprawionego użytkownika / programisty Magento to 5 min roboty więc 50-80zł za taką pomoc to dobra cena
