Friday, November 07, 2008

Paypal Integration

I recently have been setting up an ecommerce site from the ground up. One of the task at hand was to incorporate Paypal as a method to the checkout process. Paypal offers many ways to do this. From APIs that process the credit cards on your site to passing off variables over, to simply adding a buy now button on each product.

I opted for a middle of the road option at first, which they label _cart. HEre is the code:


This option allows you to gather your products in your shopping cart and send each item to be listed individually on one invoice in the Paypal site. The problem is that this option does not allow the developer to submit discount or coupons.

This posed a major challenge as the site I was building makes use of coupons and other special promotions such as free shipping based on benchmarked dollars spent.

The solution, set the cmd hidden field to _xclick and pass all the items in one description field. It's not as pretty or user friendly as the previous solution, but you then only have to pass Paypal a total amount which includes all discounts, tax, shipping charges all in one line.



The bottom line is that as you are developing Web sites you will be thrown several curves. You will encounter a multitude of problems. The best thing to do is to go at it, do some research and thing of simple solutions. Don't get wrap up on the problem, the best solutions are simple, effective, and best of all easy to code.

Labels: , , , , , ,

Digg This Del.icio.us Slashdot

Saturday, September 13, 2008

Google Chrome

Web designers faced many challenges, among them the compatibility across all browsers. In 2004, I downloaded Opera, and it became my rule of thumb that if it worked and looked good in Opera, it would be fine in all other browsers.

Then came a new version of Opera, and my rule went out the door. I know was creating sites and testing in three different browsers. I was testing in Internet Explorer, Firefox, and Opera. I could care less about Safari or Mac browsers because at the time Apple was in the toilet and most were using PC.

Since 2004 many things have changed. Most households have adopted some flavor of computer and some sort of broadband. Each of the aforementioned browsers have evolved and have required many more band-aids across the board. CSS has also evolved and with it many more problems have followed. In June of this year (2008), I wrote a post alluding to Google putting all these broswers to shame with some standards.

Well the Google browser is now here. As with all Google products is a beta release and shall remain so for the upcoming years to follow. I download the savior last week and have been playing on and off with it. Test driving it if you will. As with most Google creations, it is simple, yet powerful enought to calculate your most visited sites and minimizes the crashes. Although it provides a lot of features, it somehow lacks flare.

I opened a few pages that have tweaks and patches and for the most part it looks like all sytems are a go.

The bottom line is that with the release of Chrome I hope to be able to diminish the patches, but the future looks gloomy thus far, I spoke with a few friends in the space and most had yet to hear of the browser, let alone taken it out for a test drive. Hopefully our Savior has come, but only time will tell.

Labels: , , , , ,

Digg This Del.icio.us Slashdot

Thursday, July 17, 2008

Div Container Width

I have become a great fan of CSS and fluid design for the past couple of years. Tables are a thing of the past. The problem is that even though most Web designers have evolved, browsers have not.

You see browsers are put together by coders, developers if you will. Those types only understand 0 and 1s and have very little time to worry about nuances that pesky designers would devote their time to calculating. One of those nuances are containers like div.

Originally designed to serve as layers, again for Web and Graphic designers, div have become very useful as not only can they float and be positioned, but they serve as containers for content on the Web page.

Here comes my issue, I been having some problem fitting the content on a multi-column site. After some quick Googling, I came across a forum thread explaining that the total outside width of a div box is the sum of the values for the following properties:

margin-left
+ border-left-width
+ padding-left
+ width
+ padding-right
+ border-right-width
+ margin-right
= total occupied width of any {display:block} type box

This makes no sense to me. Although Firefox does follow standards and many accuse Internet Explorer of breaking rules and misbehaving; IE6 and IE7 follow rules much more closely to how designers work. When I designed a page I typically render it in Photoshop, then I translate the work into HTML and CSS. When I measure my drawings in Photoshop, IE follows suit, while I have to more intensely calculate when it comes to Firefox.

The bottom line is that it is unfortunate that browser creators can't come together and be unified so that we, as Web designers, don't have to patch holes cause by the multitude of browsers. Perhaps one day the W3C will succeed in unifying browsers with coming up with standards and rules. As for me, I'm just waiting for Google to come out with their own browser, take over the world, and keep making us drink their cool-aid, until then, I'll keep plugging the holes and hope to stay afloat.

Labels: , , , , , ,

