Category / Magento

How to add an external javascript/css file to Magento?

How to add an external javascript/css file to Magento?

image by mauricesvay left @flickr

Have you ever had a need for adding external files into your Magento layout?
If you had then you know that you cannot do that from your xml layout files using methods/action:

<action method="addJs">
<action method="addCss">
or
<action method="addItem">

You could do that by hard-coding your “head.phtml” file, but then those external files will be loaded on all Magento pages.
This simple extension will provide you easy access for adding/removing external files such as JavaScript or CSS, libraries from remote servers which you cannot or don’t want to put on your server.
I called it Inchoo_Xternal extension.
Read more

33

Logging user/customer actions in Magento

Logging user/customer actions in Magento

Recently I wrote a Magento extension called ActionLogger, inspired (thematically) by the “Logging of Administrator Actions” feature available in Magento Enterprise. ActionLogger is pretty simple extension, working on pretty simple but powerful concept of Magento controllers predispatch action.

All you need to do is to create event observer/observers for “controller_action_predispatch” event. This event is fired on every controller action call. Read more

11

Magento PDF invoice with product images extension

Magento PDF invoice with product images extension

Hello everyone, short while after I wrote article Add custom attribute to Magento’s PDF invoice I received quite a number of requests for explanation on how to add products images to PDF invoice. As I had some time, I’ve created an extension that will do just that.
Read more

6

Magento and rel=canonical

Magento and rel=canonical

photo of twins by e³°°° @flickr

A new comment on my old post that explains how rel=canonical element (tag) works gave me inspiration to write another article about rel=canonical. This time, I’ll try to explain why and where rel=canonical is usually necessary in a Magento store.

I’ll leave technical implementation and decision should you use any of the existing extensions or go for custom implementation to you. I’ll just cover the marketing and SEO perspective on the issue. Read more

23

Create configuration for your Magento extension

Create configuration for your Magento extension

Today I’m going to give you and quick HOW-TO for beginners on how to create simple configuration for your extension inside Magento’s configuration section.
If you’re interested, read on:
Read more

15

Adding related products problem

Adding related products problem

by gerard79/sxc.hu

Today I had a problem when I want to add related product to Magento Professional 1.9.0.0., it did not work. After some tracing thrown errors and comparing files with other Magento versions I found missing part. Magento Professional has missing lines of code in Related.php. So, if someone stuck on the same problem, here is the solution!

Read more

3

Magento code library – Handling files and folders

Magento code library – Handling files and folders

Among most often custom coding tasks are usually those related to some import/export between Magento and other system. Usually existing store owners when switching from their current shop system to Magento want to transfer all of their products, orders, and most importantly customers.

Most of the time, standard Magento product/customer import/export is not sufficient for the task at hand. Limitations like file size upload and structure of original data require you to do a custom scripts that will handle the job of data transfer. Think of shops with several tens of thousands of orders, customers, products. Read more

3

Magento Go Platform, sneak peak

Magento Go Platform, sneak peak

Seems like folks in Magento are rolling fast with their Magento Go Platform. Few minutes ago I stumbled upon a url http://devsite-demo.magento.com which seems to host a development version of Go Platform’s developers site.

Although still limited with content, several interesting and bottom line things are already there.

Seems like Go Platform will use REST API approach to integrate an OpenSocial gadget in your Magento store. Given that we are talking about the Google’s Open Social, I’m very pleased to see them move in this direction. Meaning most of your development will come down to JavaScript, XML, XHTML, and a few calls to REST API’s. Read more

2

Problems with Contact form

Problems with Contact form

Couple of days ago I had a problem with contact form not working in Magento Professional 1.9.0.0. Magento was throwing error “Unable to submit your request. Please, try again later” after submitting form. Of course all requested fields was filled. Here I will explain what needs to be done if you have same problems.

Read more

14

Local setup for Facebook Connect app development

Local setup for Facebook Connect app development

As you might know, if you wish to work with Facebook Connect it requires your development site to be accessible to it for security reasons. So that it can verify that you (your application) have rights to access certain information from its users. In this article, in short, I’ll show you how to make your local development machine accessible from the internet. If that’s what you need, read on!
Read more

9