Dorcode - RSS https://www.dorcode.com/rss/questions How to check if customer is logged in or not in magento https://www.dorcode.com/questions/165/how-to-check-if-customer-is-logged-in-or-not-in-magento Customer session does not work except some pages Sun, 09 Sep 2018 09:42:37 +0530 https://www.dorcode.com/questions/165/how-to-check-if-customer-is-logged-in-or-not-in-magento How to limit characters for textarea including count in jquery https://www.dorcode.com/questions/164/how-to-limit-characters-for-textarea-including-count-in-jquery Here are two scenarios where the keyup event will not get fired: The user drags text into the textarea. The user copy-paste text in the textarea with a right click (contextual menu). Wed, 08 Aug 2018 11:31:13 +0530 https://www.dorcode.com/questions/164/how-to-limit-characters-for-textarea-including-count-in-jquery How to check if customer is logged in or not in magento 2? https://www.dorcode.com/questions/163/how-to-check-if-customer-is-logged-in-or-not-in-magento-2 Customer session does not work except some pages Thu, 26 Jul 2018 16:33:14 +0530 https://www.dorcode.com/questions/163/how-to-check-if-customer-is-logged-in-or-not-in-magento-2 How to Hide the WordPress Update Notification in dashboard https://www.dorcode.com/questions/162/how-to-hide-the-wordpress-update-notification-in-dashboard To disable this update notification, there is no switch in the settings menu or anywhere else in the admin dashboard. To prevent WordPress from showing these information snippets on top of your WordPress dashboard, you shall need to add a PHP code snippet to your functions.php file. Tue, 29 May 2018 12:30:58 +0530 https://www.dorcode.com/questions/162/how-to-hide-the-wordpress-update-notification-in-dashboard How to create add to cart with AJAX on single and variable products programmatically https://www.dorcode.com/questions/161/how-to-create-add-to-cart-with-ajax-on-single-and-variable-products-programmatically default WooCommerce if the user clicks on the add to cart button, that item is added to the cart. if you want to add custom add to cart button please remove default "add to cart" button Tue, 29 May 2018 12:20:26 +0530 https://www.dorcode.com/questions/161/how-to-create-add-to-cart-with-ajax-on-single-and-variable-products-programmatically How to change format of Phone number in input text as you type? https://www.dorcode.com/questions/160/how-to-change-format-of-phone-number-in-input-text-as-you-type I'm currently displaying phone numbers like 18003336523. However, I need the number to be formatted in a more human-readable form, for example: 1-800-333-6523. Thu, 03 May 2018 15:32:32 +0530 https://www.dorcode.com/questions/160/how-to-change-format-of-phone-number-in-input-text-as-you-type How to include simple pagination in a Wordpress Custom Post Type Query https://www.dorcode.com/questions/158/how-to-include-simple-pagination-in-a-wordpress-custom-post-type-query For a WordPress blog, pagination alludes to showing a predetermined number of posts per page. Pagination permits clients the capacity to explore substantially less demanding and more profound into the chronicles. In this post, I will demonstrate that my past instructional exercise about including Pagination without a module in WordPress, can likewise be utilized on Custom Post Types with no alterations. I will likewise demonstrate the means I took to test my past instructional exercise's pagination code and demonstrate that it is as yet substantial for custom post writes. Thu, 05 Apr 2018 15:52:36 +0530 https://www.dorcode.com/questions/158/how-to-include-simple-pagination-in-a-wordpress-custom-post-type-query How to enable developer mode or enable all error messages in magento 2 https://www.dorcode.com/questions/157/how-to-enable-developer-mode-or-enable-all-error-messages-in-magento-2 When you’re getting a blank page in Magento 2.x or only error number like Error log record number: (any number), you can enable error reporting in Magento. Wed, 04 Apr 2018 16:44:01 +0530 https://www.dorcode.com/questions/157/how-to-enable-developer-mode-or-enable-all-error-messages-in-magento-2 Load more content with jQuery https://www.dorcode.com/questions/156/load-more-content-with-jquery Load more content with jQuery Wed, 28 Mar 2018 19:07:55 +0530 https://www.dorcode.com/questions/156/load-more-content-with-jquery How To Easily Add Product Variants To Your Clickfunnels 2-Step Order Form? https://www.dorcode.com/questions/155/how-to-easily-add-product-variants-to-your-clickfunnels-2-step-order-form How To Easily Add Product Variants To Your Clickfunnels 2-Step Order Form? Fri, 23 Mar 2018 14:58:37 +0530 https://www.dorcode.com/questions/155/how-to-easily-add-product-variants-to-your-clickfunnels-2-step-order-form How will my javascript function executed after the previous ajax call complete ? https://www.dorcode.com/questions/154/how-will-my-javascript-function-executed-after-the-previous-ajax-call-complete You can specify a function identifier in a custom property in your .ajax() call and use the value of that in your ajaxComplete() callback. Thu, 15 Mar 2018 13:48:26 +0530 https://www.dorcode.com/questions/154/how-will-my-javascript-function-executed-after-the-previous-ajax-call-complete How to Remove Items from the WordPress Toolbar new from wp admin area https://www.dorcode.com/questions/153/how-to-remove-items-from-the-wordpress-toolbar-new-from-wp-admin-area According to me if you want to remove all NEW link in wp admin area please follow this code Tue, 13 Mar 2018 17:31:01 +0530 https://www.dorcode.com/questions/153/how-to-remove-items-from-the-wordpress-toolbar-new-from-wp-admin-area woocommerce backend add items in new or edit orders https://www.dorcode.com/questions/152/woocommerce-backend-add-items-in-new-or-edit-orders If you need to change item product prices in Woocommerce Backend Order. Please use the following hook or code Thu, 08 Mar 2018 12:54:22 +0530 https://www.dorcode.com/questions/152/woocommerce-backend-add-items-in-new-or-edit-orders How to change user role after wordpress registration https://www.dorcode.com/questions/151/how-to-change-user-role-after-wordpress-registration This action hook allows you to access data for a new user immediately after they are added to the database. The user id is passed to hook as an argument. Thu, 22 Feb 2018 15:13:33 +0530 https://www.dorcode.com/questions/151/how-to-change-user-role-after-wordpress-registration how to add custom menu code in wordpress templates https://www.dorcode.com/questions/150/how-to-add-custom-menu-code-in-wordpress-templates If you want to add custom navigation menus in your WordPress templates? By default, many WordPress themes come with pre-defined menu locations and layouts. follow this article: Tue, 20 Feb 2018 15:58:20 +0530 https://www.dorcode.com/questions/150/how-to-add-custom-menu-code-in-wordpress-templates how to add a custom fields to wordpress pages and custom post type https://www.dorcode.com/questions/149/how-to-add-a-custom-fields-to-wordpress-pages-and-custom-post-type The hook allows meta box registration for any post type. Passes two parameters: $post_type and $post. Note: You can also use add_meta_boxes_{post_type} for best practice, so your hook will only run when editing a specific post type. This will only receive 1 parameter - $post. Tue, 20 Feb 2018 15:46:43 +0530 https://www.dorcode.com/questions/149/how-to-add-a-custom-fields-to-wordpress-pages-and-custom-post-type Page Hits Using Php https://www.dorcode.com/questions/147/page-hits-using-php Website visitor using php. Sat, 17 Feb 2018 11:28:24 +0530 https://www.dorcode.com/questions/147/page-hits-using-php How to WooCommerce state field (billing or shipping) not required on checkout page https://www.dorcode.com/questions/146/how-to-woocommerce-state-field-billing-or-shipping-not-required-on-checkout-page Try this code in your functions.php file Thu, 15 Feb 2018 18:05:30 +0530 https://www.dorcode.com/questions/146/how-to-woocommerce-state-field-billing-or-shipping-not-required-on-checkout-page How to Update PHP cookie or Update if not set and get cookie all values using codeigniter https://www.dorcode.com/questions/145/how-to-update-php-cookie-or-update-if-not-set-and-get-cookie-all-values-using-codeigniter A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is a small piece of data sent from a website and stored in a user's web browser while the user is browsing that website. A cookie is a small file that the server embeds on the user's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values. Thu, 11 Jan 2018 12:12:28 +0530 https://www.dorcode.com/questions/145/how-to-update-php-cookie-or-update-if-not-set-and-get-cookie-all-values-using-codeigniter How to Connect with MySQLi or PDO Server through PHP https://www.dorcode.com/questions/144/how-to-connect-with-mysqli-or-pdo-server-through-php PHP you can easily do this using the mysqli_connect() function. All communication between PHP and the MySQL database server takes place through this connection. The basic syntaxes for connecting to MySQL using MySQLi and PDO extensions: Wed, 10 Jan 2018 16:31:41 +0530 https://www.dorcode.com/questions/144/how-to-connect-with-mysqli-or-pdo-server-through-php