Digg This Del.icio.us Slashdot

posted by Death is Endless at 0 Comments Links to this post

Monday, July 14, 2008

You are ready for an update

I recently read an entry on Eric Shanfelt's blog entitled "Publish Web First, Print Second" which further reinforced my accounts from a previous entry Instant Information entry. I have discussed this topic to death, which by the way is endless, in the past couple of month. I have discussed it with colleagues, friends, and just about anyone I know who is interested or willing to hear it.

Yet, little change has taken place. We all continue, day in day out, to use the Web site as a landfill. A place to dump all information, whether relevant or otherwise, and continue to save the best for print. I have also noticed that this is the case for most sites for which I visit and receive a magazine.

It dawned on my this evening that perhaps is not our sites or our processes that need an upgrade, but ourselves. We are at cross roads, a place where digital media is changing the way we obtained our information. We are at the point where most jobs are going digital, yet change hasn't taken place. People still walk into their desks and the only digital they see is their email. I'm referring to the mail clerk all the way up the food chain to the CEO.

I can assure you that less snail mail is receive every day than digital mail. We have completely revamped our immediate communication avenues, but have yet to see that we no longer wake up and go outside to pick up the paper. We instead turn to Google news, MSNBC.com, CNN.com, ESPN.com or some other .com avenue to be feed our daily dose of information.

Then why is it that most publishers insist in saving the best content for print? Because the senior level editors fear for their jobs, they fear that the pimpled face twenty something is going to come in and replace them.

My mother always told me and re-enforce two important things that I carry with me to this day:

1. Go into any career you want, just make sure you work to be the best in your field.
2. Always associate with smarter people, they will teach you new things and take you to the next level.

I used to think my mother was crazy, but what 12 year old wants to listen to their parents, let alone pay attention to any advice they might have to give.

The bottom line is that if you give the new generation a chance for expressing their ideas, and you surround yourself with the best and the brightest, you will rise in your career as you will have the best team working for you. If you insist in keeping them in the dark basement and cultivate them as mushrooms, they will grow to resent you and you will miss out in sharing ideas and growing your company to the next level. Ever noticed the Windows Update icon that pops up near the bottom right corner of your PC? A little box typically pops up notifying you of yet another update/upgrade to your current flavor of Windows. Don't you wish you came equipped with such an enhancement. Time to update!

Labels: , , , , , ,

Digg This Del.icio.us Slashdot

posted by Death is Endless at 2 Comments Links to this post

Saturday, May 31, 2008

Embed fonts on your Web site

Recently, I have been thinking about design and the nature to code safely on the Web. As designers we typically choose to use Web friendly fonts like Verdana, Times New Roman, Arial, and Trebuchet MS.

Designers, however should not let browsers inabilities to carry a vast array of fonts interfere with their designs. Michaelangelo would not have sacrifice the roof of the Sistine Chapel due to lack of a smaller brush, so why is it that Web designers so often sacrifice bandwidth and turn to background images or heavy downloads to convey their message; not to mention the lack of search engine friendliness involved in presenting picures and images instead of text.

I sought out a clear answer on how to embed fonts on a site without the need to sacrife speed or SEO. Back in the late 90's both Netscape and Internet Explorer were fighting grounds for the title of browser reign supreme as such both came out with unusual plugins and font rendering programs, however this was but a mere patch and band aid on the problem as fonts were translated to images solving only the small side of the equation. I don't blame them as SEO wasn't a hot topic in those days and Google was but a silly word some guys thought of to represent their brand.

In today's Web, where Search Engines are the hot club were your name must be on the list, it is crucial to create SE's friendly sites. to do so, the @font-face construct must be utilize.

Here is a simple example courtesy of the css czars at A List Apart:

@font-face {
font-family: "Kimberley";
src: url(http://www.princexml.com/fonts/larabie/ »
kimberle.ttf) format("truetype");
}
h1 { font-family: "Kimberley", sans-serif }

"Those familiar with CSS syntax will recognize the last line. The @font-face construct may not be familiar, however it’s easy to explain: as the “Kimberley” font is requested, the font file is fetched from the specified URL. The syntax is described in the CSS2 specification.

To avoid long lists of @font-face declarations in the style sheet, they can be hidden using @import" like so,

