How to add a Product variations Table in WooCommerce?

To add product variations in WooCommerce, follow these steps:

  1. From the WordPress dashboard, go to Products > Add New.
  2. Scroll down to the Product Data section and select the Variations tab.
  3. Select the Add variation button.
  4. Select the options for the variation, such as Color and Size.
  5. Enter the details for each variation, such as the price and stock quantity.
  6. Select the Save Changes button.
  7. Repeat these steps for each variation that you want to add.

You can also import variations using a CSV file. To do this, go to Products > All Products, select the product you want to add variations to and select the Variations tab. Then, select the Import variations button and follow the prompts to import your variations using the CSV file.

It’s also possible to create variations using the WooCommerce Product Table plugin. This plugin lets you create a table that displays all of your product variations in a single table view. Customers can then select the variations they want directly from the table and add them to their cart.

Plugins available

Product Variations Table for WooCommerce

I hope this helps! Let me know if you have any other questions.

What is Visual Positioning System?

A visual positioning system (VPS) is a technology that uses visual cues from the environment to determine the position and orientation of a device or vehicle. It is often used in applications such as augmented reality, robotics, and autonomous vehicles, where it is important to know the precise location and orientation of the device relative to its surroundings.

VPS typically involves the use of one or more cameras to capture images of the environment, as well as algorithms that analyze these images to determine the position and orientation of the device. The system may also use other sensors, such as inertial measurement units (IMUs), to help improve the accuracy of the position and orientation estimates.

One common approach to VPS is to use feature matching, where the system compares the images captured by the cameras to a database of reference images that have been pre-annotated with known positions and orientations. The system can then use this information to estimate the position and orientation of the device based on the locations of the matched features in the reference images.

Other approaches to VPS include simultaneous localization and mapping (SLAM), which involves building a map of the environment as the device moves through it, and using this map to determine the device’s position and orientation.

What are the pros and cons of a Visual Positioning System?

VPS can be useful in a variety of applications where precise positioning and orientation are important, such as in autonomous vehicles, drones, and robots, as well as in augmented reality and virtual reality applications.

There are several pros and cons to using visual positioning systems (VPS). Some potential advantages of VPS include:

  • Accuracy: VPS can be highly accurate, especially when used in combination with other sensors such as inertial measurement units (IMUs).
  • Robustness: VPS can be relatively robust in the face of changing environmental conditions, as it relies on visual cues rather than external signals such as GPS, which can be disrupted by obstacles or interference.
  • Cost: VPS can be relatively inexpensive to implement compared to other positioning technologies, as it does not require specialized hardware such as GPS receivers.

However, there are also some potential disadvantages to VPS, including:

  • Dependence on visual cues: VPS relies on being able to see the environment, which means it may not work well in low-light conditions or in environments where there are few distinctive visual features.
  • Processing power: VPS requires significant computational resources to process the images and determine the position and orientation of the device, which may be an issue for devices with limited processing power.
  • Complexity: Implementing VPS can be complex, as it requires the development of algorithms to analyze the images and determine the position and orientation of the device.

Overall, the pros and cons of VPS will depend on the specific application and the requirements for accuracy, robustness, and cost. In some cases, VPS may be a suitable choice, while in other cases, other positioning technologies may be more appropriate.


Global positioning systems (GPS) and visual positioning systems (VPS) are both technologies that can be used to determine the position and orientation of a device or vehicle. However, they operate in different ways and have different strengths and limitations.

One key difference between GPS and VPS is the way they determine the position of the device. GPS uses a network of satellites orbiting the Earth to determine the position of a device on the surface of the Earth. It does this by measuring the time it takes for a signal to travel from the satellite to the device and using this information to calculate the distance between the satellite and the device. By measuring the distance to multiple satellites, the device can determine its position on the Earth’s surface.

VPS, on the other hand, uses visual cues from the environment to determine the position and orientation of the device. This typically involves the use of one or more cameras to capture images of the environment, as well as algorithms that analyze these images to determine the position and orientation of the device. The system may also use other sensors, such as inertial measurement units (IMUs), to help improve the accuracy of the position and orientation estimates.

Another key difference between GPS and VPS is their accuracy. GPS can be highly accurate, with errors on the order of a few meters or less. However, it can be disrupted by factors such as obstacles or interference, which can affect its accuracy. VPS can also be highly accurate, especially when used in combination with other sensors such as IMUs. However, it is dependent on being able to see the environment, which means it may not work well in low-light conditions or in environments where there are few distinctive visual features.

