Category Archives: eCommerce

eCommerce web applications including but not limited to: Magento, OS Commerce, and Zen Cart.

Zen Cart Override Structure

Zencart has a great override system. I’m currently setting up a Zen Cart website and loving this override system. The only improvement I see that is REALLY NEEDED is an ADMIN OVERRIDE. That would be terrific. Until then here’s a schematic of the current Zen Cart override system.
Zen Cart Override Diagram

Related Posts

ZenCart update from 1.3.8 to 1.3.9a FAILURE

Anybody else update from 1.3.8 to 1.3.9 and you cannot log into the admin anymore. Just an infinite loop of typing your password over and over again to end up back at the login screen with the username and password boxes cleared. When you type the password incorrect, it lets you know, but when it’s correct you’re stuck in an infinite loop of trying to log in over and over again.

Here’s what we do to fix this problem.

Stop using chrome because it’s horrible caching system messes me up developing 100% of the time! THANKS GOOGLE!

Related Posts

Zen-Cart html_output.php overrides

Zen cart’s forums and wiki are great, just somewhat of a pain in the ass, so here’s what i found that is useful, and i may use in the future too.

bunyip
Posts: 2,925
Re: Overriding functions/html_output.php
There is no in-built override system for files in the includes/functions folder, but I recentyly figured out a method to do it by utilizing the override capabilities within the autoload/init_includes system.

First, make a copy of includes/init_includes/init_general_functions.php and save it in the includes/init_includes/overrides/ folder. Then edit that file to modify the loading of the html_output.php file so that it calls the file from an overrides folder like:
Code:
require(DIR_WS_FUNCTIONS . ‘overrides/html_output.php’);
Then you can create your new folder includes/functions/overrides/, and put an edited copy of html_output in there. This way you can edit or add functions within html_output.php and not have to worry about duplicate functions warnings, or about your changes getting overwritten during an upgrade.

You can use a similar method for overriding anything in the functions or classes folders, which don’t have an inherent override capability.
__________________
Neville
An assumption is what you arrive at when you get tired of thinking…
www.customcartmods.com

Related Posts

Moving a Zen Cart Installation

Here’s how I moved my Zen Cart installation to a sub directory.

1.) Create a sub directory on your site via: FTP or however you know to.

2.) Move all files of your Zen-Cart installation into your sub directory.

3.) Edit 2 configuration files of your zen-cart.

  • /includes/configure.php
  • /admin/includes/configure.php

In /includes/configure.php you want to edit:

  • DIR_WS_CATALOG
  • DIR_WS_HTTPS_CATALOG
  • DIR_FS_CATALOG
  • DIR_FS_SQL_CACHE

In /admin/includes/configure.php you want to edit:

  • DIR_WS_ADMIN
  • DIR_WS_CATALOG
  • DIR_WS_HTTPS_ADMIN
  • DIR_WS_HTTPS_CATALOG
  • DIR_FS_ADMIN
  • DIR_FS_CATALOG

In both of these files you simply want to add your <subdirectory> followed by a forward slash /

NOTE: All directories should not have a leading slash / and SHOULD ALL have a trailing /
example:

define(‘HTTP_SERVER’, ‘http://192.168.1.1/’);

define(‘HTTP_SERVER’, ‘http://www.example.com/’);

define(‘DIR_WS_ADMIN’, ‘shopping-cart/admin/’);

4.) Now you need to access your database via: phpMyAdmin or NaviCat

In your Zen Cart database you want to edit the configuration table in the following fields:

  • Log Destination – STORE_PAGE_PARSE_TIME_LOG
  • Session Directory – SESSION_WRITE_DIRECTORY

Use the following utility if you don’t know how to do step4:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=82

This worked great for me.
Please comment here if you try this or have any questions.
Thank you.

Related Posts

//beconfused » Blog Archive » How to solve ‘You do not have sufficient permissions to access this page.’ in WordPress

Posted from Diigo. The rest of my favorite links are here.

Zen Cart Product Database Diagram

I Remade this diagram so i can read it on an 8×11 printer. 🙂 Enjoy

Zen Cart Product Database Diagram
Diagram of Product flow in the ZenCart Database

Magento Dataflow Charting

Making basic actions in the admin interface of magento here’s 5 queries that are executed, just 5 of more than 50 queries.
Basic Magento Database Pull