Category: open source

Magento problem with Paypal Express and new customer registration [Solved]

You know there is this problem with Magento 1.4.* and 1.5.*, if you are using Paypal Express as payment method and your customer is a new one, when she/he complete the order this is without account association (Customer Group 0 USER NOT LOGGED IN) and the new customer is not created. To solve this problem [...]


AWS EC2 Manage Snapshot Backup with PHP SDK

This is a simple script based upon AWS SDK PHP to manage volume’s snapshots. It simply create one snapshot per volume (once you run it) and delete snapshot older then 1 month. Please provide your personal information by copying config-sample.inc.php into config.inc.php. Run the script backup-snapshots.php with your CRON. For example: # Auto AWS Snapshots [...]


Magento add Bestseller products by date range

Here is how to get a collection of products best sold in a given date range (could be daily, monthly, weekly, etc…) <ul> <?php $from = date("Y-m-d H:i:s", (time()-2592000)); $to = date("Y-m-d H:i:s", time()); $_productCollection = Mage::getResourceModel('reports/product_collection') ->addAttributeToSelect('*') ->addOrderedQty($from, $to, true) ->addAttributeToFilter('status', 1) ->setOrder('ordered_qty', 'desc') ->getSelect()->limit(10)->query(); foreach ( $_productCollection as $prod ) : $_product = [...]


Magento adding you own custom RSS Feeds

You know you will need, before or after, to add your own custom RSS feeds to your Magento. For example, I needed to create some custom RSS Feeds to list bestseller products by date (bestseller weekly, monthly, etc…) How to do it? It’s quite complex but not so much if you follow this mini tutorial: [...]


Magento adding downloadable product to cart by coding php

Probably you know it’s possible to add a product to the cart via querystring, but may be you prefer code a new module for your needs using Magento objects and methods. So adding a simple product is easy: … $cart = Mage::getSingleton('checkout/cart'); // start adding the product try { $cart->addProduct($product, array('qty' => 1)); // save [...]


Integrate WordPress functions on Magento

Per integrare tutte le funzioni di WordPress su Magento in modo da poter fare chiamate come wp_list_pages(), wp_list_categories() o la famosa WP_Query, basta far caricare WordPress da Magento prima che si carichi lui stesso (per evitare il sovrapporsi di header e funzioni varie). Aprite il file index.php di Magento, all’inzio inserite le due righe: define('WP_USE_THEMES', false); require('/<you absolute path to wordpress root>/wp-load.php'); [...]


Best Google Chrome Extensions SEO, Screenshot, Delicious…

Here is my current Google Chrome extensions I use every days, hope you find something useful. You could find your best extensions in the official Google Chrome Extensions site. SEO Status Pagerank/Alexa Toolbar SEO Status is lightweight. It will check the Google Pagerank (PR) & Alexa rank for every page. Using this will increase your [...]


Magento ecommerce tips & tricks

Tanto per non scordarmeli appunto alcuni suggerimenti molto utili sulla gestione di Magento: per disabilitare la frase “Exception printing is disabled by default for security reasons” quando occorre un errore e farlo printare a schermo basta modificare il file “errors/local.xml.sample” se invece non volete abilitare il printing (che e’ meglio) ma volete comunque vedere di [...]


Best eCommerce shopping cart solutions

Avendo da poco intrapreso questa angosciante e alquanto caotica ricerca per l’azienda per la quale lavoro, ho deciso di mettere a disposizione il quadro finale che stiamo usando per decidere quale soluzione alla fine adottare, spero possa servire ad altri. Requisiti: hosted o meno non e’ importantissimo esportazione dei dati via sistemi come feed/rss/xml/API sistema [...]


WordPress plugin for mobile touch device & how to take iPod, iPhone screenshots

Navigando casualmente il blog di Antonio Tombolini sull’iPod touch aziendale che usiamo per le prove e le verifiche delle nostre (vedi Simplicissimus Book Farm) applicazioni ho scoperto con grande meraviglia questo bellissimo e utilissimo plugin per WordPress che ormai tutti dovrebbero adottare nel proprio blog. Il plugin in questione e’ WPTouch che permette di trasformare [...]


Categories