If you ever need to programmatically clear Magento’s shopping cart, use the snippet of code below. If you need to clear the user’s entire session, including the shopping cart, shipping information, billing information and chosen payment methods, please refer to the snippet further below.
Sep 09
Here goes: wshkb4gy8m
So in order for me to “claim” this blog for submission on Technorati, I have to create a post with a certain jumbled string in it. Technorati will then read the jumbled string and verify that I am indeed the owner of this site.
Technorati is a search engine for blogs. I believe I’m jumping onto the bandwagon a little later than most people, but it’s better late than never.
Hopefully that works, otherwise I’m stuck with a useless post.
[edit] – it worked.
Sep 09
A client wanted every checkout on his site to be a guest checkout. He was selling a very niche product and wanted to avoid hassling potential customers with a user log-in or registration form. The goal was to modify Magento’s One Page Checkout to completely skip Step 1: Login/Register and show Step 2: Billing Information.
Sep 09
Having a reference for basic mod_rewrite examples on hand is always a good idea. About once every two weeks, I have to set up a server’s URL rewrites, and because I don’t use it that often, I’m susceptible to forgetting its exact syntax.
Aug 09
(5:39:37 PM) Tim: two fortunes for me today
(5:39:44 PM) Antonio David: nice
(5:39:50 PM) Tim: do they both count?
(5:40:01 PM) Tim: or is only one “real” and the other is a decoy
(5:40:02 PM) Antonio David: haha maybe they’re only half as effective
Aug 09
Found this picture from a long time ago. This is from Mario Party 3. Mario has 4 stars and 836 coins while the other players are far behind.
Aug 09
From the Magento dashboard, there is no intuitive way of deleting/clearing/resetting customer, order, search, or tag data. As developers, we have to test the various functions of our specific Magento setup before presenting it to the client. Before the site can go live, all of the test data has to be removed so it doesn’t interfere with the client’s other business functions such as accounting and inventory.
Aug 09
Let’s say for example that configurable product A is defined to have 2 attributes “color” and “size”. Values for color may be: Black, White, Chrome while values for size may be: 1″, 2″, 3″, and 4″.
One would expect that there should be a price matrix that might look like:
| 1″ | 2″ | 3″ | 4″ | |
|---|---|---|---|---|
| Black | $1.00 | $1.20 | $1.40 | $1.60 |
| White | $1.05 | $1.25 | $1.45 | $1.65 |
| Chrome | $1.15 | $1.35 | $1.55 | $1.75 |
Aug 09
Recently I’ve had to import a client’s catalog data from Excel 2007 to the Magento eCommerce Platform. The data in Excel was unsurprisingly in a format that was unsupported by Magento’s import methods. Using code, I needed to parse Excel data into the format Magento required. In PHP, I wasn’t aware of any way to interface with .xls or .xlsx files, so I tried exporting the data to flat-file CSV, where it could be easily manipulated using PHP’s native CSV functions.











