Zen Cart Customizations
Zen Cart Add Model Number For Attributes

I customized Zen Cart attributes to be able to add a model number for each attribute. Searching through the forums, I see many people were looking for this modification, but none had been written.
The problem was that the client had products of various sizes, all with different item numbers. When the order confirmation email was sent, the parent product item number was included, but the attribute item number that was purchased was not.
I modified code to be able to assign a model number (or item number, sku…) to each attribute created for a parent product. This number was added to the attributes code on the product info display page, throughout the checkout process, and in the order confirmation email. It was also added to display on the order history page.
The client had about 1000 attributes, so instead of manually editing each product in the admin tool, I exported all data into a spreadsheet so they could add all model numbers in place, and then wrote a script to import this new data. This saved the client many hours of data entry.
Export Zen Cart Customers
This script was coded to export Zen Cart customers. The client wanted a simple script to export all customers from the database. The admin tool output all data to the browser. A link was also included to download the data into Excel. Clicking the link generated an Excel file that automatically opened instead of having to save a text file and import the data into Excel.


