Wednesday, November 25, 2015

Notify me when product is available notification in shopify

5:59 PM Posted by Ahmed No comments
It is very important for an ecommerce store to keep track of the products liked by their customers and make the customer aware when the products are back in stock. If you are not using backorders for your products, you need to inform your customers manually about the re-stocked items. However how would you know which product is like by which customer? or which customer is willing to make a purchase when the product of their choice is back in stock?

Well the solution is simple. Use a custom contact form on the product page that collects customers email and send the admin details of the customers email address along with their product choice.

open the product.liquid file and paste the below code at the position where you would like to show the option to customers to put their email address.

 {% unless product.available %}  
 <div id="sold-out">  
  {% form 'contact' %}  
   {% if form.posted_successfully? %}  
   <p class="accent-text">Thanks! We will notify you when this product becomes available!</p>  
   {% else %}  
   <p>Click <a id="notify-me" href="#"><strong>here</strong></a> to be notified by email when {{ product.title }} becomes available.</p>  
   {% endif %}  
   {% if form.errors %}  
   <div class="error feedback accent-text">  
    <p>Please provide a valid email address.</p>  
   {% endif %}  
   {% unless form.posted_successfully? %}  
   <div id="notify-me-wrapper" class="clearfix" style="display:none">  
    {% if customer %}  
    <input type="hidden" name="contact[email]" value="{{ }}" />  
    {% else %}  
    <input style="float:left; width:180px;" required="required" type="email" name="contact[email]" placeholder="" class="styled-input{% if form.errors contains 'email' %} error{% endif %}" value="{{ }}" />  
    {% endif %}  
    <input type="hidden" name="contact[body]" value="Please notify me when {{ product.title | escape }} becomes available." />  
    <input style="float:left; margin-left:5px;" class="btn styled-submit" type="submit" value="Send" />       
   {% endunless %}  
   jQuery('#notify-me').click(function() {   
    {% if customer %}  
    jQuery('#sold-out form').submit();   
    {% else %}        
    {% endif %}  
    return false;  
   } );  
  {% endform %}  
 {% endunless %}  

This tweak was taken from shopify official website. However they have removed this post since many developers have developed apps to include this functionality. You can either use this code or go for an app. Choice is yours.

Monday, November 23, 2015

How to add product sku to the product details page in shopify

4:57 PM Posted by Ahmed No comments
Many shopify themes do not include product sku display options by default and one may need to add them manually.

However, you must be a little familiar with Liquid code so that atleast you can figure out what code to be inserted and where.

I will show you the code to be added. But the location may vary depending on the theme which you are using.

1) From your Shopify admin, click Online Store, then click Themes (or press G W T):

2) click on dropdown and select EDIT HTML/CSS

3) Search for the file product.liquid and open it by selecting it. The file contents will open in the editor at the right side of the screen.

use CTRL + F to search for the codes in the editor.

4) Locate the position where you want to display your product sku. Most stores prefer to show the sku after the product title. in that case look for the term product.title and paste the following code below it.

 <div class="product-sku"><label>SKU</label> {{ product.variants.first.sku }}</div>  

Friday, September 11, 2015

How to remove network login credentials in windows 7

4:56 PM Posted by Ahmed No comments
Today we will talk about how to remove network login credentials in windows 7

Sometimes this issue arises when you are unable to login in to my network with the saved credentials.

If you have used "Remember Credentials" while first logging in the network, you do not get an option to enter the changed credentials again to the same network.

Here is what you need to do to delete the saved network credentials :

>Go to Run (Windows + R)
>Type "cmd" (without quotes) and hit enter
>in the command prompt type the following

 net use \\NETWORK PATH /delete  

replace NETWORK PATH with your actual network patch address.

Sunday, August 16, 2015

How to migrate from Blogger to WordPress

12:18 PM Posted by Ahmed , No comments
Well you might be thinking that why after such a long time i have taken up this topic when a lots of articles are already present on the internet.

The answer is that most of the articles are outdated. And i happened to transfer one of my blogs to wordpress and i was going through a few posts and they all seem to be outdated. Since in version 4.2, you do not get an option to AUTHORIZE the access.

So let me tell you some simple steps by which you can easily migrate your blog.

Please note that this articles is solely for the purpose of migrating blog posts. I have not included anything related to SEO in this blog.

Step 1 :

set the permalinks in your wordpress installation.

Go To Settings > Permalinks > and paste the following in custom structure :


See Image Below :

Step 2 :

Go to blogger dash board and go to Settings > Other > Export Blog

Download the XML file.

Step 3 :

Go to wordpress dashboard go to Tools > Import > Blogger

Select Install and run importer.

Step 4: After the installation is complete, the tool will ask you to upload an XML file. Now locate and upload the XML file downloaded from blogger in Step 2.

Then click upload and import.

Step 5: After the XML file has been imported, you will get an option to set the author name for the imported posts. Either you can select an existing user, or make a new user.

If you make a new user, your posts author, do not forget to set role, and password for the newly created user.

I hope this will help you atleast import all your blogger posts to WordPress safely.

Monday, August 10, 2015

How to embed html audio player in any website

1:49 AM Posted by Ahmed No comments
Most of us want to embed additional functionalities to our website without increasing the load time.

For WordPress users, the use of additional plugin will increase the load time of website in most of the cases.

The best way is to use HTML codes which will not require any additional plugin. It will simply work on the website.

For including the audio player in your website, use the code shown below :

 <audio controls>  
  <source src="yourfile.ogg" type="audio/ogg">  
  <source src="yourfile.mp3" type="audio/mpeg">  
  Your browser does not support the audio element.  

