Posts by Tomas Novoselic

How to make order shipment from code

How to make order shipment from code

As most of you know, there is an Order interface in Magento administration from where you can trigger order shipping. However, while developing certain module, you might wish to trigger this event from the code. I hope that this code snippet will help you in this process. In my case I have used this code to make shipment from cron after I got confirmation from fulfillment center

Read more

Magento snippet for switching between websites

Magento snippet for switching between websites

Assuming you have set unique base URL foreach website running on the same Magento installation all you need to switch between those websites is this little snippet.
Just paste it somewhere in your templates.

However, keep in mind that I only tested this to work for my own configuration.

Basicly, what this snippet does is redirect to website’s default store base url.

Read more

Updating options of configurable product that is already in the cart

Updating options of configurable product that is already in the cart

Let’s say we have configurable Magento product in shopping cart and we want to update its
options without deleting product from cart and adding it again.

That’s quite easy to achieve with following steps, however I can’t write complete tutorial here so
you should be a little more familiar with Magento in order to make it work.

Read more

Top 3 mistakes by Magento beginners

Top 3 mistakes by Magento beginners

First of all, let me inform you that this article is for those of you who are just starting with Magento. If you are a Magento expert, you will probably know this.  Consider it just a reminder for those who use Magento for first time. There are three common mistakes that most people do when they try to use Magento for first time, so read this article and you won’t be one of them.:)

Read more