Foysal Ahmed - eCommerce Business Developer

Author: Foysal

I'm a Web Designer, eCommerce Business Developer based in Habiganj. I specialize in creating e-commerce business websites for great individuals and small-medium sized businesses, helping them to market their products or services successfully on the web. Interested in working together? Get in touch so we can discuss your requirements.

Remove shop preview mode from Shopify store

You can click on the blue link that says “Hide bar” to hide the preview bar on the theme. Please note that this preview bar will reappear each time you navigate to a brand new page. 

But anyway here is the CSS code to do it.

html {
  padding-bottom: 0!important;
}

#preview-bar-iframe {
  display: none!important;
}

Please note that the preview bar only displays to the account owner and staff who are logged in, and viewing a theme that isn’t published, so adding this code would not be necessary.

If you do plan on adding this code to your theme I recommend creating a backup of your theme, so that you can refer to a copy of your theme if the customizations made on your theme don’t go as planned. 

How to Create Custom URL Redirects in Shopify

Hey Guys! Welcome to my website. In this tutorial, I am going to show you How to Create Custom URL Redirects in Shopify. This is a very easy and quick video that must work for you. Enjoy!

Add this code in theme.liquid file (inside the <head> tag)

{% unless template == 'index' %}
<script>
	window.location.replace( 'your_url' );
</script>
{% endunless %}

Redirect to Another Page After 5 Seconds

<script>
      setTimeout(function(){
       window.location.href = 'https://www.tutorialspoint.com/javascript/';
       }, 5000);
</script>
Shopify Expert
Shopify Expert

Add Shipping ICON to Announcement Bar in Shopify

Are you trying to add a shipping icon to your Shopify online store announcement bar? In this tutorial, I am going to show the easy process to Add shipping ICON to the Announcement bar.

I am going to use Font Awesome for Icon. So first of all You have to go into your theme. liquid in your Layouts folder in Online Store > Themes > Actions > Edit Code

Open the file and look for the closing head tag and place this before it:

<script src="https://kit.fontawesome.com/f7cf0a6419.js"></script>
//place this script above the closing head tag 
</head> // <---- This is the ending head tag

Then open your header.liquid file in your sections folder and ctrl + f for “announcement-bar__message”. You should see this line:

<p class="announcement-bar__message">{{ section.settings.message_text | escape }}</p>

change that to this:

<p class="announcement-bar__message">{{ section.settings.message_text | escape }} <i class="fas fa-truck"></i></p>

Now there should be a little truck at the end of your message.

If my solution helped you, please click on the like button and Subscribe to My Channel!
If you’d like to make any edits to your store, please send me a personal message and we can discuss what you’d like to accomplish 😀

Shopify Expert
Shopify Expert

How To Add Instagram Feed On Shopify Store

Shopify is a commerce platform that offers a way to quickly launch your dream business and start selling to your customers. Instagram is a free social media platform for sharing photos and videos. 

1 billion Instagram users (official statistics), 1.16 billion estimated as of Q3 2020

According to Statista, In 2019, there were almost 815 million users who accessed the photo-sharing platform Instagram on a monthly basis. In 2023, this figure is projected to reach nearly 1.2 billion users, as the most recent forecast suggests.

As an entrepreneur, you can use Instagram for your online store or eCommerce business to sell more products by driving traffic.  90% of people now follow a business on Instagram.

In this tutorial, I am going to show you ” How to Embed Instagram Feed On Shopify Website? “

How To Add Instagram Feed On Shopify Website

This tutorial We will do this in 2 steps. First, we learn How to create an Instagram Feed then we will create the feed. 2nd We will add Feed in our Shopify store. Of Course, We no need any apps or hire any developer.

How To Create An Instagram Feed

Step. 1 – Log in to your Taggbox Widget account & you will see the dashboard

Step. 2 – On the dashboard click on the Add Social Feeds option to add feeds on your widget.

Step. 3 – A new pop-up will appear, choose “Instagram” as the source of feed (content)

Step. 4 – A new pop-up will come, enter the necessary details from which you want to collect content 

  • Hashtags
  • Handle
  • Mentions
  • Tags

Step. 5 – Click on the “Create Feed” option, and you will be asked to connect to “Instagram Business” to complete the process.

Step. 6 – Enter your login details & once Instagram is connected, you will get the relevant posts from Instagram to your widget.