Remember to replace yourfile.ogg/yourfile.mp3 with the actual location of your audio file.
If you are using only mp3 files, you can remove the line which includes .ogg file.

Your audio player will look like this :

There are additional functionalities which you can add to this simple player.

1)Adding Autoplay to audio player

For making the player auto play the audio file as soon as the visitors opens your page, you just need to add "autoplay" in the first line.

Now your code will look like :

 <audio controls autoplay>  
  <source src="horse.ogg" type="audio/ogg">  
  <source src="horse.mp3" type="audio/mpeg">  
  Your browser does not support the audio element.  

2) Restricting the player to auto stream content when the page is loaded

Whenever the page where the audio player is opened, the audio player will start to stream the audio file so that when the user plays the audio, it is available without buffering.

However, in certain cases when there are multiple audio embedded in a single page, for example say a page which contains a music album, in that case, if the audio player stream all of the audio, then it will surely affect the visitors internet speed and data. Also if a visitor is on the webpage to listen only one of the several audios, still the audio player will stream all the audio files.

To restrict the preloading of audio files, use the code preload="none"

the modified code will look like :

 <audio controls preload="none">  
  <source src="horse.ogg" type="audio/ogg">  
  <source src="horse.mp3" type="audio/mpeg">  
  Your browser does not support the audio element.  

Sunday, March 1, 2015

How to disable right click on your website

3:00 PM Posted by Ahmed No comments

There are some websites which do not want their data to be copied or they just want to disable a right click on their website.

Whatever the reason may be... Lets see how we can do this by just using a simple code.

Use the below code on your website :

 <body oncontextmenu="return false;">   

Place this code after <head> tag on your website. This code will work on majority website.

However for security reasons, i would suggest you to take the backup of the original file and then use this code, so that if anything goes wrong, you still have the actual source code.

Always remember, whenever you do a tweak, you should keep a habit of taking backups of the existing files. This will help you in saving your time and efforts for the customization and/or tweaks already done.

Saturday, January 24, 2015

How to display pdf file in blog post or page in wordpress

12:29 AM Posted by Ahmed No comments

view pdf in wordpress page

One of my friend asked me that how he can embedd a pdf file in a page in wordpress website and also be available for download.

Let me show you how i did this by using a simple wordpress plugin.

The plugin we are going to use here is Google Doc Embedder

Download the plugin from wordpress plugin directory or just go to dashboad > Plugins > Add New and search for Google Doc Embedder.

Install the plugin and activate it.

After activating the plugin go to the post or page where you want to embedd the pdf file and use the following code

[gview file=""]

replace the red text with actual pdf url and publish the post.

Enjoy ;-)

Tuesday, December 30, 2014

How to disable USB port in windows 7?

2:10 AM Posted by Ahmed No comments
Many of the professionals come across a situation when they do not want their employee to transfer the confidential data to their storage devices. However still they want to keep the USB ports open for Keyboard, Mouse and Wireless dongle to connect to a wifi.

It is very easy to do so in windows 7.

Follow the below steps and you are done with blocking your usb ports for storage devices.

(1) Go to Run by pressing Windows + R and type regedit as shown below :

If asked for UAC click on Yes

(2) In the registery editor window click on HKEY_LOCAL_MACHINE as shown below:

(3) Then Select SYSTEM

(4) Then select CurrentContolSet

(5) Then Select Services

(6) Browse down and select USBSTOR as shown below

In the right window double click on Start.

A dialog box will appear with Value data as 3 as shown below :

Change the value to 4  and click on OK.

You are done. Now you can plug in your Pendrive/usb storage in any of your USB port and you will notice that the Pendrive/usb storage will not be recognized.

Saturday, March 1, 2014

Wordpress Plugins

11:02 PM Posted by Ahmed No comments
>Wordpress Plugin Market place

Hi friends,

Many of you might be familiar with the famous blogging platform i.e. Wordpress. Many of you might be using the same. Sometime it becomes essential to use extra modules which we call as Plugins in wordpress to extend the functionality as per our needs. I have many people paying hundred of dollars for adding just simple funcationalities to their blog or website. So i thought to share a link with my readers so that they can choose from a very cost effective option.

Follow along this link provided below to check one of the biggest market place for wordpress plugins. You can find here thousands of wordpress plugin for almost every functionality you can think of adding to your blog or website.


Tuesday, February 4, 2014

How to display your Twitter Tweets on your Facebook profile?

11:18 PM Posted by Ahmed No comments
Facebook and Twitter are the largest social networking sites in the world.Facebook is used by 421 million worldwide and Twitter is used by almost 200 million by the end of 2013.These are the most important tools for Bloggers to drive traffic to their websites.
Posting the posts to both Facebook and Twitter takes a lot of time.
Many people depend on 3rd party applications to post them automatically.Recently Twitter had launched its official linking with Facebook.Now tweets you tweet in Twitter will directly appear on Facebook by doing a small setting.Follow these simple steps.

Steps To Show Your Tweets On Facebook:

1.Log in to your Twitter account.
2.Now go to User-drop menu and select settings.

3.Now select profile on left side and click on "Connect to Facebook" option.
4.Now sign in to your Facebook account and select your privacy and allow the permission for the app.

5.Now go back to your twitter account(settings) and you can select the pages in which you want to post your tweets.
6.Select the pages and save the changes.

7.You are done.

If you are a heavy tweeter i.e, you tweet heavily I prefer not to do this. It may annoy your friends,visitors etc.

Courtesy :