I want to setup a development environment for the Mage Enabler for WordPress plugin in my new desktop so I downloaded the latest copy of Magento Community Edition which is version 1.6.1.0 at the time of this writing. I used the sample data provided from the Magento download page and used all the default values.

Read the rest of this entry »

I’ve been working for the past few days with jQuery and one of the task was to manipulate HTML forms before submitting it for processing. What I needed to do is to process a form having multiple submit buttons and select tags. These set of select tags requires all values to be selected on submit.

Read the rest of this entry »

I’ve been receiving a lot of inquiries on how to create a new customer record on the fly using Mage.php or using the plugin Mage Enabler for WordPress. So, to save you time and also to provide a thread for this specific topic, here’s how to accomplish it.

Read the rest of this entry »

I needed a plugin that can show random quotes with author options as well and I found Stray Random Quotes WordPress plugin could do the trick. The only problem is, the function to display the random quote directly outputs the text onscreen together with the author.

Read the rest of this entry »

I was so nervous that night that I decided not to cite this long acceptance speech so I posted it here instead. Here it goes:
Read the rest of this entry »

The event will be held on 12th of December 2010 at Carlos P. Romulo Auditorium, RCBC Plaza. Hopefully, I’ll be able to win the award but nevertheless, the ultimate goal is to be with the best Filipino bloggers in the country.

If you’re thinking of creating a page that will display your customer list from Magento to a different PHP-based application, you can use the script below to do so.

First, let’s create a file called index.php and inside it, create function (I named it getCustomers()) that will extract an array of customer list and their information. The function should be able to access the Mage.php file of your Magento instance.

Read the rest of this entry »

You might have a Magento based website running online and wanted to extend parts of it (also known as blocks, which may include some css and js in the code) to an external site which may either be a blog, another CMS or any other PHP based web application. If you have been following my previous posts, you will know that by adding the Mage.php file of your Magento instance to your application, you can actually pull the needed HTML blocks at any time. The only problem is that most of the examples available online asks you to use the getChildHtml(‘your-block-here’) in which most the time frustrates you because of its complexity and limited resources of how you can actually use it.

There are other ways of doing it. Oddly enough, some are pretty simple and straight forward.
Read the rest of this entry »

This is a follow up post to a previous article I wrote on how to add products into Magento but this time the script includes custom options (attributes) of the product. I used Magento version 1.4.0.1 in this example. Just copy the whole script and save it as index.php.

Read the rest of this entry »

You want to extend WordPress’ functionality and decided to download some plugins found in the Official WordPress Plugin repository. After searching the repo, you’ve found two plugins that accomplishes the tasks you needed to implement in your blog. Downloading the plugins gives you two ZIP files that when double-clicked, shows you the contents in the following format:

plugin-a.zip

plugin-a-folder
---- plugin-a-main-file.php
---- plugin-a-readme.txt

plugin-b.zip

plugin-b-folder
---- plugin-b-subfolder
-------- plugin-b-main-file.php
-------- plugin-b-readme.txt

Read the rest of this entry »

I’m soooo happy to see my very first plugin to be released for everyone to use. I hope it will help a lot of Magento and WordPress users!

Click! click! click!

Advertisement

About my blog

This is a programmer's blog. Whenever I encounter a difficult coding task, I make sure that I'll be able to share it here in the hope that others may find it useful. It's my way of giving back to the open source community who have been a great help to me as well.

Share This Site

or bookmark to your mobile

Bookmark: http://mysillypointofview.richardferaro.com/

Advertisement

WordPress + Magento

Proudly Pinoy!

Proudly Pinoy!

Recent Trackbacks

Archives

Disclaimer

All entries in this blog are my opinion and don't necessarily reflect the opinion of my employer or my mom.

Viewers by Country

India 3219 (22 %) 3712 (21 %)
United States 2610 (18 %) 3231 (18 %)
United Kingdom 916 (6 %) 1131 (6 %)
Germany 753 (5 %) 867 (5 %)
Netherlands 489 (3 %) 608 (3 %)
Brazil 438 (3 %) 508 (3 %)
France 430 (3 %) 540 (3 %)
Philippines 359 (2 %) 528 (3 %)
Australia 333 (2 %) 400 (2 %)
Italy 320 (2 %) 448 (2 %)
Vietnam 311 (2 %) 372 (2 %)
Spain 294 (2 %) 354 (2 %)
Ukraine 289 (2 %) 380 (2 %)
Canada 256 (2 %) 407 (2 %)
Pakistan 246 (2 %) 285 (2 %)
China 219 (1 %) 262 (1 %)
Romania 215 (1 %) 272 (2 %)
Poland 138 (1 %) 177 (1 %)
Indonesia 116 (1 %) 147 (1 %)
Sweden 100 (1 %) 119 (1 %)
Total Countries: 130
Total Visits: 14730
Total Pageviews: 18005