web development | naveenOS https://www.naveenos.com How may I help you - Magento Certified Developer Sun, 21 Nov 2021 18:00:58 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 Magento2 Wrong create options MYSQL Error https://www.naveenos.com/2019/10/magento2-wrong-create-options-mysql-error https://www.naveenos.com/2019/10/magento2-wrong-create-options-mysql-error#respond Thu, 17 Oct 2019 17:55:36 +0000 https://www.naveenos.com/?p=960 On transferring a Magento website Database running on MySQL 5.7.34 to MariaDB 10.2.39, I get the following error: SQL Strict mode was already off on this MySQL server. To fix the problem, edited the db.sql file, added below line at the top of the file. After this change, the restore worked without any error. Tweet […]

The post Magento2 Wrong create options MYSQL Error first appeared on naveenOS.]]>
https://www.naveenos.com/2019/10/magento2-wrong-create-options-mysql-error/feed 0
Magento2 Folder and Files Permissions https://www.naveenos.com/2017/06/magento2-folder-and-files-permissions https://www.naveenos.com/2017/06/magento2-folder-and-files-permissions#respond Wed, 21 Jun 2017 17:59:40 +0000 https://www.naveenos.com/?p=962 We all are developers and generally we do mistake in files and folders permission. It might be intentionally to fix any issue or by mistake. But how to fix the permissions back when it happened. Just go to your Magento setup root folder and run these all commands: Tweet This Post

The post Magento2 Folder and Files Permissions first appeared on naveenOS.]]>
https://www.naveenos.com/2017/06/magento2-folder-and-files-permissions/feed 0
Magenta Connect – Access is locked. Please try again in a few minutes https://www.naveenos.com/2017/03/magenta-connect-access-locked-please-try-minutes https://www.naveenos.com/2017/03/magenta-connect-access-locked-please-try-minutes#respond Sat, 11 Mar 2017 14:33:44 +0000 http://www.naveenos.com/?p=574 Getting error on Magento connect manager “Access is locked. Please try again in a few minutes.” Go to var/ folder and open file /var/brute-force.ini Change the following two first lines to: brute-force-bad-attempts-count = 0 brute-force-diff-time-to-attempt = 180 and remove all other lines and Save. Tweet This Post

The post Magenta Connect – Access is locked. Please try again in a few minutes first appeared on naveenOS.]]>
https://www.naveenos.com/2017/03/magenta-connect-access-locked-please-try-minutes/feed 0
How to replace string in parentheses using regex https://www.naveenos.com/2012/06/how-to-replace-string-in-parentheses-using-regex https://www.naveenos.com/2012/06/how-to-replace-string-in-parentheses-using-regex#respond Wed, 27 Jun 2012 15:05:01 +0000 http://www.naveenos.com/?p=525 PHP, Java and other languages provide replace all functionality to replace any character by any specific character. But REGEX is best method to replace or remove any specific value using pattern. Suppose, we have input string is $xyz = "This is my best (friend)"; and we want to remove words from “()”. So it so […]

The post How to replace string in parentheses using regex first appeared on naveenOS.]]>
https://www.naveenos.com/2012/06/how-to-replace-string-in-parentheses-using-regex/feed 0
How to programmatically add shipment with a tracking number to any order : PART II https://www.naveenos.com/2012/05/how-to-programmatically-add-shipment-with-a-tracking-number-to-any-order-part-ii https://www.naveenos.com/2012/05/how-to-programmatically-add-shipment-with-a-tracking-number-to-any-order-part-ii#comments Tue, 15 May 2012 06:45:58 +0000 http://www.naveenos.com/?p=514 In my previous post [How to programmatically add shipment with a tracking number to any order : PART I], you found that how can we generate shipment for an order programmatically. Here we are going to learn next step to add tracking number with generated shipment. We are assuming that you are going to use […]

The post How to programmatically add shipment with a tracking number to any order : PART II first appeared on naveenOS.]]>
https://www.naveenos.com/2012/05/how-to-programmatically-add-shipment-with-a-tracking-number-to-any-order-part-ii/feed 1
How to programmatically add shipment with a tracking number to any order : PART I https://www.naveenos.com/2012/05/how-to-programmatically-add-shipment-with-a-tracking-number-to-any-order-part-i https://www.naveenos.com/2012/05/how-to-programmatically-add-shipment-with-a-tracking-number-to-any-order-part-i#respond Tue, 15 May 2012 06:30:27 +0000 http://www.naveenos.com/?p=509 We are assuming that we have an order incremented id. and we want to make shipment for this order. Here also we are assuming that invoice has been generated for order already. so we are going to generate only shipment. $orderId = '1000001'; $order = Mage::getModel('sales/order')->loadByIncrementId($orderId); Here we are checking the current status of order […]

