Catzie.net Blog
Programming, Networking, and other Downloads by Catzie
 

OpenCart: Override Invoice ID


Edit: Seems like there’s something missing in the code I inserted. I only found out after further system testing. Will update this post when I feel like fixing it. :p

I’m taking an E-Commerce class (it’s my last school term!) and my group’s project in an online store that uses OpenCart, an open-source shopping cart software. Our professor wants us to have transaction numbers (invoice ID, in OpenCart) that are not simply the increment of the previous one (0001, 0002, 0003, …).

It took me long to figure out how to edit the invoice ID that OpenCart generates. In the settings page of the admin area we can only edit the prefix (default is INV) and the starting invoice ID (default is 001). When I change either of the two fields the invoice ID that is generated doesn’t change at all. After some research I found out that

Continue reading »

JavaScript: Setting the selected dropdown option by its index number


Long time no new entry. :) Internship is keeping me very busy. In this blog entry I’ll show you how to select a drop down option by specifying its index number.

Continue reading »

Fix PNG images with transparency in older Windows Internet Explorer versions


I wonder if this post would still get hits from search engine result pages. So many other web pages feature this fix for IE 5.5 and IE 6 web browser, that the Catzie.net Blog’s entry might just show up on the… 10th page or so. lol.

Anyways, I’m still posting this, in case there are some visitors browsing around who need help with properly displaying the transparency of .PNG images in IE5.5 and IE6. This also helps me easily find the needed code to fix the display. I need it from time to time when I design website layouts. :)

Tip: Most of us are probably using the newer versions of Internet Explorer. I suggest that you download and use the IE Tester. It’s a web browser that lets you see how web pages render in different versions of IE – 5.5, 6, 7, and 8.

I assume that as you read this, you are using Internet Explorer version 5.5, or the version 5.5 tab on the IE Tester.

Continue reading »

Inline Frame that automatically adjusts its height for the source page


Last year, I was working on our MULPROJ layout, and the type of layout I was making needed an iframe whose height is auto resized according to the source page’s content. This means that there should be no vertical scrollbar in the iframe, it simply adjusts itself vertically.

I thought that it wasn’t possible to do this but I found a JavaScript code that can do the trick, and I just want to share it with you. ;)

Continue reading »

IE Tester – see how your web pages look in different versions of IE (Windows Internet Explorer)


(Post taken from my old blog, Poochycat.com)

Ahh, it seems that I posted this in our MULPROJ days. ^_^

Yesterday I woke up at 6AM. I wanted to go on with my sleep, but I couldn’t. I suddenly remembered that I haven’t tested in different versions of Internet Explorer the layout design of the website I had to submit for MULPROJ that day. It’s like God woke me up to remind me that I had to test the layout. xD

Continue reading »