-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1a4a0ba
Showing
137 changed files
with
12,994 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
License for Your Online Shop | ||
|
||
Copyright 2015-2021 by Alberto Melchor <[email protected]> | ||
|
||
All Rights Reserved | ||
|
||
Permission to use, copy, modify, and distribute this software and its | ||
documentation for any purpose and without fee is hereby granted, | ||
provided that the above copyright notice appear in all copies and that | ||
both that copyright notice and this permission notice appear in | ||
supporting documentation. | ||
|
||
NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS | ||
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY | ||
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE | ||
OR PERFORMANCE OF THIS SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This software sends periodically data of its use to a central | ||
data system. Your online shop creators can get adventage of | ||
this information and improve the development process. | ||
This data also contains the http address of the site where | ||
the software has been installed. Software creators could also | ||
use this information to contact software users so they can | ||
also recieve personal assistance in case they wish so. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
![Your Online Shop](images/logotype.svg "Your Online Shop") | ||
|
||
---------------------------------------------------------------------- | ||
|
||
# Your Online Shop System V 3.3.1 | ||
|
||
## Live Demo | ||
|
||
Shop with sample products -> [Your Online Shop Demo Shop](https://youronlineshop.net/sample/) | ||
|
||
Admin -> (usr/password) webadmin/webadmin, productsadmin/productsadmin | ||
|
||
|
||
## About | ||
|
||
This is a dynamic web app (Single Page Application) for e-commerce. Backend is written in PHP. It uses Mysql database system. | ||
|
||
|
||
## Installation | ||
|
||
If you prefer we offer FREE YOUR ONLINE SHOP installation and hosting service: ask at our email. | ||
|
||
1. Upload the compressed file to your web server. | ||
2. Unpack it to the desired folder (All files are inside "yos" folder). | ||
3. Create a new mysql database. | ||
4. Edit database settings at: backend/includes/config.php. | ||
5. Run the app at the web browser and continue with the installation process. | ||
|
||
|
||
## Support | ||
|
||
Please write: [email protected] | ||
|
||
|
||
## Getting started | ||
|
||
Once Your Online Shop is installed you can open your browser at the corresponding url address. Lets log-in with some of the admin users to make changes: user **webadmin** for web content and **productsadmin** for catalog content. Other operations can be done by user **systemadmin**, and to check customer orders log-in with **ordersadmin**. | ||
|
||
Once editing some content press Intro or click outside of the editable area to save changes. | ||
|
||
To edit some features from the checkout process you should log in with systemadmin user and make an order as if you were a customer. Once you get to the checkout step you should be able to edit checkout options. | ||
|
||
Some other configuration can be done by editing file javascript/config.js. | ||
|
||
|
||
## Troubleshooting | ||
|
||
|
||
If the database connection is not working you may need to check settings at backend/includes/config.php. Also you may need to import the database content directly from the file backend/utils/database.php. | ||
|
||
If the products images can not be uploaded you may need to allow write permisions at folders catalog/images/big and catalog/images/small. | ||
|
||
If it doesn't admin to make changes you can try to copy backend/utils/htaccess file to the folder backend and rename it to ".htaccess". | ||
|
||
|
||
## Themes | ||
|
||
|
||
Y.O.S. system has a themes feature. You can select themes and styles at the **config.js** file. Themes files are inside folder themes/[theme path]/components. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
*************** | ||
* YOS Version * | ||
*************** | ||
|
||
3.3.1 13/08/2021 | ||
|
||
|
||
*********** | ||
* Support * | ||
*********** | ||
|
||
Please write: [email protected] | ||
|
||
|
||
********* | ||
* About * | ||
********* | ||
|
||
This is a dynamic web app (Single Page Application) for e-commerce. Backend is written in PHP. It uses Mysql database system. | ||
|
||
|
||
**************** | ||
* Installation * | ||
**************** | ||
|
||
If you prefer we offer FREE YOUR ONLINE SHOP installation and hosting service: ask at our email. | ||
|
||
1 - Upload the compressed file to your web server. | ||
2 - Unpack it to the desired folder (All files are inside "yos" folder). | ||
3 - Create a new mysql database. | ||
4 - Edit database settings at: backend/includes/config.php. | ||
5 - Run the app at the web browser and continue with the installation process. | ||
|
||
|
||
*********** | ||
* Support * | ||
*********** | ||
|
||
[email protected] | ||
|
||
|
||
******************* | ||
* Getting started * | ||
******************* | ||
|
||
Once Your Online Shop is installed you can open your browser at the corresponding url address. Lets log-in with some of the admin users to make changes: user webadmin for web content and productsadmin for catalog content. Other operations can be done by user systemadmin, and to check customer orders log-in with ordersadmin. | ||
|
||
Once editing some content press Intro or click outside of the editable area to save changes. | ||
|
||
To edit some features from the checkout process you should log in with systemadmin user and make an order as if you were a customer. Once you get to the checkout step you should be able to edit checkout options. | ||
|
||
Some other configuration can be done by editing file javascript/config.js. | ||
|
||
|
||
******************* | ||
* Troubleshooting * | ||
******************* | ||
|
||
If the database connection is not working you may need to check settings at backend/includes/config.php. Also you may need to import the database content directly from the file backend/utils/database.php. | ||
|
||
If the products images can not be uploaded you may need to allow write permisions at folders catalog/images/big and catalog/images/small. | ||
|
||
If it doesn't allow admin to make changes you can try to copy backend/utils/htaccess file to the folder backend and rename it to ".htaccess". | ||
|
||
|
||
********** | ||
* Themes * | ||
********** | ||
|
||
Y.O.S. system has a themes feature. You can select themes and styles at the config.js file. Themes files are inside folder themes/[theme path]/components. | ||
|
||
|
||
******** | ||
* More * | ||
******** | ||
|
||
Find us at http://www.youronlineshop.net/ for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
//DataBase | ||
define('DB_DATABASENAME', 'dbname'); | ||
define('DB_USERNAME', 'uname'); | ||
define('DB_USERPWD', 'pwd'); | ||
define('DB_HOST', 'localhost'); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
/* | ||
Table Names to constants. | ||
*/ | ||
|
||
$databaseTableNames=Node::db_gettables(); | ||
|
||
for ($i=0; $i<count($databaseTableNames); $i++) { | ||
define('TABLE_' . strtoupper($databaseTableNames[$i]), $databaseTableNames[$i]); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
/* | ||
Constants that have a default value | ||
*/ | ||
|
||
if (!defined('DB_HOST')) define('DB_HOST', 'localhost'); | ||
if (!defined('DB_SQLFILE')) define('DB_SQLFILE', 'utils/database.sql'); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
class FileManager{ | ||
function __construct() { | ||
$this->basePath="../catalog/images/"; | ||
$this->smallPath=$this->basePath . "small" . "/"; | ||
$this->bigPath=$this->basePath . "big" . "/"; | ||
$this->maxSize=2000000; | ||
} | ||
function uploadfile($myfile, $destFolder){ | ||
$target_file = $destFolder . basename($myfile["name"]); | ||
$uploadOk = 1; | ||
$imageFileType = pathinfo($target_file, PATHINFO_EXTENSION); | ||
|
||
// Check if image file is a actual image | ||
if (getimagesize($myfile["tmp_name"]) === false) { | ||
return "File is not an image."; | ||
} | ||
|
||
// Check file size | ||
if ($myfile["size"] > $this->maxSize) { | ||
return "Sorry, your file is too large. " . $myfile["size"]; | ||
} | ||
|
||
if (!move_uploaded_file($myfile["tmp_name"], $target_file)) { | ||
return "Sorry, there was an error uploading your file."; | ||
} | ||
return true; | ||
} | ||
} | ||
?> |
Oops, something went wrong.