catgento.com
  • Blog
  • Magento Events / variables and modules
  • Magento functions cheatsheet
  • About
  • Github

Development

Development

The most useful [active] Magento blogs

Ever since I started programming in Magento/PHP, I had the need to find Magento blogs with useful tips and up-to-date information (Magento changes very quickly along with how things have to be done with it as well). After almost two years I’ve only found a few blogs that are up Read more…

By Pau, 10 years ago
Development

Executing cron tasks manually in Magento

Usually I’ve been asked about how to run a cron task manually. A cron task defined in Magento is not anything else than a function that belongs to a model that is loaded and executed. For example, we have this cron task on a config.xml file of a specific module: Read more…

By Pau, 10 years ago
Development

How to create a custom setup script in Magento

During the past days we have had some problems when updating our Magento custom modules. Oddly, even though we created the mysql4-upgrade file and edited the config.xml with the new version, the upgrade script wouldn’t run. Why? We don’t know. But we needed a quick solution because there was an Read more…

By Pau, 11 years ago
Development

Browser language auto-detection in Magento

By default, Magento shows the store that has been configured «by default». Adding browser language auto-detection is pretty easy editing the Magento index.php file. We just need to check what’s the user browser main language and then try to load the store that uses that code. It’s important to note Read more…

By Pau, 11 years ago
Development

Solr: 413 Status: FULL head and Magento (hits but no results)

A few days ago we tried to install and set Solr as a Magento default search system. We run into a weird problem: once we checked that Solr was working we enabled it in Magento. Everything seemed to work well: when reindexing products the log would show the changes and Read more…

By Pau, 11 years ago
Development

Programmatically update product price per website in Magento

If you want to programmatically update product prices per website (this means that you have many websites and have set a website scope for price in the configuration), then you can use this script: Important note: I haven’t developed this, but I think it’s interesting to note it down. Thanks Read more…

By Pau, 11 years ago
Development

Adding configurable product options to category list in Magento

At this moment we’re working on 3 projects, all of them require a category list with products that are only configurable and the customer has to be able to choose the options from the configurable and add it directly to the cart without going to the product page. Step by Read more…

By Pau, 11 years ago
Development

Programmatically create order statuses in Magento

If you want to create new order statuses (not states) and assign them to a particular state you need to use the sales/order_status model. It’s pretty easy: Then you can assign the state with the assignState method:

By Pau, 11 years ago
Development

How to set tier prices programmatically in Magento

Working with tier prices programmatically in Magento is somewhat tricky. I found a couple of annoying bugs or behaviors that really got me stuck. I’ll speak about that at the end of this post. Update: Our colleague Josh found how to solve this issue by rewriting a core module. Take a Read more…

By Pau, 11 years ago
Development

What you need if you want to develop with magento

Here are a few tips to take into account if you want to start developing with Magento.

By Pau, 11 years ago

Posts navigation

Previous 1 … 3 4
  • My page about yoga, Yoga Alacant
  • Magento Events / variables and modules
  • Magento functions cheatsheet
Hestia | Developed by ThemeIsle
 

Loading Comments...