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… Read More »Hacking form.mini.phtml – list all options of an attribute
Magento – get controller name, action name, router name and module name in template file or in any class file
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… Read More »Magento 1.7 – Hiding Part of Price.phtml
An interesting snippet of code landed on my desk today: <?php if($_finalPrice < $_price): ?> <?php <?php $_savePercent = 100 – round(($_finalPrice / $_price) *… Read More »Magento 1.7 – Show Amount Saved as Currency and Percentage per product
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… Read More »Magento 1.7 Product with Options and Tiered pricing showing wrong percentage discount (100%)
We were clever this time, booking a hotel room the night before. We had to journey from Newton Aycliffe to Cumbernauld, then to Cupar, back to Cumbernauld to collect everyone for this con, it was going to be rough. In fact, I took the Friday off work to really make sure we were ready for it!