Category Archives: PHP

Recently viewed products with Magento, Turpentine, Varnish

So, we’ve a Magento EE 1.13 with multiple backend servers and Varnish cache server managed by Turpentine, pretty common setup in the Magento EE world.

Everybody knows that tracking what users does it’s really hard with this setup, cause we don’t want to have calls going to the backend servers (they’ll create a higher load) but Varnish is not going to tell Magento “hey this users just visited this product” thus a lot of features will not work anymore (at least recently viewed products and customer segmentation). Continue reading

P4A 4.0 update

Just a quick update on the development, please follow quicker on p4a’s facebook page:

  • products catalog is acting as a skeleton application from now on, so it’s been moved to a separate repository: https://github.com/fballiano/p4a-products-catalog
  • products catalog now has full composer support to install zend framework and autloading everything (check composer.json if you need to add things)
  • p4a’s repository has been stripped down removing applications/icons and some other thigs
  • at the moment i suggest you not to clone p4a’s repository cause i’m heavily moving things and refactoring so it’s really difficult for anyone to make an application run

we’re moving, we’re moving, expect more info soon!

So you want PayPal Express Checkout on Magento 1.3?

And you get some weird errors…
open your app/code/core/Mage/Paypal/Model/Api/Nvp.php file and search for SOLUTIONTYPE, change its value to “mark”.

Edit your PayPal preferences from Magento backend and use this PayPal Url:
https://www.paypal.com/au/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token=

You should be done.
Good luck.