How To Embed Instagram Feed To Shopify Website

Step. 1 – From you Taggbox Widget editor, click on the “Publish” option at the bottom left.

Step. 2 – Now choose “Shopify” as your website platform from the pop-up.

Step. 3 – Set your Feed width & height from the new pop-up & click on “Get Code.”

Step. 4 – Copy the given code & paste it in your Shopify website

Steps to add embed code on shopify website

1. Log in to your Shopify website

2. Under the Sales Channels, click on Online Store

3. Click on the Themes option & you will see customize option

4. Click on Custom content on the left side of the page

5. Then click on Custom HTML & paste the copied code

Tada! You have successfully embedded the Instagram feed on Shopify website. Once you add Instagram feed to website, you can see it live in action.

Shopify Expert
Shopify Expert

WooCommerce Custom Product Sorting – Remove, Rename, Reorder

In this tutorial, I am going to share ” How to Remove, Rename, Reorder or Add Custom Sorting Options? ” You know, By Default, you can do this easily by following below step

Go to Appearance > Customize in your WordPress admin, you can change some of your display settings. In the Customizer, go to WooCommerce then Product catalog change the “Default product sorting” to “Default sorting (custom ordering + name)” and we’ll get going from there.

But this tutorial is not to show you the Default option. Actually, I am going to show you Custom Product Sorting including Remove, Rename, Reorder. So Let’s Get Started

Remove Default Sorting Options

Here I am going to use just one filter hook woocommerce_catalog_orderby, it is very similar to how we add or remove items from my account menu, admin columns, etc.

Ok, so the default sorting options are on the screenshot:

And this is the code which allows to remove them:

add_filter( 'woocommerce_catalog_orderby', 'fa_remove_default_sorting_options' );
 
function fa_remove_default_sorting_options( $options ){
 
    unset( $options[ 'popularity' ] );
    //unset( $options[ 'menu_order' ] );
    //unset( $options[ 'rating' ] );
    //unset( $options[ 'date' ] );
    //unset( $options[ 'price' ] );
    //unset( $options[ 'price-desc' ] );
 
    return $options;
 
}

You can insert all the code from this article to your theme functions.php file.

Rename the Default Sorting Options

Nothing special here, we are using just the same filter hook – woocommerce_catalog_orderby.

A simple example for you – let’s assume that customers rarely use sorting by “Price: high to low”, so we do not need it? In this case we have to do two things: remove it and rename “Sort by price: low to high” to just “Sort by price”, correct?

add_filter( 'woocommerce_catalog_orderby', 'fa_rename_default_sorting_options' );
 
function fa_rename_default_sorting_options( $options ){
 
	unset( $options[ 'price-desc' ] ); // remove
	$options[ 'price' ] = 'Sort by price'; // rename
 
	return $options;
 
}

Change the Order of Sorting Options

The most simple and clean way to change the order of sorting options is to redefine the whole array, like this:

add_filter( 'woocommerce_catalog_orderby', 'fa_change_sorting_options_order', 5 );
 
function fa_change_sorting_options_order( $options ){
 
    $options = array(
 
        'menu_order' => __( 'Default sorting', 'woocommerce' ), // you can change the order of this element too

        'popularity'      => __( 'Sort by popularity', 'woocommerce' ), // I need sorting by popularity
        
        'date'       => __( 'Sort by latest', 'woocommerce' ), // Let's make "Sort by latest" the second one

        'rating'      => __( 'Sort by rating', 'woocommerce' ), // I need sorting by rating

        'price'      => __( 'Sort by price: low to high', 'woocommerce' ), // I need sorting by price to be the first

        'price-desc'      => __( 'Sort by price-desc: high to low', 'woocommerce' ), // I need sorting by price to be the first
 
    );
 
    return $options;
 
}

Add a Custom Sorting Option

I have a bonus for you – I am going to create two of them!

add_filter( 'woocommerce_catalog_orderby', 'fa_add_custom_sorting_options' );
 
function fa_add_custom_sorting_options( $options ){
 
	$options['title'] = 'Sort alphabetically';
	$options['in-stock'] = 'Show products in stock first';
 
	return $options;
 
}

You may think – but what is the default product sorting, it looks like they are already displayed by title, isn’t it? Nope – the default sorting is by menu order and then by title.

