A Documentation Guide for Setting up Cs Cart in your Local Machine
- PHP ^7.0
- XAMPP
Clone the repository:
git clone https://github.com/kissartisan/poblacionMake 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/
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.
.htaccess
- Just make sure that the
RewriteBaseis set to your project's directory. The default is/poblacionbut you can change it depending on the name of your project folder. - Screenshot:
config.local.php
- Update the
db_*values based on your MySQL credentials - Screenshot:
- Update
http_*&https_*values based on where your project reside - Screenshot:
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.
Open your XAMPP application andrRun the MySQL and Apache Web Server:
Then navigate to http://localhost/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.
First go to the phpmyadmin and go to the poblacion_cscart database and search cscart_settings_objects and then search these two rows:
Change both of the value column to N
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.
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>/*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
and edit the url:
and if the navigation links is still redirecting you in the live site, you can edit the link on this page
Then go to the Main menu
Edit the links that redirects you in the live site for example the Become a Seller
you can edit the url using the endpoint in the live site
Check this link http://localhost/<your_folder_name>/ and you should see the poblacion.ph website in your local machine
After cloning the main repository, initialize git flow by running this command on the poblacion repository:
git flow initAfter 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… []
- 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/cachedirectory on some cases when the app is fetching from a different source.
Helpfull Links Here
Debugging Links
Git Submodule Links














