WebDux.com https://www.webdux.com Mobile Friendly Magento 2 E-Commerce Store Development, Drupal 8 Developers, WordPress Web Design, SEO, Best Web Hostings Fri, 12 Jan 2018 17:11:47 +0000 en-US hourly 1 Common Drupal 8 Drush Commands https://www.webdux.com/common-drupal-8-drush-commands-1017.html https://www.webdux.com/common-drupal-8-drush-commands-1017.html#respond Fri, 12 Jan 2018 17:08:42 +0000 http://www.webdux.com/?p=1017 It is essential for every Drupal developer to know how to use configure and use Drupal through Drush as it is a very valuable skill.

The post Common Drupal 8 Drush Commands appeared first on WebDux.com.

]]>

It is essential for every Drupal developer to know how to use configure and use Drupal through Drush as it is a very valuable skill.

To get you started, below are some of the most common Drush commands for Drupal 8.

  • Clear cache: drush cache-rebuild(To clear all caches) or drush cc (To delete one specific cache)

Common Drupal 8 Drush Commands

  • Clear cache even when there’s some problem with Drupal: drush sql-query “DELETE FROM cache”

Common Drupal 8 Drush Commands

  • Open SQL command-line interface: drush sql cli

Common Drupal 8 Drush Commands

  • Print database connection details: drush sql-conf

Common Drupal 8 Drush Commands

  • String for connection to database: drush sql-connect

Common Drupal 8 Drush Commands

  • Enable a module: drush en {name_of_module}

Common Drupal 8 Drush Commands

  • Disable a module: drush dis {name_of_module}

Common Drupal 8 Drush Commands

  • Update a module: drush up {name_of_module}

Common Drupal 8 Drush Commands

  • Update Drupal core and themes: drush pm-update drupal

Common Drupal 8 Drush Commands

  • Check watchdog (logged events): drush ws

Common Drupal 8 Drush Commands

  • Runserver (PHP’s built-in http server for development): drush runserver

Common Drupal 8 Drush Commands

The commands above are the ones we think might come in as most useful. To learn more about Drush and its commands, read the official documentation.

The post Common Drupal 8 Drush Commands appeared first on WebDux.com.

]]>
https://www.webdux.com/common-drupal-8-drush-commands-1017.html/feed 0
How to create more than 50 product variations in WooCommerce? https://www.webdux.com/how-to-create-more-than-50-product-variations-in-woocommerce-1012.html https://www.webdux.com/how-to-create-more-than-50-product-variations-in-woocommerce-1012.html#respond Sun, 17 Dec 2017 04:06:42 +0000 http://www.webdux.com/?p=1012 Initially, you might have thought that you can add 50 variations to products in WooCommerce. This is not true, you certainly can have way more variations than that.  The important part is “max 50 per run” (by default, you can add only 50 at a time) – what this means is, that you have to […]

The post How to create more than 50 product variations in WooCommerce? appeared first on WebDux.com.

]]>
How to create more than 50 product variations in WooCommerce?

Initially, you might have thought that you can add 50 variations to products in WooCommerce. This is not true, you certainly can have way more variations than that.  The important part is “max 50 per run” (by default, you can add only 50 at a time) – what this means is, that you have to run it several times if your selection of attributes leads to more possible variations. How to increase WooCommerce product variations limit just define the following variable inside your:functions.php (not in wpconfig.php).

//Increase in the number of variations to 150
define( 'WC_MAX_LINKED_VARIATIONS', 100 );

Note: If you are going to increase the limit be sure your server can handle the increased limit. Because WooCommcerce set this limit to prevent memory issues.

The post How to create more than 50 product variations in WooCommerce? appeared first on WebDux.com.

]]>
https://www.webdux.com/how-to-create-more-than-50-product-variations-in-woocommerce-1012.html/feed 0
Exclude WooCommerce Cookies for Varnish https://www.webdux.com/exclude-woocommerce-cookies-for-varnish-1009.html https://www.webdux.com/exclude-woocommerce-cookies-for-varnish-1009.html#respond Sat, 02 Dec 2017 16:01:22 +0000 http://www.webdux.com/?p=1009 To keep track of cart data, WooCommerce makes use of 3 cookies: woocommerce_cart_hash woocommerce_items_in_cart wp_woocommerce_session_ The first two cookies contain information about the cart as a whole and helps WooCommerce know when the cart data changes. The final cookie (wp_woocommerce_session_) contains a unique code for each customer so that it knows where to find the […]

