Export Guest customers in Magento 1.*

Export guest customer in Magento

There are times when you want to promote your products to a guest customer. You might want to send newsletters or promos to a guest customer to bring them back and buy your products or for marketing campaigns.

But Magento doesn’t provide any way to export guest customer from admin panel. So, we will learn an easy way to export guest customer on your Magento website. Continue reading “Export Guest customers in Magento 1.*”

Quick Tip: How to Use Shortcodes Within Widgets

Shortcodes has been in WordPress for quite some time. It allows developers to add more or less complex features in plugins and themes without user having to write single HTML code.

By default, shortcodes runs only in editor. If you want to use shortcodes in widgets, it’s not possible. But a single line of code will allow you to add shortcode in widget.

WordPress comes with plethora of widgets by default. One of such widget is “Text Widget”. This widget allows you to add any text and HTML code in it. To run shortcode in it, we will be using “widget_text” filter. This filter allows you to modify content of “Text Widget”. We will be using “do_shortcode” as a callback function in this filter. “do_shortcode” function renders shortcode for you.

The code below can be used in a theme functions.php file to run shortcode:

add_filter('widget_text', 'do_shortcode');

You can learn more about built-in shortcode in WordPress here.

You can get more details regarding shortcode API here.

Emmet for faster HTML and CSS coding

Let’s Start High Speed Coding!

In 2009, Sergey Chikuyonok started project Zen Coding, later (2012) rename as Emmet, one of the most popular free plugin for text editors to write HTML and CSS code faster. Emmet is web developer toolkit written in pure JavaScript and works across different platforms.  It saves time, save our time from lot of typing and makes writing code like fun.

Emmet is collection of abbreviations that expand input abbreviation into valid HTML/CSS. Once we get used to the Emmet syntax, it will change the way of writing HTML and CSS code. When you use it in our workflow it will definitely boost up productivity so let start using it.

“Emmet (previously known as Zen Coding) is a web-developer’s toolkit that can greatly improve your HTML & CSS workflow:” Emmet web site

Continue reading “Emmet for faster HTML and CSS coding”