Search the Wiki

Viewing 11 to 20 of 219 items

Magento – Get comment history of the order

You can use the below code to get the comment history of the order. $orderId = 100000454 ; $order = Mage::getModel(‘sales/order’)->loadByIncrementId($orderId); $commentsObject = $order->getStatusHistoryCollection(true); foreach ($commentsObject as $commentObj) { echo $commentObj->getComment() .” created at”.$commentObj->getCreatedAt() ; }

0

Ubuntu – Laptop’s touchpad doesn’t work

In this tip, we will see a solution that will fix a non-working laptop’s touchpad. The problem often occurs after upgrading your Ubuntu distribution to Ubuntu 16. Solution Open the terminal and run these commands: sudo apt update sudo apt install xserver-xorg-input-synaptics or sudo apt install –reinstall xserver-xorg-input-synaptics Then reboot your laptop: sudo reboot Hope  Full Article…

1

Ubuntu – How to deploy a Meteor.js application on Ubuntu with Nginx

Before You Begin You should have: An existing Meteor app on a separate development computer (you can view the example “Todo List” app here; instructions are provided later in the tutorial) A fresh Ubuntu 14.04 server; existing Meteor installations should work in most cases root access to the server to execute commands Updated package lists. Execute:apt-get update Replace todos.net with the  Full Article…

0

Magento – Get the last order ID

There are many ways to get the last order ID in Magento, here is the detail:  1. From the checkout session.   $lastOrderId = Mage::getSingleton(‘checkout/session’) ->getLastRealOrderId(); $orderId = Mage::getModel(‘sales/order’) ->loadByIncrementId($lastOrderId) ->getEntityId(); This solution will not work in case you want to get the last order ID in the backend. 2. From the model. $orders =  Full Article…

0

Centos – Create a Sudo User

The sudo command provides a mechanism for granting administrator privileges, ordinarily only available to the root user, to normal users. This guide will show you the easiest way to create a new user with sudo access on CentOS, without having to modify your server’s sudoers file. If you want to configure sudo for an existing  Full Article…

2