How to do | naveenOS https://www.naveenos.com How may I help you - E-Commerce | Full-Stack Developer Sun, 21 Nov 2021 18:00:58 +0000 en-US hourly 1 https://wordpress.org/?v=6.7 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
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