Overall, GPS and VPS are both useful technologies that can be used to determine the position and orientation of a device. Which one is more appropriate will depend on the specific requirements of the application and the trade-offs between accuracy, robustness, and cost.


Setup Shopify Store

To set up a Shopify store, follow these steps:

  1. Go to https://www.shopify.com/ and click on the “Start free trial” button.
  2. Enter your email address and create a password to create your account.
  3. Follow the prompts to enter your personal and business information, including your business name, address, and contact information.
  4. Choose a plan that best fits your needs. You can choose a basic plan to get started and upgrade later as your business grows.
  5. Choose a design theme for your store. Shopify offers a variety of free and paid themes to choose from, so you can find one that best fits your brand and style.
  6. Add your products to your store. You can add product details, such as the name, description, price, and images. You can also categorize your products to make them easier for customers to find.
  7. Set up payment options for your store. Shopify allows you to accept various payment methods, including credit cards, PayPal, and Apple Pay.
  8. Configure your shipping options. You can choose to offer free shipping, flat rate shipping, or calculate shipping based on the weight or size of the order.
  9. Customize your store’s checkout process. You can choose to require certain information from your customers, such as their shipping address and phone number.
  10. Review and publish your store. Once you’ve set everything up, make sure to review your store and make any final changes before publishing it.

It’s important to regularly update and maintain your Shopify store to ensure it’s running smoothly and effectively for your business. You can add new products, process orders, and track your sales using the Shopify dashboard.

What is Shopify?

Shopify is a platform that allows users to create an online store to sell their products. It provides a range of tools and features to help users create and manage their online store, including a customizable storefront, payment processing, inventory management, and shipping options. Shopify also offers a range of design themes and apps to help users enhance their store’s functionality and appearance.

Users can choose from various pricing plans depending on the size and needs of their business. Shopify also provides resources and support for users, including a knowledge base, community forum, and live chat support.

Shopify is suitable for a wide range of businesses, including small and medium-sized businesses, as well as larger enterprises. It allows users to sell physical and digital products and supports various sales channels, such as online, in-person, and on social media.

Can Shopify be trusted?

Yes, Shopify is a trusted and widely used e-commerce platform. It is used by millions of businesses around the world to sell their products online and has a reputation for being reliable and secure. Shopify takes the security of its platform and its users’ data seriously and has a number of measures in place to protect against potential threats. These measures include secure servers, encryption of sensitive data, and frequent security updates. Additionally, Shopify is a publicly traded company and must adhere to strict financial regulations, which further adds to its credibility and trustworthiness.

What Shopify apps do i need?

The specific Shopify apps that you need will depend on the specific needs of your business and the type of products you sell. Some common types of apps that many Shopify stores use include:

  1. Marketing and advertising apps: These apps can help you promote your store and products through various channels, such as social media or email marketing.
  2. Sales and conversion optimization apps: These apps can help you optimize your store’s checkout process, upsell or cross-sell products, and offer special deals or discounts to customers.
  3. Inventory and order management apps: These apps can help you keep track of your inventory, manage orders, and fulfill orders more efficiently.
  4. Customer service and support apps: These apps can help you provide better customer service by offering live chat or a help desk, or by automating frequently asked questions.
  5. Shipping and fulfillment apps: These apps can help you manage and automate your shipping process, including printing shipping labels and tracking orders.

It’s important to carefully consider your business needs and choose the apps that will be most useful for you. You may also want to consider the costs of the apps, as some of them may charge a fee for their services.

What Shopify plan should i choose?

The Shopify plan that is right for you will depend on the specific needs of your business. Shopify offers four main pricing plans:

  1. Shopify Lite: This plan is designed for businesses that want to sell products on an existing website or blog, or through social media or in-person. It costs $9 per month and includes a buy button that you can add to your website, allowing you to sell products directly through your site.
  2. Basic Shopify: This plan is suitable for small businesses that are just starting out with an online store. It costs $29 per month and includes everything you need to set up and run an online store, including unlimited products, two staff accounts, and a customizable online store.
  3. Shopify: This plan is suitable for businesses with more advanced needs, such as high-volume sales or custom shipping rates. It costs $79 per month and includes everything in the Basic Shopify plan, plus additional features such as abandoned cart recovery and professional reports.
  4. Advanced Shopify: This plan is suitable for large businesses with high-volume sales and complex shipping needs. It costs $299 per month and includes everything in the Shopify plan, plus advanced features such as advanced reporting and custom checkout.