The post Exclude WooCommerce Cookies for Varnish appeared first on WebDux.com.

]]>
To keep track of cart data, WooCommerce makes use of 3 cookies:

  • woocommerce_cart_hash
  • woocommerce_items_in_cart
  • wp_woocommerce_session_

The first two cookies contain information about the cart as a whole and helps WooCommerce know when the cart data changes. The final cookie (wp_woocommerce_session_) contains a unique code for each customer so that it knows where to find the cart data in the database for each customer. No personal information is stored within these cookies.

So, when enable varnish, please exclude WooCommerce these 3 cookies for Varnish.

The post Exclude WooCommerce Cookies for Varnish appeared first on WebDux.com.

]]>
https://www.webdux.com/exclude-woocommerce-cookies-for-varnish-1009.html/feed 0
Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting. https://www.webdux.com/invalid-credentials-for-httpsrepo-magento-compackages-json-aborting-1004.html https://www.webdux.com/invalid-credentials-for-httpsrepo-magento-compackages-json-aborting-1004.html#respond Mon, 26 Jun 2017 15:53:22 +0000 http://www.webdux.com/?p=1004 I get this error “Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting.” when trying to update via composer. Solution: Use your public key as username and private key as password from your magento connect account You can find public and private key at: https://www.magentocommerce.com/magento-connect/customer/account/  

The post Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting. appeared first on WebDux.com.

]]>
I get this error “Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting.” when trying to update via composer.

Solution:

Use your public key as username and private key as password from your magento connect account

You can find public and private key at:

https://www.magentocommerce.com/magento-connect/customer/account/

 

The post Invalid credentials for ‘https://repo.magento.com/packages.json’, aborting. appeared first on WebDux.com.

]]>
https://www.webdux.com/invalid-credentials-for-httpsrepo-magento-compackages-json-aborting-1004.html/feed 0
404 no-route on all pages added from CMS https://www.webdux.com/404-no-route-on-all-pages-added-from-cms-996.html https://www.webdux.com/404-no-route-on-all-pages-added-from-cms-996.html#respond Sun, 19 Mar 2017 03:32:19 +0000 http://www.webdux.com/?p=996 This worked for our 2.1 CE installation. Disable single store mode (admin>stores>configuration>general>general) Assign a store view to the CMS page. go to your cms pages ( admin>content>pages) edit the page which gives you the 404 message Set the store view to “All Store Views” save the page enable single store mode(admin>stores>configuration>general>general) refresh cache (admin>system>cache management)

The post 404 no-route on all pages added from CMS appeared first on WebDux.com.

]]>
This worked for our 2.1 CE installation.

  1. Disable single store mode (admin>stores>configuration>general>general)
  2. Assign a store view to the CMS page.
    • go to your cms pages ( admin>content>pages)
    • edit the page which gives you the 404 message
    • Set the store view to “All Store Views”
    • save the page
  3. enable single store mode(admin>stores>configuration>general>general)
  4. refresh cache (admin>system>cache management)

The post 404 no-route on all pages added from CMS appeared first on WebDux.com.

]]>
https://www.webdux.com/404-no-route-on-all-pages-added-from-cms-996.html/feed 0
How to Generate a Sitemap in Magento 2 https://www.webdux.com/how-to-generate-a-sitemap-in-magento-2-984.html https://www.webdux.com/how-to-generate-a-sitemap-in-magento-2-984.html#respond Sun, 26 Feb 2017 01:33:23 +0000 http://www.webdux.com/?p=984 A Sitemap is a plain text XML file that contains link to all of the pages on your website. It is used by the Search Engines to properly crawl and index your website. In Magento 1.x this option was called Google Sitemaps and was located in the Catalog menu. However, things have changed in Magento 2.

The post How to Generate a Sitemap in Magento 2 appeared first on WebDux.com.

]]>
A Sitemap is a plain text XML file that contains link to all of the pages on your website. It is used by the Search Engines to properly crawl and index your website. In Magento 1.x this option was called Google Sitemaps and was located in the Catalog menu. However, things have changed in Magento 2.

Create sitemap.xml in Magento 2

First using Add Sitemap in Marketing > SEO & Search > Site Map

Configure sitemap.xml in Magento 2

