More to come

Recently I’ve been busy with some jobs around WordPress. I have learn a lot of WordPress functioning and hacking from all the tutorial around, I started to work with a framework :) That, my friend, is the time saver, really!
Theme control panel
More stuff coming out soon. Like the client told me… “Chinese New Year approaching, let’s “together” finish up all the job and get the pay check for new year“. Yeah right, I would say that is… Last minute?

The good thing is, things are slowing down these day. While I was worrying how to even start off, a few advise were given by my friends. 1, doesn’t matter who come or go, the main point is job is continuous. 2, be a labours since our paycheck actually lower :)

Though sometimes I do wanted to take job I like ONLY. But I am not on the stage yet :P I do encounter, a lot of situation like this:

Design to hell
How a web design goes straight to hell by The Oat Meal

Using WordPress as e-Commerce without plugin

Since a lot of web designers are so crazy about WordPress, I am too, excited to explore and learn about how it work.

Recently while I was looking around for tutorial on WordPress theme, I find a few and connected them, then “A-Ha!” moment was on, and I went straight to give it a test. I collected a few tutorial and created this little theme that can easily become e-Commerce with a PayPal button without any plugin. Just some hack here and there :)

Nettuts+ Paypal payment form
First tutorial I found was creating a PayPal payment form from Nettuts+. In order for the consumer to pay, I placed the payment form on single.php which shows on every entries (take it as product pages). Below is the form I edited from Nettuts+ tutorial so it doesn’t have a drop-down select option.

Code placement

<div style="clear: both; padding: 20px; border: 1px solid #eee;">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="My item">
<input type="hidden" name="item_number" value="00012">
<p>USD10 per pax
<input type="hidden" name="amount" value="10">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="AU">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="hidden" name="return" value="http://www.google.com.my/">
<input type="submit" value="Buy now!"></p>
</form>
</div>

In order to make the price editable to each entry/product. I use custom field. You can check the tutorial from Desizn Tech. Simple yet functioning. When I say functioning, it means if an entry doesn’t have a custom field, the form will not show up.

PHP to check if "Price" custom field is available. Then shows
<?php if (get_post_meta($post->ID, 'price', true) { ?>
<div style="clear: both; padding: 20px; border: 1px solid #eee;">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">

Your PayPal ID
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="My item">
<input type="hidden" name="item_number" value="00012">      

If custom field for "Price" is available, it will then print here
<p>USD<?php echo get_post_meta($post->ID, "price", $single = true); ?> per pax
<input type="hidden" name="amount" value="10">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="AU">
<input type="hidden" name="bn" value="PP-BuyNowBF">

Your returned URL, more check on Nettuts+
<input type="hidden" name="return" value="http://www.google.com.my/">
<input type="submit" value="Buy now!"></p>
</form>
</div>
If custom field is not available, it show nothing
<?php } else { } ?>

Custom field
So the custom field will be called “price“.

Payment form
Done! Now, every time you want to post a product, make sure the category is correct and you’re good to go. However, this is limited to payment and product. It is best for download-able product… For blogger who also run e-Commerce on the same time, this is a good to go :)

Commercialized

Chinese New Year getting not-so-exciting every year. Recently I have a drink with an old friend. He told me that, he started to feel that Chinese New Year is just a longer public holiday. He don’t get the excitement at all.

True. While I was jogging with my mom and wife the other day. My wife and I went to look for a drink, so we stopped by a kedai runcit, without thinking twice, I grab a chair and sat down, start any conversation with the owner, who is a Malay.

He said “Tahun Baru Cina sudah dekat ni, banyak bagi duit lagi kah?“. Then I told him that I don’t know why would Chinese giving pocket money on Chinese New Year. He told me he has no idea too, it is just a simple holiday but people making it complicated. He told me that even Hari Raya started to give “duit raya” also.

Seriously, nothing, I mean nothing in our daily life is not purposely commercialized. Everything is commercialized, even the birthday of Jesus has become the “the big fat red shirt guy coming your house to give your present” day.

So why wouldn’t I devote more time doing something more beneficial than to see things that has been twist for commercial usage???

Man of 30

SuccessfulRecently I read in the newspaper, it stated that in China, any guy who is 30 years old and has a vehicle, a roof, a job and a happy marriage are successful. While those who lack of any of the 4 mentioned are not successful.

But who on the earth to judge successful by whole anyway? I opened my dictionary and check the word “successful“.

Having succeeded or being marked by a favorable outcome

That’s the definition from the dictionary. So of all, successful means when you reach your goal, and your goal can be anything outside of those 3. Say, you want to bang 1000 women in your life, you did it, someone envy about it, it means you succeeded or are successful.

Somehow, those 4 has been and still are the main purpose of a man, or a son. Until this very day, people still envy of only those 4 items you see…

A few must visit sites

I have Google reader opened all the time while I’m online, subscribed to a few interesting blogs and sites that I really enjoy.

Digwp Screenshot
CSS Trick screenshot
As a WordPress theme developer, Digging into WP and CSS Tricks has been a good companion. Digging into WP write a comprehensive WP articles and how-to. However, CSS Tricks included a wide range of topic about online, xHTML and CSS. Smashing Magazine getting too much of useless listing site nowadays, I used to go to Smashing magazine for WP hacks.

Queness screenshot
Queness has the simplest JQuery tutorials of all time. I do believe that TutPlus is one good website. However, sometimes they have quite a hard to understand tutorials too.

Izismile
Last but not least, the entertainment – Izismile :) College humor update too slow, else I would follow them instead :)

P/S: Due to the slow loading of Twitter feed, I’d edited some function on the theme ;)