Zen Cart Rule #3: Don’t Over-Prepare

 hints, php, troubleshoot, zen-cart  Comments Off on Zen Cart Rule #3: Don’t Over-Prepare
Oct 312015
 

When you’re performing database manipulations, it’s important to prepare your textual input so that there aren’t any stray single- (‘) or double-quotes  (“) that will wreck havoc with your MySQL queries.  Zen Cart provides methods (the functions zen_db_input and $db->prepare_input) that will help, but you need to have a plan for what method you’re going […]

Zen Cart Rule #2: Additional Images’ Names

 hints, troubleshoot, zen-cart  Comments Off on Zen Cart Rule #2: Additional Images’ Names
Sep 292015
 

From “Animal Farm”, by George Orwell: All animals are equal, but some are more equal than others. You’ve got your Zen Cart set up and have been placing all your products’ images in the base images’ folder (/images). It’s getting hard to maintain all those images in a single folder (and it’s surely increasing your […]

Zen Cart Rule #1: Shipping Module Names

 hints, php, troubleshoot, zen-cart  Comments Off on Zen Cart Rule #1: Shipping Module Names
Aug 282015
 

There are rules everywhere.  In the kitchen, my #1 rule is “Never try to catch a falling knife“; it apparently applies to investments, too!  In Zen Cart, my current #1 rule (having spent an inordinate amount of time debugging its misuse) is “Never use an underscore (_) in a shipping module’s name“. A shipping module […]