To access your Sitemap’s configuration page, you will need to access your website’s admin area and navigate to Stores>Configuration.

How to Generate a Sitemap in Magento 2

From there access the Catalog>XML Sitemap section.

How to Generate a Sitemap in Magento 2

Here you will have to expand all of the individual parts of the configuration page:

How to Generate a Sitemap in Magento 2

For Categories, Products and CMS options you will have frequency and priority of creation of new entries as well as an option to add the images of products into the sitemap.

How to Generate a Sitemap in Magento 2

 

In the Generation Settings you will be able to Enable Sitemap Generation and set a time of the day for it (if you choose a daily frequency for example).

How to Generate a Sitemap in Magento 2

In the Sitemap File Limits section, you can choose the limit of URLs per file and the maximum size of a file (in bytes). Last but not least, you will have to decide, if you want to If you add a reference of your sitemap to your robots.txt file. This will make search engines find it automatically.

How to Generate a Sitemap in Magento 2

Once you have configured the XML Sitemap schedule and options, click the Save Config button at the top right corner of the page. Congratulations, you have improved the SEO of your Magento 2 based Store.

The post How to Generate a Sitemap in Magento 2 appeared first on WebDux.com.

]]>
https://www.webdux.com/how-to-generate-a-sitemap-in-magento-2-984.html/feed 0
How to Configure Product Listings in Magento 2? https://www.webdux.com/how-to-configure-product-listings-in-magento-2-979.html https://www.webdux.com/how-to-configure-product-listings-in-magento-2-979.html#comments Fri, 24 Feb 2017 16:33:10 +0000 http://www.webdux.com/?p=979 Setting the effective way to show your product listings will help to encourage customer buy more and customer will conveniently and easily find the preferred products.

The post How to Configure Product Listings in Magento 2? appeared first on WebDux.com.

]]>
In this post, i will introduce how to configure product listings in Magento 2. Setting the effective way to show your product listings will help to encourage customer buy more and customer will conveniently and easily find the preferred products. You can set the default number product listing will be appeared as list or grid. In backend, you also can determine the selection number of products appear per page and select which attribute is used to sort the list. Moreover, as you need, you can set to allow customer view all products per page or not.

Follow this guide here to configure product listings:

  • On the Admin panel, click Stores. Select Configuration under the Settings section
  • Click Catalog in the lept panel and then select Catalog
  • Open the Storefront section, and follow step:

How to Configure Product Listings in Magento 2?

  • Select default List Mode by choose one of the following list
    • Grid Only
    • List Only
    • Grid (default) / List
    • List (default / Grid
  • In the Products per page on Grid Allowed Values field, enter the number of products that shown per page on grid as you want. If you want to set a list of values, please separate each number by a comma.
  • In the Products per Page on Grid Default Value field, enter the number you want to set default for product appearing per page on grid.
  • In the Products per Page on List Allowed Values field, enter the number of products that shown per page on list as you want. If you want to set a list of values, please separate each number by a comma.
  • In the Products per page on List Default Value field, enter the number you want to set default for product appearing per page on list.
  • In the Allow All Products on Page field, choose Yes to allow customers show list all products
  • In the Product Listing Sort by field, set the default attribute to sort products, one of the following
    • Position
    • Name
    • Price
  • If you using a flat catalog, do the following
    • In the Use Flat Catalog Category, select Yes
    • In the Use Flat Catalog Product, set to Yes
  • In the Allow Dynamic Media URLs in Products and Categories field, set to Yes if you want to allow dynamic references for media assets in category and product URLs
  • When complete, click Save Config.

The post How to Configure Product Listings in Magento 2? appeared first on WebDux.com.

]]>
https://www.webdux.com/how-to-configure-product-listings-in-magento-2-979.html/feed 1
Magento 2 SEO Settings Tutorial https://www.webdux.com/magento-2-seo-settings-tutorial-970.html https://www.webdux.com/magento-2-seo-settings-tutorial-970.html#respond Fri, 24 Feb 2017 16:12:48 +0000 http://www.webdux.com/?p=970 SEO is still very important for current mobile internet age, especial for eCommerce. Magento is the best eCommerce solution, so it's very important that how to setup Magento 2 SEO.

The post Magento 2 SEO Settings Tutorial appeared first on WebDux.com.

]]>

SEO is still very important for current mobile internet age, especial for eCommerce. Magento is the best eCommerce solution, so it\’s very important that how to setup Magento 2 SEO.

