For Clients
For Geeks

We all have our small and big WordPress projects. Sometimes we want to allow our clients to see what has been done so far, but we don’t want anybody else to see it. The easiest way to define this is: prevent access for users which are not logged in WordPress administration. Sure – you can […]

Read snippet

Sometimes we and/or our customers want to remove price changes from product options and have them display only on change on our price label in Magento. For configurable products, prices are added to label from js module Product.Config. To remove them, we have to rewrite module’s function getOptionLabel. We need a new javascript file, inside js folder, […]

Read snippet

Sometimes you just want to ignore changes you made locally and have the same situation you have on your git remote server. It is a simple thing to do, but don’t forget you will delete all the changes you have made locally before running this command.

Read snippet

It is not usual to show the number of the published post, however, it is not necessarily a bad thing. Sometimes, we just don’t publish on daily or weekly basis and this “published” date might make our posts look outdated. Therefore, we can build a simple procedure which will tell us how many of this […]

Read snippet

Assuming that we have column A containing first and last name with a potential middle name, we can assume that taking first name can be conducted by getting the value from beginning until first space.

Read snippet

We often need to list randomly chosen products on our Magento store. Lucky for us, Magento has provided this functionality, and this is easy to achieve from CMS block or CMS page. All we need to do is choose a category from which we’d like to list our products, and use following snippet in that […]

Read snippet

By default, Magento keeps track of complete “Comments History” on any order. This is a useful functionality that allows administrators to keep track of any internal communication as well as any comments left by a customer. The good news, for any developer is, it is easy to programatically add comment to any order in Magento. […]

Read snippet

Lets say that we’re writing bash script that should perform all the commands as a regular user, but it should also edit some files for which sudo command is needed. Writing sudo command won’t be much of a help as script might not ask for the password, and instead might just respond with “Permission denied”.

Read snippet

Page 1 of 2112345...1020...Last »