Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

ColstonBod-oy/poblacion

Repository files navigation

Setting Up CS Cart in Your Local Machine

A Documentation Guide for Setting up Cs Cart in your Local Machine

Prerequisites

Installation

Step 1

Clone the repository:

git clone https://github.com/kissartisan/poblacion

Make sure to put it inside the htdocs directory of XAMPP.

The htdocs directory can be found depending on the operating system:

  • Windows
C:\xampp\htdocs\
  • Linux
/opt/lampp/htdocs/
  • MacOS
/opt/lampp/htdocs/ or /Applications/XAMPP/xamppfiles/htdocs/

Step 2

I. Creating local files

Create the following files in the root of your project directory:

These are configuration files that you need for local setup.

In most applications, the config.local.php is some sort of an .env file for individual working environment variables.

II. Updating local files (if necessary)

.htaccess

  • Just make sure that the RewriteBase is set to your project's directory. The default is /poblacion but you can change it depending on the name of your project folder.
  • Screenshot: .htaccess

config.local.php

  • Update the db_* values based on your MySQL credentials
  • Screenshot: config.local.php
  • Update http_* & https_* values based on where your project reside
  • Screenshot: config.local.php

http_host should be localhost or localhost:8080 depending in your XAMPP port forwarding rules.

http_path should where your project resides. In the case above it is on /poblacion directory.

Step 3

Open your XAMPP application andrRun the MySQL and Apache Web Server:

Image of Xampp

Then navigate to http://localhost/phpmyadmin/:

phpmyadmin

Create a new database named poblacion_cscart then download and import the SQL file in this link. If the link does not exist kindly ask for assistance from Poblacion devs.

Admin Access in the Database

First go to the phpmyadmin and go to the poblacion_cscart database and search cscart_settings_objects and then search these two rows:

cscart_settings_objects

Change both of the value column to N

cscart_settings_objects

These cscart_settings_objects table updates are necessary to access the admin and vendor login page locally.

If it was set to Y, that means it only allow https connection to access those pages.

Step 4 For Linux Based System / MacOS

Before you go to this link http://localhost/<your_folder_name>/

You need to change the permissions in the folder that your file will reside by running this code

sudo chmod -R 777 <path_to_cscart_folder>/<cscart_folder_name>/*

Step 5 Setting Up the Links

After you've done the configurations you can go to http://localhost/<your_folder_name>/pobladmin.php and enter your credentials, then go to the storefront page in the Adminstration panel

storefront

and edit the url:

storefront

storefront

and if the navigation links is still redirecting you in the live site, you can edit the link on this page

links

links

Then go to the Main menu

links

Edit the links that redirects you in the live site for example the Become a Seller links

you can edit the url using the endpoint in the live site links

Step 6

Check this link http://localhost/<your_folder_name>/ and you should see the poblacion.ph website in your local machine

Additional Step

Initialize Git flow

After cloning the main repository, initialize git flow by running this command on the poblacion repository:

git flow init

After this initialize the name of the branches:

The branch name for bringing forth production releases: master

The branch name used for integration of the next release: develop

Then press enter for the rest of the supporting branches… []

Important Notes

  • The images/ folder is not included in the setup because its file size is too big. But, you can download the images in this link https://drive.google.com/drive/folders/1U9u6mIzTg-FhIhHw6kdAcMOrmEiOx58P?usp=sharing. Put it in your project's root directory and you should see the images coming through in your local setup.
  • If you are still setting up the application, you need delete the var/cache directory on some cases when the app is fetching from a different source.

Links

Helpfull Links Here

Debugging Links

Git Submodule Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5