The post How to programmatically add shipment with a tracking number to any order : PART I first appeared on naveenOS.]]>
https://www.naveenos.com/2012/05/how-to-programmatically-add-shipment-with-a-tracking-number-to-any-order-part-i/feed 0
How to get ordered Items and their detail for an order ID in Magento? https://www.naveenos.com/2012/05/how-to-get-ordered-items-and-their-detail-for-an-order-id-in-magento https://www.naveenos.com/2012/05/how-to-get-ordered-items-and-their-detail-for-an-order-id-in-magento#respond Thu, 10 May 2012 09:34:21 +0000 http://www.naveenos.com/?p=505 I tried to wrote this code when I was working on a cron file for all orders. My client wants a cron file that get all orders information including all ordered item and their detail. First, I searched on google but I didn’t found any exact solution then I tried below code: By below code […]

The post How to get ordered Items and their detail for an order ID in Magento? first appeared on naveenOS.]]>
https://www.naveenos.com/2012/05/how-to-get-ordered-items-and-their-detail-for-an-order-id-in-magento/feed 0
How to add custom layout template in Magento https://www.naveenos.com/2012/05/how-to-add-custom-layout-template-in-magento https://www.naveenos.com/2012/05/how-to-add-custom-layout-template-in-magento#respond Thu, 10 May 2012 08:14:17 +0000 http://www.naveenos.com/?p=500 Magento provides following types of page layout in default. 1column, 2columns-left, 2columns-right, 3columns, empty, and print. But sometimes we need to change design in layout and we do not want to affect on other pages. For example, we want to use different layout for all static pages. and we want to use 2columns-left layout style […]

The post How to add custom layout template in Magento first appeared on naveenOS.]]>
https://www.naveenos.com/2012/05/how-to-add-custom-layout-template-in-magento/feed 0
Magento: How to merge multiple fields in a colum in Magento admin panel grid? https://www.naveenos.com/2012/05/magento-how-to-merge-multiple-fields-in-a-colum-in-magento-admin-panel-grid https://www.naveenos.com/2012/05/magento-how-to-merge-multiple-fields-in-a-colum-in-magento-admin-panel-grid#comments Thu, 03 May 2012 07:48:36 +0000 http://www.naveenos.com/?p=491 Magento provides lot of inbuild functionalities. Using “protected function _prepareColumns()” function we can create or add new column to the grid. Like: protected function _prepareColumns() { $this->addColumn('first_name', array( 'header' => Mage::helper('custommodule')->__('First Name'), 'align' => 'left', 'width' => '50px', 'index' => 'first_name', )); $this->addColumn('last_name', array( 'header' => Mage::helper('custommodule')->__('Last Name'), 'align' => 'left', 'width' => '50px', 'index' […]

The post Magento: How to merge multiple fields in a colum in Magento admin panel grid? first appeared on naveenOS.]]>
https://www.naveenos.com/2012/05/magento-how-to-merge-multiple-fields-in-a-colum-in-magento-admin-panel-grid/feed 1
Fatal error: Call to a member function addFieldToFilter() on a non-object in magento https://www.naveenos.com/2012/04/fatal-error-call-to-a-member-function-addfieldtofilter-on-a-non-object-in-magento https://www.naveenos.com/2012/04/fatal-error-call-to-a-member-function-addfieldtofilter-on-a-non-object-in-magento#respond Tue, 24 Apr 2012 08:00:50 +0000 http://naveenos.com/?p=484 Have you upgraded your magento version OR installed any module/extension manually? If you getting this error: “Fatal error: Call to a member function addFieldToFilter() on a non-object ……” after doing any step above then you have to following steps to solve: Step 1: Re-index the all tables. a) To re-index Go to your site admin […]

The post Fatal error: Call to a member function addFieldToFilter() on a non-object in magento first appeared on naveenOS.]]>
https://www.naveenos.com/2012/04/fatal-error-call-to-a-member-function-addfieldtofilter-on-a-non-object-in-magento/feed 0