Magento Country Codes For Table Rate Shipping Methods

| Last Updated: | In: Code Snippets, Magento Tutorial


If you want to implement the table rate shipping method in your online Magento store, in that case, you also need to enter the country codes. Below is the complete list of country codes for the Table rate shipping method. Magento Country Codes For Table Rate Shipping Methods You can also download the complete list …

Get The Full Details of Products in MySQL Database in PrestaShop

| Last Updated: | In: Code Snippets


If you want to get the complete lists of products which are currently on your PrestaShop based website using MySQL database, then use the below MySQL queries. how to get full details of each product item in mysql database in prestashop Follow the below steps to get the complete details of each product in MySQL …

Disable Theme Editor Option in WordPress Admin

| Last Updated: | In: Code Snippets


When you deliver WordPress based website to the client who is not technical as he can manage his/her website by using WordPress Admin panel, then you should disable the theme editor option from admin panel. It will stop to make any changes directly in code by using WordPress Admin panel. Disable Theme Editor Option in …

How to Remove File Extension From URLs

| Last Updated: | In: Code Snippets


If you want to remove the file extension from the URLs, then this tutorial designed for you, keep your close attention in the tutorial as I am going to share how to remove the file extension from URLs. If your site URL is http://example.com/about.php and you want it to be like http://example.com/about, then use the …

Redirect User Directly to Checkout Page After Adding Product to Cart in Woocommerce

| Last Updated: | In: Code Snippets


In this tutorial, I will explain how to redirect user directly to checkout page after adding product to cart in WooCommerce. This is very simple & easy code snippets to extends the features of your WooCommerce based online store. How to redirect user directly to checkout page after adding product to cart in Woocommerce? Copy …

Add Confirm Password Field on The Register Form Under My Accounts

| Last Updated: | In: Code Snippets


If you want to add confirm field password field on the registration form under my account page, then this tutorial is specially designed for you. Please keep your close attention in this post and use the below code snippets. Add confirm password field on the register form under My Accounts Add the below code at …

How to Add Custom Fields in User Registration in WooCommerce

| Last Updated: | In: WooCommerce, WordPress


Sometimes we need to add the extra fields in the WooCommerce registration form to get some more information, which by default you can’t get from the registration page. In this tutorial, I will share how to add custom fields in user registration on the “My Account” page. There are two ways to add the custom …

Use Safely Redirect URLs in WordPress

| Last Updated: | In: WordPress Snippets


In this tutorial, I will explain how to use safely redirect URLs in WordPress. The wp_safe_redirect() function does not exit automatically, if you are using this function in your code, then you should always used the exit(). See the below example: Use Safely Redirect URLs in WordPress You can use the below code in your …

How to Remove Width and Height Attributes From Images in WordPress

| Last Updated: | In: Code Snippets, WordPress Snippets


In this tutorial, I will explain how to remove width and height attributes from inserted images in WordPress posts and pages. The images uploaded through the WordPress media uploader and inserted in your posts or pages it automatically added the width and height attributes in your image. How to Remove Width and Height Attributes From …

Always Force to Redirect HTTPS URL

| Last Updated: | In: Code Snippets


If you have recently moved your website to HTTPS from HTTP and facing the mixed content issues, or some of your site URLs are still redirected to HTTP, then you can use the below code snippets in your .htacess file. Always Force to Redirect HTTPS URL This htacess code will always force to redirect HTTPS …