Git Product home page Git Product logo

laracom's Introduction

Build Status Scrutinizer Code Quality Code Intelligence Status codecov Fork Status Star Status Gitter chat FOSSA Status

Get discount on Digital Ocean

Sign-up with Digital Ocean and get $10 discount!

Laravel FREE E-Commerce Software

Features Provided

  • Products

  • Cart

  • Checkout

  • Categories

  • Customers

  • Orders

  • Payment

  • Couriers

  • Employees

  • To view more details of the features See full documentation

Simplified DOCKER setup

In your teminal, issue these commands

  • RUN docker-compose up -d --build
  • If your runtime is apple silicon, use docker-compose -f docker-compose-m1.yml up -d --build command
  • RUN docker exec -it app bash
  • Inside the container, run composer install && chmod -R 777 storage/ bootstrap/cache/
  • Inside the container, run php artisan migrate --seed
  • While inside the container, compile the assets with npm i && npm run dev
  • While inside the container, link the images php artisan storage:link
  • OPEN http://localhost:8000

Author

Jeff Simons Decena

Contributors

contributors

License

FOSSA Status

laracom's People

Contributors

arthurzanella avatar belguinan avatar daniyal-javani avatar dependabot-support avatar dependabot[bot] avatar enricoromeo avatar ermand avatar fossabot avatar haphazardly avatar hdvinnie avatar hsali avatar iammikek avatar ibonly avatar itailulu avatar jamieslome avatar jsdecena avatar justicegoh avatar k-yamasaki-zakisan avatar mannysoft avatar maras0830 avatar marpal71 avatar mugenzo avatar phannaly avatar philmarc avatar samuelmwangiw avatar sebbaum avatar shamspathan avatar snyk-bot avatar twocngdagz avatar ysknsid25 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laracom's Issues

Integrity constraint violation on deleting Product with images

i have just inserted one Product into Database and, if i add some images in the product edit screen, the app goes in crash:

I got this error message

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (scotchbox.product_images, CONSTRAINT product_images_product_id_foreign FOREIGN KEY (product_id) REFERENCES products (id)) (SQL: delete from products where id = 48)

From CreateProductImagesTable i tried to modify this column
$table->foreign('product_id')->references('id')->on('products')

to
$table->foreign('product_id')->references('id')->on('products')->onDelete('cascade');

After a "php artisan migrate:fresh", the issue should resolve.

Regards

ERROR: Installation

I started a fresh install but I am receiving 404 errors for files.
I have created the symlink (php artisan storage:link) for public/storage still no luck. Have I missed a step. Also the Installation link points to another fork for your project.

screen shot 2018-03-19 at 12 58 54

screen shot 2018-03-19 at 12 58 39

listRoles() method in EmployeeRepository returns empty collection

I'm not sure that it's really an issue but a get an empty collection from method listRoles() In EmployeeRepository

for now I replaced listRoles() with:

public function listRolesByEmployee(Employee $employee): Collection
{
return $employee->roles()->get();
}

kindly Regards

Issue: wrong categories assigned to "Newest" and "Featured"

Description
"Newest" and "Featured" categories are assigned to wrong ID's during initial seeding of the database.

This is the code from HomeController, that gets the categories based on statically assigned ID's and pushes them to front views:

public function index()
    {
        $category2 = $this->categoryRepo->findCategoryById(2);
        $category3 = $this->categoryRepo->findCategoryById(3);

        $newests = $category2->products;
        $features = $category3->products;


        return view('front.index', compact('newests', 'features', 'category2', 'category3'));
    }

but as the database is seeded by Faker including calling randomElement() method on an array of categories (database/factories/CategoryModelFactory.php)

$name = $faker->unique()->randomElement([
        'Newest',
        'Featured',
        'Gear',
        'Clothing',
        'Shoes',
        'Diapering',
        'Feeding',
        'Bath',
        'Toys',
        'Nursery',
        'Household',
        'Grocery'
    ]);

