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 »

Wrapping text in table cells and DIV tags


I’ve been doing research on how to wrap texts. First solution I found was giving the CSS property word-wrap the value break-word:

word-wrap: break-word

But this didn’t work in Firefox.

Continue reading »

PHP: Dynamic inclusion tutorial


I’m posting this because I thought that it might help some people who want to structurize their website in a way that they can easily edit pages which contain contents and pages which contain the code of the layout, as we separate layout code from contents in dynamic inclusion.

This is for PHP beginners, but I assume that you have basic knowledge about PHP variables and form submission methods if you would read this tutorial.

Continue reading »