Yet another blog (hopefully a useful one though)
ben
This user hasn't shared any biographical information
Homepage: http://www.msinternet.co.uk
Posts by ben
Magento – Show cart quantity
March 6, 2010 - 1:05 pm
Tags: Magento, php
Posted in General | 4 comments
If you’re putting a shopping cart area anywhere other than the standard cart side block, then you’ll probably want to show how many items are in the cart at any one time. Here’s how:
Magento – Handy code snippets
Here’s a short list of magento codes to do some of the simple stuff. It’s a little empty at the moment but I’ll keep adding to it over time. Check if customer is logged in <?php $_customer = Mage::getSingleton(‘customer/session’)->isLoggedIn(); if ($_customer) { // do stuff } ?> Get product image <?php echo $this->helper(‘catalog/image’)->init($_product, ‘image’); ?> [...]
Magento – Show image from a random product in a specific category
March 6, 2010 - 12:39 pm
Tags: Magento, php
Posted in Code, Magento | 3 comments
A website we developed recently required some boxes on the homepage that link through to a specific category each, and each box needed to show an image from a random product from within that category. If you would like to do the same, here’s how it’s done: Create a PHTML file in your template folder, [...]
Magento – Swap product image on thumbnail click
March 6, 2010 - 12:10 pm
Tags: Magento, php
Posted in Code, Magento | 6 comments
One of the most frequent requests we get for Magento sites is to tame what the thumbnails do on the product page. Of course there are plenty of plugins for adding a lightbox of some sort, but if you simply want to swap out the image in the zoomer window for one of the thumbnails, [...]