ID's of seeded categories will be different for each installation, e.g. in my case:
ID 2 is not "Newest", but "Diapering"
ID 3 is not "Featured", but "Household"

Probably these two root categories (Newest and Featured) can be moved to a static categories seeder, which currently seeds only "Uncategorized" at ID of 1? That would explain usage of static ID's of 2 and 3 in HomeController

feature request: product brand

Hello! First this project is awesome! I want to contribute.
My first suggestion is add product brand crud and associate with the product.

Search doesn't work

Hello,
I can't search on any controller/model
it looks laracom is using this module to make search query's

https://github.com/jarektkaczyk/eloquence/wiki/Base

"SQLSTATE[42000]: Syntax error or access violation: 1055 'laracom.products.sku' isn't in GROUP BY (SQL: select * from (select products.*, max(case when products.name = asd then 15 else 0 end + case when products.name like asd% then 5 else 0 end + case when products.name like %asd% then 1 else 0 end) as relevance from products where (products.name like %asd%) group by products.id) as products where relevance >= 0.25 order by relevance desc)

Issue: Images Not Displaying

Hi the images for products aren't displaying. I have ensured I have run "php artisan storage:link" the images have loaded correctly in to "storage/app/public/products/xxxxxxxx.jpg"

Console is reporting a 404 "Not Found"

Any ideas

screen shot 2018-03-20 at 19 50 24

syntax error, unexpected 'namespace' (T_NAMESPACE)

when we install laracom , i am getting following issues.can you help me?
C:\xampp\htdocs\development\priya>composer create-project jsdecena/laracom

In web.php line 20:

syntax error, unexpected 'namespace' (T_NAMESPACE)

PHP Parse error: syntax error, unexpected 'namespace' (T_NAMESPACE) in C:\xampp\htdocs\development\priya\laracom\routes\web.php on line 20
Script php artisan optimize handling the post-update-cmd event returned with error code 255

Feature Request: Upgrading to bootstrap 4.

Hi,
first of all big thank you. Very good project and very nice that it uses latest laravel.
Can you please give me a hint what would be the right way to upgrade to bootstrap 4.0 in front-end?

Products sale price in orders

Hello guys,
Nice project so far but I'm a bit perplexed on how you manage the products associated to an order.

Schema::create('order_product', function (Blueprint $table) {
$table->increments('id');
$table->integer('order_id')->unsigned()->index();
$table->foreign('order_id')->references('id')->on('orders');
$table->integer('product_id')->unsigned()->index();
$table->foreign('product_id')->references('id')->on('products');
$table->integer('quantity');
});

As you can see in the above migration, you are not saving the sales price of the single item so, if the product price changes, the previous orders will be affected.

Am I wrong or that's a big issue?

Cheers

database seeder has got a Error

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Sierra Leone' for key 'countries_name_unique' (SQL: insert into countries (name, iso,iso3, numcode, phonecode, status, updated_at, created_at) values (Sierra Leone, SWE, QAT, 8, 1, 1, 2018-06-23 12:11:13, 2018-06-23 12:11:13))
Hi. Every time I run php artisan migrate --seed this error appeared. sometimes country name is changed and error appeared

Stripe Intergration

Hi love your template. Do you have any intention on adding stripe as a payment gateway? Paypal in the UK use a different api system for online payments. and I can't set it up.

Thanks

Product Image alone not getting stored inside the products folders.

Hi i am trying to uploading some new items along with images in product section. Cover photo alone not getting stored in product folder but instead of that its getting stored inside XAMPP folder. At the same time image of the product are correctly stored inside the product folder.yeah i know u ll suggest me to try using homestead but im giving demo to college students through goDaddy shared hosting so kindly help me out.

Base table sku doesn't exist

Base table or view not found: 1146 Table 'my_database.sku' doesn't exist (SQL: select count(*) as aggregate from sku where sku = 123123)