But obviously it is not enough. When you select any of the added options, nothing will happen. Because you have to do one more step.

add_filter( 'woocommerce_get_catalog_ordering_args', 'fa_custom_product_sorting' );
 
function fa_custom_product_sorting( $args ) {
 
	// Sort alphabetically
	if ( isset( $_GET['orderby'] ) && 'title' === $_GET['orderby'] ) {
		$args['orderby'] = 'title';
		$args['order'] = 'asc';
	}
 
	// Show products in stock first
	if( isset( $_GET['orderby'] ) && 'in-stock' === $_GET['orderby'] ) {
		$args['meta_key'] = '_stock_status';
		$args['orderby'] = array( 'meta_value' => 'ASC' );
	}
 
	return $args;
 
}

All the code need to be insert in functions

Looking WordPress Developer? Hire Me You can know more about ne at here

How to make slideshow images clickable on Shopify

In this tutorial, I am going to show you “How to make slideshow images clickable on Shopify without any apps”

Step 1. Open slideshow.liquid

Step 2. do a search for this:

<div class=”slideshow__image box

Step 3. Paste this piece of code just above it:

{% if block.settings.image_link != blank %}
   <a href="{{ block.settings.image_link }}">
{% endif %} 

Step 4. Just above write or paste this tag

Step 5. Search for: image_picker

Step 6. Paste this piece of code just after it (see video)

{
 "type": "url",
 "id": "image_link",
 "label": "Image Link"
},

Best Project Management Software for Small Teams – Try Evernote

Evernote is your second brain. Capture, organize and share notes from anywhere. Your best ideas are always with you and always in sync.

Have you ever had a great idea? You write it on a post it note on your desk to keep from forgetting it later? Then later you realize, that post it is now stuck to some piece of paper that was on your desk at the time and you aren’t exactly sure which one? We eliminate all of that. We allow you to organize all of your work and declutter your life. Put everything that matter in one place and find it exactly when you need it.

We then take that idea and allow you to enhance it! Add links, checklists, tables, attachments and even audio recordings to fully display your idea. You can plan out exactly how you want your idea to play out or simply just link an article that brought the idea to light in the first place. This way, when you are reviewing the idea later you and simply go back to see exactly why this crossed your mind.

Evernote makes it easier for teams to work together while being apart. Add an idea and share it with your team. Give them the ability to brainstorm to get the ball rolling. You can then follow any progress from the place it all started. Follow everyone’s comments and ideas all the way to the final finished project. Have multiple projects going at once and keep the information neatly displayed and separate all while staying in the same platform.

Let Evernote be your virtual team bulletin board. Collect ideas in one place and watch as ideas and additional information grows within your team.

Build your dreaming website with Best Website Builder Quicksilk!

Using a website builder reduces the cost of developing and maintaining a website significantly. In this tutorial I am going to share Best WordPress Alternative website builder with Speed, Simplicity and Flexibility.

Build the website you have been dreaming about with Quicksilk! We have a growing library of templates and themes. We want to create your website to be effortless, which is why we have pre-built templates. Choose a template and then all you need to do is add content unique to your company and presto. No more hoops to jump through. Your page is ready to publish.

A Complete Web Solution

Like every business, we understand that every person or department has different knowledge. We allow you to choose your administrative setting to give the correct access across your company. You can delegate sections of your website to be managed by a single individual or a specific team or department.

We make blogging easy as well. Our comprehensive tools allow copywriters to add an unlimited number of blogs with ease. We also help with planning, scheduling, distributing, tagging and some moderate content.

We allow you to upload your own personal photos as well. Have a picture that you want to edit before publishing it? We allow you do that all within our site! No need to buy a phot editing program. We have photo resizing, styling, alignment and links to external sites. Want to display multiple phots in one spot? All you need to do is create a slideshow, which we also help you with. We also have integrated with YouTube and Vimeo to allow you the video straming capabilities.

We also have innovative tools to help you know what clients think you are doing right or where they feel you went wrong. We allow you to create an unlimited number of comment boxes which clients can leave feedback. Want to approve comments before they actually post? No problem! We allow you to do that.

Quicksilk is also working on developing an advertising banner module that will allow you to integrate with third-party services, support rich media, provide real-time statistics and much more!

Need a website ? Contact with me. Say Hi Foysal