Blog
Early this week, Google implemented a notice message to let it’s searchers from the EU know that they are using cookies on their website. This notice comes after the pressure from EU to get Google compliant under the EU’s Cookie Law. The notice says that by using Google’s search searchers are agreeing to allow Google [...]
To get the URL key / identifier of any CMS page in Magento, use the following bit of code. This will return the path that comes after the website’s URL. For example, the URL identifier for the About Us page might be about-us and not the full URL like http://www.yourwebsite.com/about-us/. If you want the full [...]
Within your Magento Controller > Action you can use the below code to send a JSON response. Read this post on how to use Magento’s core helper to encode and decode JSON.
To JSON encode an array To JSON decode an array
While developing Magento websites, you might wish to check to find out if a module is installed before proceeding to use that module’s functions. You can do so by using the following bit of code.
The following piece of code can pull any attribute of the products in the shopping basket. This code can be used anywhere on the website.