SEO settings for Magento 2:

  • Homepage Title
  • Product Page Optimization
  • Canonical tags for filtered category pages
  • Robots.txt
  • Rich Snippets in Magento 2

1) Homepage title

Homepage is one of the most important pages of a Magento website; it has most of the link juice and contains most relevant information of a store website. A homepage is likely to rank higher than any other pages of a website and it should contain most important keyword of your online store. Title of the home page and H1 of the home page are one of the most important on-page elements and by default in Magento 2 they are set as ‘Home Page’. Make sure you change this and include your most important keywords in place of title and H1. Title of home page can be changed from Content > Pages > Homepage > Edit

Magento 2 SEO Settings Tutorial

2) Product page optimization

Product page meta elements consists of title, meta description and meta keywords. It is very difficult for eCommerce stores with thousands of products to make meta elements for each and every product. Magento 2 has an awesome inbuilt feature to tackle this problem. You can dynamically set meta description, meta keywords an title of a product under Stores > Configuration > Catalog

Magento 2 SEO Settings Tutorial

3) Canonical tags for filtered category pages

Canonical tags are used to solve duplicate content issues. In eCommerce canonical tags are mostly used to solve problems of duplicate product content and avoid indexing of filtered category pages. Magento 2 provides canonical tag feature if you want to implement on filtered category and product page. This can be accessed from Store > Configuration > Catalog > Catalog

Magento 2 SEO Settings Tutorial

Remember canonical tags are used to solve duplicate content issues, if your filter pages serve different content, it is not wise to use rel=canonical tag. If you do not want your filtered pages to get indexed, you can use meta noindex tag.

4) Robots.txt

Magento 2 has inbuilt feature to edit Robots.txt from admin panel. It can be accessed from Stores > Configuration > General > Design. Robots.txt is one of the most important and most overlooked parts of SEO. A lot of people make mistakes while implementing robots.txt on an eCommerce store. Magento 2 has made it easier to edit it right from the admin panel. There are various things which should be taken care of while implementing robots.txt to your eCommerce store.
In most cases you don’t want your layered navigation pages to be indexed on search engines, but blocking them by the way of robots.txt is not an optimal solution. If you don’t want layered navigation pages to get indexed, use meta no index tag as I discussed earlier.
One more important to configure in robots.txt is to block site search results. You don’t want search engines to index search result with lot of thin content. Make sure you disallow catalog search results.

5) Rich Snippets in Magento 2 and Availability attribute

The most awesome SEO feature I found on Magento 2 is availability of Rich Snippets in product pages by default. You don’t have to configure anything to get rich snippets. Magento 2 misses a key rich snippets feature ‘Availability’ which is an important attribute for a product. Make sure you add Availability attribute if you think it is important for your store.

Magento 2 SEO Settings Tutorial

6) XML sitemap generation

Magento 2 has made the process sitemap generation easy cheesy. A sitemap is one of the most important factors of any SEO strategy and one of the most important assets of an eCommerce store. A sitemap is how search engines finds a webpage and ranks it so sitemap should be configured properly without any mistakes. Sitemap settings can be accessed from Store > Configuration > Catalog > XML Sitemap.

Magento 2 SEO Settings Tutorial

You can select the frequency you want your sitemap to generate; you can control number of links and file size. If add new products to your store every day, you should generate your sitemap daily. Sitemap can also be submitted directly to robots.txt if you select yes under ‘Enable submission to robots.txt’, this will ensure that crawlers find your sitemap when they come to crawl your website.

These were all the SEO settings you need to take care of before making a website live on Magento 2. If you have any questions related to SEO settings in Magento 2, do comment below, we will love to answer it.

The post Magento 2 SEO Settings Tutorial appeared first on WebDux.com.

]]>
https://www.webdux.com/magento-2-seo-settings-tutorial-970.html/feed 0
How Address Magento lots of Spam Search Terms Issue? https://www.webdux.com/how-address-magento-lots-of-spam-search-terms-issue-965.html https://www.webdux.com/how-address-magento-lots-of-spam-search-terms-issue-965.html#respond Sun, 12 Feb 2017 15:24:31 +0000 http://www.webdux.com/?p=965 Recently we build one Magento 2 online store but I notice there are thousands of spam search terms, e.g. "大奖娱乐88tb88手机版+Q82019309.com.com", after I deleted all these spam search terms, it will produce one by one soon. So how to stop spam search terms produced?