Admin panel treeview

Hello,
After installing laracom i found that the admin left bar can't open the submenu
even if i try to click on ".treeview"

Should i hardcode it again ? or it's a bug?

feature: Roles choice in edit Employee

At the moment there is no way to add or remove a Role from an Employee.
An Admin employee cannot remove the admin role from another one.

I have a pr ready to submit:
As a part of a bigger enhancement this can be a first step to create a multi-role feature for Laracom.

Error on Registering

Hello, I get 500 Internal Server Error when trying to register on your live Laracom.
I haven't tried it on my localhost though.

Question... How would you implement Electronic Fund Payment, that when a client adds a product into a cart, instead of going to stripe payment. It just generates Payment code like #234561234. And a bank name, with the amount to be transfered?

Issue: Unable to delete product with associated images

Description:

When trying to delete a product having 1 or more images associated in product_images table.

SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (laracom.product_images, CONSTRAINT product_images_product_id_foreign FOREIGN KEY (product_id) REFERENCES products (id)) (SQL: delete from productswhereid = 49)

maybe add a cascade on delete in the migration file or a process to delete the associated entries in product_images first then remove its images in the products directory.

Delete cascade

Hello,
In databases it's great if you make the delete on cascade on all foreign keys,
for exemple if you make a new customer and a new address, once you destroy the customer; Addresses page doesnt work anymore, It throws an exception so you need to delete the address manually

Apply ACL

  • Create the Role / Permission CRUD
  • Apply to employees
  • Restrict access to certain pages

#68

Product attributes

At beginning I want to say that this is great work you made with laracom!

I noticed you start implemented product attributes. Do you have a roadmap when the feature will be finished?

Product page pagination not working

Please I found out that the product page pagination is not working.
when I select a category the products in the category are not paginated even though I can see that the code is implement but is not doing the work.
Please can you just check and resolve the issue.

Also the front page products too should be limited to say 12 items per New Arrivals and Featured Products

limit product in category page

i try to limit product per page in category page.

i can customize limit in search page.
return view('front.products.product-search', [
'products' => $this->productRepo->paginateArrayResults($products->all(), 10)
]);

how to limit product in category page?

paypal

hello,

how to configure paypal sandbox to test it from my localhost (http://localhost)?

i have an error

App \ Shop \ PaymentMethods \ Paypal \ Exceptions \ PaypalRequestError {"error":"invalid_client","error_description":"Client Authentication failed"}

Facing Issue in Installation

After Successfully migrate tables and run php artisan serve.
I am seeing this page. Can you rectify why I am seeing these issues

image

Feature Request: Make into package

Instead of shipping Laracom as a whole laravel app, it would make more sense to have it as a composer package. Then people have full freedom to build their ecommerce site as they want. Its also much easier for you/us to maintain.

Ill gladly help out on this.

Eloquence error

Why I have this error??

In ProviderRepository.php line 208:

Class 'Sofa\Eloquence\ServiceProvider' not found

Issue: Inconsistent currency labels

Description:
Currency labels are inconsistent throughout the project.
In many places they are hardcoded to PHP, for an example in admin/products/show.blade.php they are coded as <td>Php {{ $product->price }}</td>.

On this stage (unless there is a plan to support multiple currencies), currency name should be echoed as in admin/shared/products.blade.php <td>{{ config('cart.currency') }} {{ $product->price }}</td>

Quick search showed 8 results in 6 files:
admin/orders/list.blade.php
admin/orders/show.blade.php
admin/products/create.blade.php
admin/products/show.blade.php
admin/products/edit.blade.php
front/accounts.blade.php

This is quite easy to fix using find/replace in any modern editor (took me like 10 seconds on my local copy). I'm only a beginner when it comes to PHP tests and using github in general, so I'll just post it for now.

Admin access failure

Kindly advise concerning admin access, failing to access it.

Otherwise thank you for the great work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.