Get Directions From Google Maps Form
Snippet: Simple form to pop up a google maps page with directions.
Snippet: Simple form to pop up a google maps page with directions.
Finding that your breadcrumbs aren’t working in 1.9? Replace the call with <?php echo $this->getLayout()->getBlock(“breadcrumbs”)->toHtml()?>
So I needed a slightly customised advanced search for a client. Really I just needed 1 attribute and prices to be searchable from every page on the site. <?php $catalogSearchHelper = $this->helper(‘catalogsearch’); ?> <?php $maxQueryLength=…
From Mukesh Chapagain's Blog (http://blog.chapagain.com.np/) - Copied below in case of Link Death
In my previous post I showed you some code discovered in a website, which would show you how much you were saving in both currency and percentage on the price output. However my client wanted…
An interesting snippet of code landed on my desk today: <?php if($_finalPrice < $_price): ?> <?php <?php $_savePercent = 100 – round(($_finalPrice / $_price) * 100); $_saveAmount = number_format(($_price – $_finalPrice), 2); ?> <p class=”yousave”>…
This was bugging me at work today, found the answer at Stack Overflow http://stackoverflow.com/questions/13504056/magento-tier-prices-class-declaration-for-tier-price-in-buy-x-for-y-javascri/16022796#16022796 Essentially, when you have a product set up for tiered pricing everything works great until you add custom options to the…
Firstly a little background. Our client has two sets of products which have custom finishes. 7mm Products and 10mm Products. These are grouped in attribute sets called 7mm Finishes (attributesetid == 16) and 10mm Finishes…
If you find yourself repeatedly receiving messages like: ERROR: Unable to unpack /public_html/downloader/pearlib/download/some_awesome_module.tgz After checking permissions (which should be right to have gotten this far) you could try the fix below. Tar <- download this tar.php…
http://web.enavu.com has regularly made to it to the front of my reading list – the great thing about smart phones is the ability to read anywhere (except whilst driving, but then you just get the phone…