PHP

ZenCart Inventory Report – Updated

10 March 2007

Thanks to Ron for posting a bug back on the Zencart forums about my Zencart Inventory Report Fixed… download… enjoy.

Read the full article →

PHP Error – Parse error: syntax error, unexpected $end in

23 February 2007

Parse error: syntax error, unexpected $end in … on line … Don’t you love it when the line number indicated for an error message is the last line in the file which obviously has no error? I spent twenty minutes on this one last night. Check for unmatched braces, brackets, parentheses or PHP tags. Nope. [...]

Read the full article →

Use PHP Substr() and Strpos() to Split a String

30 January 2007

To split a variable $act like: $act = ‘coupon:edit’; $act = ‘coupon:delete’; $method = substr($act, strpos($act, ‘:’)+1);

Read the full article →

PHP Register_Globals and Register_Long_Arrays

9 January 2007

After upgrading several servers to PHP5 a few older versions of popular applications started giving odd errors. Register_globals has been configured off by default for security reasons since early PHP4. Applications that rely on register_globals all had .htaccess files enabling it for the subdirectory only. The errors we were seeing were similar though, data didn’t [...]

Read the full article →

ZenCart Inventory Report

29 November 2006

Here’s a simple admin report for ZenCart that will generate an inventory report with per product totals and a report total. The report may be paginated or generated over the whole catalog. The report was created by modifying the ZenCart default Products Viewed report. It was created from the ZenCart v1.2x source but has been [...]

Read the full article →

ZenCart Products ID Search

20 October 2006

The ZenCart admin does not allow searching for products by the products_id field. This is the field assigned internally to each product as it is entered by ZenCart itself. Using the Paypal Session Viewer (updated v2 here) to debug recent Paypal issues for a client, only shows the products_id ordered without any additional product information. [...]

Read the full article →

ZenCart Simple Attributes Stock Tracking

12 June 2006

I developed a quantity by attribute modification for ZenCart for a client about six months ago. It has been working very well for them, but it only supports simple attributes. Size OR color OR fabric not size AND color or size AND fabric. The complexity and time involved with maintaining such a detailed inventory of [...]

Read the full article →

ZenCart Sales Report State Filter

5 June 2006

The ZenCart Sales Report contribution allows a site owner to easily and quickly generate sales reports with many different filters. The one missing filter was a state or local zone filter. This filter would be useful for figuring out total local sales for state sales tax purposes. I have updated the contribution to include this [...]

Read the full article →

ZenCart Shipping and Payment Modules For Development Testing

25 May 2006

Testing the final steps of the order process on a ZenCart can be a pain as you must repeat the steps over and over; selecting a shipping method and entering in payment information. With these two modules all orders from a configurable list of IPs have access to an additional shipping method and payment option [...]

Read the full article →

DHL Shipping Automation For ZenCart

19 May 2006

DHL EasyShip allows you to easily automate shipping processes. EasyShip allows a user to weigh a package, supply destination information and print a pre-paid package slip. The EasyShip tools communicate with DHL’s servers over the Internet to rate and purchase the service and can notify them a local pickup is ready. The system can also [...]

Read the full article →