Zen Cart modifications log
Pre-ordering
- Went to Administration > Configuration > Stock and set "Allow checkout" to true and "Show 'Sold Out' image in place of 'Add to Cart'" to true in order to allow customers to pre-order out-of-stock products
- Went to Administration > Configuration > Stock and set "Product's status when out of stock" to true in order to prevent a product from being disabled (removed from the catalog) when the last one was ordered
- Opened includes\templates\template_default\templates\tpl_product_info_display.php and commented out the "Reviews button and count" section.
- Opened includes\templates\template_default\templates\tpl_product_info_display.php and looked for the "Product details list" section, and replaced the line
echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n";
with
echo (($flag_show_product_info_quantity == 1) ? '<li>' . (($products_quantity > 0) ? $products_quantity . TEXT_PRODUCT_QUANTITY : 'This product is out of stock.' ) . '</li>' : '') . "\n";
This replaces the "0 Units in Stock" message with "This product is out of stock." when the quantity hits 0.
- Opened … and looked for the create_add_products() function, and the following code (not including <?php and ?> tags):
if ($stock_values->RecordCount() > 0) { // do not decrement quantities if products_attributes_filename exists if ((DOWNLOAD_ENABLED != 'true') || $stock_values->fields['product_is_always_free_shipping'] == 2 || (!$stock_values->fields['products_attributes_filename']) ) { $stock_left = $stock_values->fields['products_quantity'] - $this->products[$i]['qty']; $this->products[$i]['stock_reduce'] = $this->products[$i]['qty']; } else { $stock_left = $stock_values->fields['products_quantity']; }
Right after that I inserted (not including <?php and ?> tags):
/** Adjust the quantity level if it's under 0 **/ if ($stock_left < 0) $stock_left = 0;
XML integration with Endicia
….
Upsells at checkout
- Installed modules Cross Sell and Cart Upsell/CrossSell on Shopping-Cart Page.
Other modifications
- ….
page_revision: 8, last_edited: 1186600486|%e %b %Y, %H:%M %Z (%O ago)