The post How Address Magento lots of Spam Search Terms Issue? appeared first on WebDux.com.

]]>
How Address Magento lots of Spam Search Terms Issue?

Recently we build one Magento 2 online store but I notice there are thousands of spam search terms, e.g. “大奖娱乐88tb88手机版+Q82019309.com.com“, after I deleted all these spam search terms, it will produce one by one soon. So how to stop spam search terms produced?

I checked the server access log, which there are thousands followed records:

66.249.66.66 - - [12/Feb/2017:13:16:46 +0000] "GET /robots.txt HTTP/1.0" 301 749 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.66.60 - - [12/Feb/2017:13:19:03 +0000] "GET /catalogsearch/result/?q=888%E5%A4%A7%E5%A5%96%E5%A8%B1%E4%B9%9088pt88+Q82019309.com.com HTTP/1.0" 200 8587 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

The log records show the bot try to get robots.txt, but it get 301, which means there is no robots.txt, then the bot try to visit Magento’s search page so add the spam search terms.

After understanding this, it will be easy to solve. create robots.txt file under website root folder and add the followed command:

Disallow: /catalogsearch/

That’s all.

The post How Address Magento lots of Spam Search Terms Issue? appeared first on WebDux.com.

]]>
https://www.webdux.com/how-address-magento-lots-of-spam-search-terms-issue-965.html/feed 0
How to Change Welcome Message in Magento 2 https://www.webdux.com/how-to-change-welcome-message-in-magento-2-955.html https://www.webdux.com/how-to-change-welcome-message-in-magento-2-955.html#respond Wed, 25 Jan 2017 10:14:37 +0000 http://www.webdux.com/?p=955 Welcome message is shown in the top right of the header that include the customer’s name when they logged in. However, if not login, by Magento 2 Default message, the welcome message is set to “Default welcome msg”. If you want to change the message, it is possible to do that. Remember that changing the “Default welcome msg” text as you desire to be more attracted and friendly before you launch your Magento 2 store.

The post How to Change Welcome Message in Magento 2 appeared first on WebDux.com.

]]>
Welcome message is shown in the top right of the header that include the customer’s name when they logged in. However, if not login, by Magento 2 Default message, the welcome message is set to “Default welcome msg”. If you want to change the message, it is possible to do that. Remember that changing the “Default welcome msg” text as you desire to be more attracted and friendly before you launch your Magento 2 store.

How to Change Welcome Message in Magento 2

Magento 2 configuration allows modifying the welcome message easily by following the guides:

To change the welcome message in Magento 2:

  • On the Admin sidebar, click on Content. Then under Design, choose Configuration.
  • Choose the storeview you want to change the welcome message.
  • Under Action column, open the Edit mode.
  • Scroll down and expand the Header section. Then, enter the Welcome Text that you want to appear.

How to Change Welcome Message in Magento 2

  • When complete, click on Save Config.
  • When prompted to update the Page Cache, click the Cache Management link at the top of the workspace. Then, follow the instructions to refresh the cache.
  • magento 2 welcome message block
  • magento 2 default welcome message
  • magento 2 edit welcome message
  • magento 2 remove welcome message
  • magento 2 welcome message
  • magento 2 customer welcome message
  • delete welcome message magento 2
  • magento 2 welcome message file
  • magento 2 welcome message remove
  • magento 2 go welcome message
  • magento 2 edit default welcome message
  • magento 2 disable welcome message
  • magento 2 welcome message phtml
  • magento 2 default welcome message location
  • magento 2 remove welcome message local.xml
  • magento 2 hide welcome message
  • edit welcome message in magento 2
  • magento 2 welcome message template
  • magento 2 remove default welcome message
  • magento 2 welcome message first name only
  • magento 2 header welcome message
  • magento 2 welcome message username
  • magento 2 welcome message not showing
  • magento 2 disable default welcome message
  • magento 2 modify welcome message
  • welcome message in magento 2
  • magento 2 get welcome message
  • magento 2 set welcome message
  • magento 2 welcome message css
  • magento 2 welcome message logged in
  • magento 2 display welcome message

The post How to Change Welcome Message in Magento 2 appeared first on WebDux.com.

]]>
https://www.webdux.com/how-to-change-welcome-message-in-magento-2-955.html/feed 0