fredag den 22. januar 2016

error about local\Amasty\Rules\Model\SalesRule\Rule\Condition\Product\Combine.php

ERROR about
local\Amasty\Rules\Model\SalesRule\Rule\Condition\Product\Combine.php
Using $this when not in object context

Do

if (!$object->getConditions()) {    return true;}


instead of

if (!$this->getConditions()) {    return true;}

because $this is non static.

Random ting

Select all products with no categories

SELECT e.entity_id, l.category_id FROM catalog_product_entity AS e LEFT JOIN catalog_category_product AS l ON l.product_id = e.entity_id WHERE l.category_id IS NULL

Update all of them... to have a category
http://magento.stackexchange.com/questions/41387/update-products-without-category
But does not work.

Idea...
Insert all catalog_product_entity.entity with NULL into catalog_category_product -> (category_id, product_id)

INSERT INTO catalog_category_product (category_id, product_id) VALUES(1,2),(4,5)



Fatal error: Call to a member function getCode() on a non-object in C:\wamp\www\stylepaste\app\code\core\Mage\Customer\Model\Session.php on line 71

do n98-magerun.phar local-config:generate
maybe and remember to import the database by using either phpmyadmin->(nameOfDatabase)->import 
or 
go into the install page. 


get out of vi:
esc -> : -> q

find declaration:
escapeHtml() by doing 
ctrl-f function escapeHtml(

nano ./onestepcheckout/helper/checkout 

set den til at være true



 * @var  Mage_Sales_Model_Order_Item $_item Kopi af dataer som har products
 * @var Mage_Catalog_Model_Product $_product products som er i DB (ændringer her sker også her).