Magento Optimizations

Magento sales transactional email – highlight if billing address equals shipping address

Insert this code on the desired place in the .html transactional email (deepter in the locale folder): {{block type=’core/template’ area=’frontend’ template=’email/shippingcheck.phtml’ order=$order}} Then create the file in the template you’re using (app/design/frontend/default/default/template/email/shippingcheck.phtml) for example. Insert the following content:

Magento sales transactional email – highlight if billing address equals shipping address Read More »

Magento remove images of deleted products

Clean up not used Magento images Magento unfortunately does not remove images of a product unfortunately if the product is removed. The following script checks all the images and checks if it’s still present in the database of Magento. If not, it deletes the image. Use the following code: Clean up Magento space: could save

Magento remove images of deleted products Read More »

Load normal product price instead of indexed product price

Would you like to ignore the indexed product price in the templates (for example in catalog/product/list.phtml where the indexed price is used)? Then go to: catalog/product/list.phtml Change: With: There are two occurrences in list.phtml, so don’t forget to replace it twice. Only do this when it’s the only solution of displaying right prices, since loading

Load normal product price instead of indexed product price Read More »

Magento Contact Form Attachment Functionality

Would you like to have attachments in your contact form in Magento? Do the following: Clone the zip of this github: https://github.com/yogisfunda/magento-contact-form-attachment Upload (merge) the files into the public_html directory Recompile/flush cache Go to your-site.com/contacts If the form does not changes or there’s a blank page, move the contents of the frontend/default part to frontend/base. You

Magento Contact Form Attachment Functionality Read More »

One Step Checkout – show shipping methods after postcode entered

Would you like to show shipping methods of a one step checkout plugin after that a postcode is entered? Go to the file app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml and replicate this file in your default interface/theme. Within the file, after (about line 31): Add: And close the else tag at the end. You can do this with countries, cities,

One Step Checkout – show shipping methods after postcode entered Read More »

Magento Direct SQL Queries

Queries for fetching in an array /** * Get the resource model */ $resource = Mage::getSingleton(‘core/resource’); /** * Retrieve the read connection */ $readConnection = $resource->getConnection(‘core_read’); $query = ‘SELECT * FROM ‘ . $resource->getTableName(‘catalog/product’); /** * Execute the query and store the results in $results */ $results = $readConnection->fetchAll($query); /** * Print out the results

Magento Direct SQL Queries Read More »

Magento A/B testing or Multivariate testing – Php script

Split test A/B PHP Script Magento is quite limited in tools like conversion optimalisation like A/B testing or multivariate testing. That is why I created a very simple php script that you can put directly into a phtml file. It’s a bit hacky, that it’s not via the core, but it works though and is

Magento A/B testing or Multivariate testing – Php script Read More »

Lesti::Fpc and layered navigation (Vinagento and Amasty)

How to let Lesti::FPC Full page caching work with Vinagento Layered Navigation in Ajax mode? I just tried some random settings and this seemed to work: In System->Configuration->Sytem->Lesti FPC add the following to Session Params: catalogsearch_advanced_result_ajax, catalog_category_ajax_view, catalog_category_layered_ajax, catalogsearch_result_ajax In System->Configuration->Sytem->Lesti FPC add the following to Uri Params: id, category, page_id, p, limit, dir, order,

Lesti::Fpc and layered navigation (Vinagento and Amasty) Read More »

en_USEnglish
Scroll to Top