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
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…
My biggest unexpected surprise this Chrimbo was a Raspberry Pi development kit, from my lovely fiance Fi. Now; being a dreamer with a long list of devices I want to build (most of which run…