Skip to main content
2 votes
Accepted

I got hacked - Magento 1.7.0.1 problem when applying patch

First of all, just in case it is not obvious: Patching a hacked site does not solve the hack. You prevent further hacks, which is important, but as the server is already compromised there could be ...
Fabian Schmengler's user avatar
1 vote
Accepted

Programmatically create new customer and assign current quote

EDIT: This script works. Tested. try { // create customer $websiteId = Mage::app()->getWebsite()->getId(); $store = Mage::app()->getStore(); $firstname = "Firstname"; $...
Hector Andres Rojas's user avatar
1 vote

How to get recently viewed products by customer id?

Based on @Ramses answer I've created a method that also can return guests viewed products: public function getRecentlyViewed() { $customerSession = Mage::getSingleton('customer/session'); if ($...
shemaya's user avatar
  • 115
1 vote
Accepted

How to get recently viewed products by customer id?

Here's how I ended up solving this problem public function getRecentlyViewedByCustomer($customerId, $categoryId, $limit = 5){ $resource = Mage::getSingleton('core/resource'); $readConnection =...
Ramses's user avatar
  • 295

Only top scored, non community-wiki answers of a minimum length are eligible