Home
Welcome, Guest -
Can the sample data be loaded into zenCart after installation
  • Page:
  • 1

Can the sample data be loaded into zenCart after installation
Facebook Twitter Delicious Digg FriendFeed Linkedin Reddit Stumbleupon MySpace Technorati Blogger Wordpress

Can the sample data be loaded into zenCart after installation 3 years, 2 months ago #63

I have worked with zenCart now for a number of years and thought that importing the sample database would be more troublesome than it is worth. Now that I have zenCart setup I am running into some issues and am not certain if it is incorrect category and product creation or some other cause. For troubleshooting purposes I have decided that having the sample database installed would be helpful.
However, I have already setup up zenCart without it. Is it possible to run the zencart_demo.sql.php program after installation, and if so, how.
Thanks!
Jim

Can the sample data be loaded into zenCart after installation 3 years, 2 months ago #134

I have worked with zenCart now for a number of years and thought that importing the sample database would be more troublesome than it is worth. Now that I have zenCart setup I am running into some issues and am not certain if it is incorrect category and product creation or some other cause. For troubleshooting purposes I have decided that having the sample database installed would be helpful.
However, I have already setup up zenCart without it. Is it possible to run the zencart_demo.sql.php program after installation, and if so, how.
Thanks!
Jim

Can the sample data be loaded into zenCart after installation 3 years, 2 months ago #135

  • And
  • OFFLINE
  • Administrator
  • Posts: 21
Try the next:

Create the file db.php in the root of your site.
Put next code into the file

<?php

// Set flag that this is a parent file
define( '_JEXEC', 1 );

define('JPATH_BASE', dirname(__FILE__) );

define( 'DS', DIRECTORY_SEPARATOR );

require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$db =& JFactory::getDBO();

include('zencart_demo.sql.php');


Put the file zencart_demo.sql.php ito the root directory as well.

Call db.php - yoursite.com/db.php

P.S. Please backup the database before calling db.php!!!
  • Page:
  • 1
Time to create page: 0.24 seconds