To determine which plan is right for you, consider the size and needs of your business, the number of products you plan to sell, and any additional features you may need. It’s also a good idea to try out the Shopify Lite plan first to see if it meets your needs before committing to a larger plan.


Magento 2 Get custom product attribute values array from product collection

Magento Collections are powerful. We can use this to get a custom product attribute value array from a product collection with a couple of lines of code.

protected $_productCollection;

/* Constructor */
public function __construct(
\Magento\Catalog\Model\ResourceModel\Product\Collection $productCollection
) {
$this->_productCollection = $productCollection;

/* @var \Magento\Catalog\Model\ResourceModel\Product\Collection $collection */
$collection = $this->_productCollectionFactory->create()
->addAttributeToSelect('custom_attribute', 'catalog_product_entity_text');
$collection->addCategoriesFilter(['eq' => $category]);

if ($collection) {
$allCategoryCountries = $collection->getColumnValues('custom_attribute');


Learning Magento 2 From Scratch

I have experience in Magento 1 and I am trying to move to Magento 2. Magento 2 totally different from Magento 1. So, Magento 1 experience does not help much. The biggest challenge I am facing is lack of good tutorials in Magento 2 for beginners like me. I always find it easy to understand when I can see a working example. List of files needed to be added or edited makes it easy to debug and check if I have not missed anything. A brief explanation of why each block code or variable exists will help to understand the logic. So far, I could not find all these features in one Magento 2 tutorial. Do not get me wrong there are great tutorials out there. However for a beginner like me always need extra help.

What is my Magento 2 Solution

My solution is quite simple. I am going through Magento 2 tutorials and stack exchange to figure out adding Magento 2 features programmatically. I decided to document each task separately in a git repo and deploy it to Magento 2 instant. Also, give a brief description of my understanding. In that way, I can easily find them when I need it in the future and I think it will help you to learn Magento 2 fast.


How to Install Magento 2.2 In Digital Ocean

Let’s install Magento 2.2 on Digital Ocean droplet.  Basically, digital ocean droplet is clean OS only so, you will have to install LAMP (Linux, Apache, MySQL and PHP) stack. Based on the Magento 2.2 requirement I created an Ubuntu 16.04.3 x 64 droplet. The ideal droplet size for magento2.2 would be size would be 3GB 20GB and 3TB in terms of performances.

Megento 2.2 Requirments

#1 Install Apache 2

  • sudo apt-get update
  • sudo apt-get install apache2
  • sudo systemctl status apache2 to check the apache status

Now you should be able to visit http://server_domain_or_IP and it will show you Apache2 Ubuntu Default Page.

Install PHP 7.1

  • Install PHP7.1 – sudo apt-get install php7.1
  • Restart Apache – systemctl restart apache2
  • sudo apt-cache search php7.1

Install PHP7.1 Modules

  • sudo apt-cache search php7.1
  • sudo apt-get install php7.1 php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm
  • sudo apt-get install curl
  • Restart Apache – systemctl restart apache2
  • Then Install PHP5 CURL by typing sudo apt-get install php5-curl
  • sudo apt-get install php-xml
  • sudo apt-get install php7.1-intl
  • sudo apt-get install php7.1-gd
  • sudo apt-get install php7.1-intl
  • sudo apt-get install php7.1-xsl
  • sudo apt-get install php7.0-soap
  • sudo systemctl restart apache2.service
  • apt install composer

php –ini |grep Loaded
Loaded Configuration File: /etc/php/7.1/cli/php.ini

sudo nano /etc/php/7.1/cli/php.ini

Change defaul page

sudo nano /etc/apache2/mods-enabled/dir.conf
Change: DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
To: DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm

Restart the PHP-FPM service:
sudo systemctl restart php7.1-fpm.service

Find the Sever Public IP

  • ip addr show eth0 | grep inet | awk ‘{ print $2; }’ | sed ‘s/\/.*$//’
  • http://your.id.add.is/

Install Mysql5.7

  • sudo apt-get update && sudo apt-get upgrade
  • sudo apt-cache search mysql | grep mysql | more
  • sudo apt-get install mysql-server5.7 php7.1-mysql

Create MySql Database

  • mysql -u root -p
  • CREATE DATABASE magento;
  • CREATE USER magento_user@localhost IDENTIFIED BY ‘password’;
  • GRANT ALL PRIVILEGES ON magento.* TO magento_user@localhost IDENTIFIED BY ‘password’;
  • exit

Install Magento 2.0

Composer install

Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting.

Invalid credentials for ‘https://repo.magento.com/archives/shopialfb/facebook-module/shopialfb-facebook-module-’, aborting.

Use public and private keys from here to solve this issue.

sudo find . -type d -exec chmod 775 {} \; && sudo find . -type f -exec chmod 664 {} \; && sudo chmod u+x bin/magento

For security, remove write permissions from these directories: ‘/var/www/html/app/etc’ {} \; && sudo chmod u+x bin/magento

find app/code lib pub/static app/etc var/generation var/di var/view_preprocessed vendor \( -type d -or -type f \) -exec chmod g-w {} \; && chmod o-rwx app/etc/env.php


  • Magento 2.2 Requirments – http://devdocs.magento.com/guides/v2.2/install-gde/system-requirements-tech.html
  • https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-magento-on-ubuntu-14-04
  • https://www.digitalocean.com/community/questions/magento-2-1-3-on-ubuntu-16-04-1
  • https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-magento-on-ubuntu-14-04
  • https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-magento-on-ubuntu-14-04



20 Plus Proven Habits That Will Uncover Dark Knowledge

Hello, friends, you might be wondering what is dark knowledge? Let me tell you a short story. For the past 35 years, I never knew nor google for a person called “Gary Halbert”. I am sure that he never existed in my list of people I admire. However, a question asked in a Facebook group that I love, shifted my knowledge. Since that movement, I start researching about Garry Halbert and start adding value to my life. Also, I noticed that many successful people I follow, look into his work and learnt from him. The biggest surprise is, that few of my friends knew about him. But, I did not know him. Who blocked my rights to know about this great guy? It was a dark knowledge well hidden from me for 35 years.

Now, let us find the ways to uncover dark knowledge. It is right in front of you and you only need to learn few habits. All my mentors and people I follow highlight these habits. Yes, if you need to live a successful life you must master these habits.

List Of Ways To Uncover Dark Knowledge

  • Read books
  • Join book clubs
  • Attend seminars/workshops
  • Spend time with like minded people
  • Spend time with people who you want to be in 20 years
  • Meet new people
  • Google – (something you know) VS
  • Watch interviews
  • Tedtalks
  • Join Facebook groups
  • Ask stupid questions
  • Ask good questions
  • Listening to podcasts
  • Use Mentors/Coaches
  • Join Webinars
  • Subscribe to newsletters
  • Welcome new ideas
  • Experiment/Study new ideas
  • Use imagination
  • Enjoys quite/relax time
  • Travel to places you never been
  • Learn to learn


P.S. Who is Gary Halbert? He is the best copyrighter who is famous for Gary Halbert letters. I will leave you here and if you are interested you can continue the research.


Installing Magento Patch SUPEE-9767

Magento released the latest security patch SUPEE-9767 patching various security issues. It is a straight forward installation but required to cover a couple of areas. This is quick step by step guide to cover the process and links I found really helpful and made the job easy.

  • Download the SUPEE 9767 patch file match for the current Magento installation
    >> https://magento.com/tech-resources/download
  • Upload the patch file to the root
  • In command line run the following command (It should match the patch file name)
    >> sh PATCH_SUPEE-9767_CE_1.7.0.2_v1.sh
  • If the download folder is removed (Which we did as a security measure) remove the
    download folder related code from the patch file
  • If you come across any other missing files check in this repo. It might be due to
    a previous patch could not generate a new file. Add the new file and apply STEP 2
    >> https://github.com/magecomp/Magento-Pre-Patched-Files
  • Apply the template level changes to the custom template files.
  • Add the script to the magento shell folder and run it
    >> https://github.com/experius/Magento-1-Experius-Patch-Helper#magento
  • Add getBlockHtml(‘formkey’) ?> to all the template files.
  • Apply the JS file changes to the over writes
    >> https://magento.stackexchange.com/questions/177035/supee-9767-patch-ce-1-9-3-3-one-page-checkout-customer-registration-issue?noredirect=1&lq=1
  • After applying the patch successfully check the following settings before testing
  • Enable Form Key Validation On Checkout
    >> Admin > System > Configuration > Advanced > Admin > Security
  • Test Login in and out in Admin User level
  • Placed a test order enabling create account
  • Upload image from the admin area.

Five Things To Do In November 2016

Cannot believe that it is already November and this is the best month to start planning. Yes, always today is the best day to start something. It is always important to organise things and prioritise tasks and focus on them. Why not using my blog to do that. Here are the awesome five things to do in November 2016.

10X Social Media Automation

I am starting to enjoy the 10X Rule. It is quite simple. You will have to pick a something you do or you have done successfully and do it ten times. The last post I have showed you how I successfully automate posting interesting posts to all my social media accounts at peak times. It is time to apply the same concept to 10 more accounts. As we have already simplified the process it is easy to apply to any number of accounts. This is the beauty of 10x rule. It challenges you to find better solutions every time.

Project WB

I cannot tell much details about this project. However, I am so excited about this project. I should release all the information about this project by end of November.

Add Most Recent Projects To TheWebByte

This has a long waited task and also an important task. We did so many interesting web projects but we haven’t put them on our profile page. Without a good profile, it is hard to convert visitors to leads. So, this is super important.

Finish the Total Recall Book By Arnold Schwarzenegger

I started reading the life story of Arnold and this is a must read book. He achieved his dreams one by one with so many difficulties and he always find a way around to get closer to his dream no matter what the situation is. Amazing life story.

Learn how to write effective articles

This is a really important factor for a successful website or blog. Writing original content is not enough for search engine optimisation. It has to be unique, well researched so, that post should not be a common article. So, there are more involve in that. So, this one hell of a big task to find a tool and system to create great articles.

I will update the progress of my five things to do in November as I progress through. Feel free to share any tips or links related to these five things. That will be a great help.


Learn How I Automate Social Media

I got this email saying “9,755 happy Twitter users, courtesy of 3 retweets. Way to go!”, just after automated social media accounts. Updating all my social media accounts consistently by myself was not easy. Some days I over update them and other time I rarely update them. There are so many social media platforms and it is impossible to update all of them manually. Let’s make the impossible possible.


Making the long story short, I love social media but it was really hard to update all the Facebook, twitter, Google+, LinkedIn, Instagram and Pinterest accounts simultaneously. You know how hard it is. Some days I have time and freedom to do that but most of the days I am busy with work, business and my family.

I did not want to reinvent the wheel and I did not want to spend ages to experiment and learn things. The best way to learn something fast is from someone already doing it great. There are a lot of entrepreneurs and business doing social media to pass their message to the public like no others. Guy Kawasaki is an American marketing specialist, author, and Silicon Valley venture capitalist. He shows you effective methods that help you to maximise your social media presence effectively. He has a good team and tools behind it. That is the secret. Yes, I need a good team and awesome tools to build my social media campaigns.

I have many projects and businesses that have different budget levels. I have start-ups, growing projects and well-establishes projects. So, I needed a scalable solution. Here is the solution I found. I will show you how to set it up with a zero dollar budget. Yes, zero dollar budget. You can always upgrade it based on your requirements.

All the Social Media Accounts Updated From One Place

First, I need a tool to be able to schedule all the posts and deliver them to all the major social network platforms. In that way, I can spend fifteen to thirty minutes creating all the posts and schedule them for a week or month. How awesome is that? Create a Buffer account and it will let you achieve this instantly. On top of that, Buffer can identify the most effective time to post and it will schedule the post accordingly. You have full flexibility to schedule it. This makes a big difference.

I can already see the results. I can see more views and more interaction I have never seen before in my social media accounts. Another good feature is that browser plugin that will allow you to add amazing things straight to the Buffer schedule. Once you have a Buffer account you do not have to log in to different social media accounts and post individually. I am really excited to use this. No distraction and save a lot of time you can start with zero dollars.

Finds The Best Content For You

The second problem is that some weeks I do not get enough time to produce enough posts. I need a good team to produce hand-curated content. If you can outsource it to a good team then I can save that time. It is always time or money. Quuu is the perfect solution for this. They provide hand-curated content for your social media. You can select categories and it will provide content. Quuu works perfectly with Buffer. Did I mention that you can start this with zero dollars as well? Yes, it is free to start with.

This is the perfect combination. Quuu provides perfect content for Buffer account to schedule it and post it to multiple social media accounts as your preference. You can start this with zero dollars and scale up as you grow. Do not forget to add your own content to give a personal touch.

Take Action Time

Automate social media accounts today. And it is time to make them rock. If you have any question or better suggestions share it with me.