@import url(http://www.princexml.com/fonts/larabie/index.css) all;
h1 { font-family: Goodfish, serif }

The bottom line is that you should not limit yourself or set the bar too low, there is always a way to solve the problem. Problems are easy to come by, but securing an answer is where the intellectual matter comes into play. Don't let the ineptitude of todays' browser interfere with the future, just make sure that you gracefully prepare your site for degredation or for those living in the past. To appreciate the true power behind css, please refer to the Zen Garden project.

Labels: , , , , , , , , ,

Digg This Del.icio.us Slashdot

posted by Death is Endless at 3 Comments Links to this post

Monday, May 05, 2008

SEO Hackery and sales tricks

I was recently reading an article on SEO Chat, a large provider of SEO tools, articles, and news. I have been exploring and toying with the idea of hiring a consultant/ helper to get better rankings on some terms. I have a lot of experience on SEO, and keep with with the space, but it is always great to get third party validation.

The problem is that when it comes to SEO, you have to open up your entire site to some folks who just may do a hack job or worst, get you banned. This is why I get wary of SEO, thankfully SEO Chat is able to validate my worries, this article speaks of Network Solutions, one of the largest domain name registrars.

It is sad to see such a powerful company diminish the trust of the community by offering trickery and half-ass SEO programs to turn a profit on the less savvy.

Another point not covered in the article is that you do -not- get to select the keywords you want to rank for. They go after low volume low traffic "low hanging fruit" keywords (the sort a crappy site can rank for with the addition of the term into the title tag)

Another bad practice by these registrars, also not covered in the article, but I mostly seen it in godaddy.com, is that they keep track of the domain names you search for. If you search for a domain name a few times, they consider it popular and will self register to themselves and then ask you for a lot of $$$ to sell it to you. I notice this in the past and was happy to see validation from some other users commenting on it at the end of this article.

The bottom line is that we have to be very careful on who to trust. Don't open up your site to just any hack that comes along, especially if the price is too good to be true. Here are some tips to keep in mind as you are in the search for an SEO consultant from the king of all Search Engines, Google.

Labels: , , , , ,

Digg This Del.icio.us Slashdot

posted by Death is Endless at 0 Comments Links to this post

Wednesday, April 30, 2008

iGoogle Themes

Last year Google introduced iGoogle, an addition to the Google Web site that allows customization, thereby creating an individual homepage for each user. You can login to your personalized page via the iGoogle top right menu on the Google homepage.

Not only do you get to use the predefined gadgets, but you can add your customized RSS feeds or create your own gadgets via the Web developer tools.

Today I noticed that Google was featuring theme images for the iGoogle homepage. It got me intrigued and I starting browsing the many themes available. Thus far I had been using the beach theme which changes it looks depending on the weather and time of the day. However, there are many other themes available. You can even give it a world and create your own themes. I haven't experimented yet, but hopefully I will be giving it a whirl soon.

The bottom line is that Google chooses to keep improving every product, first came iGoogle, then came Google Tabs, followed by Google Themes, now iGoogle social networking via design your own themes, user rating, user comments and FAQ. This company knows how to get things going and keep going. Google guys, forget American Idol, you are my new idols.

Labels: , , , , , , , , , ,

Digg This Del.icio.us Slashdot

posted by Death is Endless at 0 Comments Links to this post

Monday, April 14, 2008

IE6 PNG Transparency Problem

I been working on redisigning a couple of Web site and have come across a very serious problem. I created an image to be place as the background of a div. I then went ahead and included the company logo as a transparant PNG file. Everything was going great. I normally develop in Internet Explorer 7, but make sure to test on all other browsers, Firefox, Netscape, AOL, and Safari.

Turns out during my testing I forgot one, Internet Explorer 6. Well it came to bite me in the butt. When I pulled up the site, the logo was there, but to my surprise it had a grey background instead of the expected transparent background.

After many javascript and conditional comments trials, I decided to incorporate the logo onto the background image. The problem came in that I needed that logo to serve as a hot link to the Web site homepage.

The answer was simple, I created a div inside the div containing the background image and gave it absolute positioning with an onclick command. Here is the code:



The bottom line is that when problems seem complex, the main key is not to panic but to walk away from it for a few minutes and come up with a solution. At first glance, I became quite frustrated, but I turned to work on something else, an hour later, the solution hit me. Hope this helps you as well.

Labels: , , ,

Digg This Del.icio.us Slashdot

posted by Death is Endless at 0 Comments Links to this post