shopperlabs / shopper Goto Github PK
View Code? Open in Web Editor NEWHeadless e-commerce administration built with Laravel to create and manage online store.
Home Page: https://laravelshopper.dev
License: MIT License
Headless e-commerce administration built with Laravel to create and manage online store.
Home Page: https://laravelshopper.dev
License: MIT License
Hello,
On brands and categories, Drag & Drop functionality not working, image is not showing
I made a small video: https://nurmuhammet.com/Record.mp4
in fresh laravel installation
PS D:\xampp\htdocs\shopper\backend> composer require shopper/framework --with-dependencies
./composer.json has been updated
Running composer update shopper/framework --with-dependencies
Loading composer repositories with package information
Dependency laravel/framework is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency mockery/mockery is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency guzzlehttp/guzzle is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Dependency phpunit/phpunit is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- shopper/framework[v0.0.1, ..., v0.0.26] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- shopper/framework[v1.0, ..., v1.0.4] require illuminate/database ^8.80|^9.0 -> found illuminate/database[v8.80.0, ..., v8.83.27, v9.0.0, ..., v9.52.15] but these were not loaded, likely because it conflicts with another require.
- shopper/framework[v1.0.5, ..., v1.0.6] require illuminate/database ^9.0 -> found illuminate/database[v9.0.0, ..., v9.52.15] but these were not loaded, likely because it conflicts with another require.
- shopper/framework[v1.0.7, ..., v1.2] require illuminate/database ^8.0|^9.0 -> found illuminate/database[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.15] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires shopper/framework * -> satisfiable by shopper/framework[v0.0.1, ..., v0.0.26, v1.0, ..., v1.2].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require shopper/framework:*" to figure out if any version is installable, or "composer require shopper/framework:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
"require": {
"php": "^8.1",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
The dashboard navbar is fixed but transparent, sort of floats on top of everything. See the user's name section.
Probably this div,
<div class="sticky top-0 z-10 shrink-0 flex h-16 bg-white dark:bg-secondary-900 md:bg-transparent md:dark:bg-transparent backdrop-filter backdrop-blur-md shadow md:shadow-none md:py-4 md:h-auto border-b border-transparent md:border-secondary-200 dark:border-secondary-700"> ... </div>
I'm testing Shopper and faced troubles to setting a price for a product through the dashboard. I tried setting the price to 72.99 (seventy-two and ninety-nine cents) and saved the product.
But when I checked the product on the catalog list the price was like "0.73".
Then I tried to set the price in another format like 7299 and I got it.
But the format doesn't seem right in the price amount field, it's like the number is "7,299" (seven thousand, two hundred and ninety-nine), for non-programmers this is hard to figure out.
My suggestion is to apply a mask to these fields to force the price to be defined in cents.
When trying to reach https://laravelshopper.io/documentation it redirects to to https://docs.laravelshopper.io/
It occurs when running
npm run dev
During installation.
`
ERROR in ./resources/css/app.css
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
Error: Cannot find module '@tailwindcss/line-clamp'
Require stack:
1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
`
Laravel : ^8.0
php : PHP 7.4.16 (cli)
Reproduce the issues :
1 . installing fresh laravel 8
composer create-project laravel/laravel:^8.0 shopper
2. setting up .env file
3. Installing shopper package :
composer require shopper/framework --with-dependencies
After the installation is done , this error appears:
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
PHP Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in C:\projects\shopper\vendor\shopper\framework\src\Helpers\helpers.php on line 183
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in C:\projects\shopper\vendor\shopper\framework\src\Helpers\helpers.php on line 183
Just after installing on a brand new Laravel project following the steps in the documentation I get a 500 error.
[Wed Aug 04 00:58:05.056772 2021] [php:notice] [pid 1119] [client 192.168.1.231:61838] PHP Fatal error: Uncaught Error: Call to a member function hasRole() on null in /var/www/laravelshopper/vendor/shopper/framework/src/Exceptions/ShopperExceptionHandler.php:36\nStack trace:\n#0 /var/www/laravelshopper/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(119): Shopper\Framework\Exceptions\ShopperExceptionHandler->render()\n#1 /var/www/laravelshopper/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(96): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()\n#2 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()\n#3 {main}\n thrown in /var/www/laravelshopper/vendor/shopper/framework/src/Exceptions/ShopperExceptionHandler.php on line 36
Hi, nice project!
Is it possible to replace/remove existing controllers / live wire components or routes e.g. to use this as a marketplace by adding additional logic?
Hi.
I'm getting Forbidden after done following every steps in Document.
When I tried to access the Shopper Dashboard through http://localhost/shopper, it's returned Forbidden .
What have I done wrong, is there anyway to fix it?.
Thank you.
PHP_VERSION: "8.1.18"
LARAVEL_VERSION: "9.52.7"
SHOPPER_VERSION: "1.0"
when i launch php artisan shopper:install
I got this error repeatedly
TypeError
mb_strpos(): Argument #3 ($offset) must be of type int, bool given
at vendor/shopper/framework/src/Helpers/helpers.php:74
70▕ }
71▕
72▕ $envKey = mb_strtoupper($envKey);
73▕ $keyPosition = mb_strpos($str, "{$envKey}=");
➜ 74▕ $endOfLinePosition = mb_strpos($str, "\n", $keyPosition);
75▕ $oldLine = mb_substr($str, $keyPosition, $endOfLinePosition - $keyPosition);
76▕ $space = mb_strpos($value, ' ');
77▕ $envValue = $space === false ? $value : '"' . $value . '"';
78▕
Apparently the mr_strpose sets the variable $envKey to false if it is not found in the string $str.
Yet in the following line we are using it anyway in the third argument which causes the error, because it expects an int.
when i want to select all product in cataloge table i get this error : Undefined property: stdClass::$key
in the following image is my table
in the following is when i try to select a product (i try to select just one but i get all the products selected)
but when i click the select all checkbox i get this error
When use to create the admin command
SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "gender" violates not-null constraint
Hi, In a new installation of Laravel 9, during the shopper:install
I get an error in publishing the views.
Can't locate path: <C:\laragon\www\laravelshopper\vendor\shopper\framework\src\Providers\/../resources/views>
The installation continues and the other steps are successful but if I visit the address /shopper I get a Forbidden error.
I'm on Windows with Laragon and I think I've followed all the steps in the documentation :-) What happens?
Hi, thank you for this package.
I am getting an error. When we create any stuff like product, brand, or category, etc. It is being created but the Save button keeps rolling infinitely. Product is also stored in database. The error is
[14:51:45] LOG.error: Typed property Shopper\Framework\Http\Livewire\Products\Create::$quantity must not be accessed before initialization {"userId":1,"exception":{}}
Could you please reply on how to fix this error?
Thank you in advance.
When trix-editor is active on a page it keeps flickering and changes focus to the trix-editor textarea input and thereby you can update other inputs on the page. a typical example is the about textarea at the general settings page
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require abdelhamiderrahmouni/shopper-framework:*" to figure out if any version is installable, or "composer require abdelhamiderrahmouni/shopper-framework:^2.1" if you know which you need.
I had this error pop up for me when i tried to edit my products
production. ERROR: Cannot assign int to property Shopper\Framework\Http\Livewire\Products\Form\Shipping::$backorder of type bool {"view":{"view":"***/vendor/shopper/framework/resources/views/livewire/products/edit.blade.php","data":[]},"userId":1,"exception":"[object] (Spatie\\LaravelIgnition\\Exceptions\\ViewException(code: 0):
Cannot assign int to property Shopper\\Framework\\Http\\Livewire\\Products\\Form\\Shipping::$backorder of type bool at ***/vendor/shopper/framework/src/Http/Livewire/Products/Form/Shipping.php:27)
When updating inventory we have this error $description must not be accessed before initialization
When I attempt to install, I'm receiving the following errors preventing me from installing the package
PHP 8.0
laravel/framework (v8.71.0)
shopper/framework (v0.0.18)
composer create-project --prefer-dist laravel/laravel laravel-shopper
composer require shopper/framework
PHP Version: 8.0.18
Laravel Version: 9.12.2
Database: MySQL 8
Browser: Brave
I set up the test project using the instructions here
@mckenziearts your laravelshopper.io domain expired about 2 weeks ago. Just making sure you're aware. The website is not viewable there, but laravelshopper.dev seems to work.
Hi!
It's not a specific Shopper bug, but just to report a problem on the developer website.
The website https://laravelshopper.dev/requirements is broken. All internal pages respond with 500 http error.
Hi I'm trying to install shopper on a fresh install of the following
But When I run composer require shopper/framework --with-dependencies
I get this error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- shopper/framework[v0.0.1, ..., v0.0.26] require illuminate/support ^8.0 -> found illuminate/support[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- shopper/framework[v1.0, ..., v1.0.4] require illuminate/database ^8.80|^9.0 -> found illuminate/database[v8.80.0, ..., v8.83.27, v9.0.0, ..., v9.52.9] but these were not loaded, likely because it conflicts with another require.
- shopper/framework[v1.0.5, ..., v1.0.6] require illuminate/database ^9.0 -> found illuminate/database[v9.0.0, ..., v9.52.9] but these were not loaded, likely because it conflicts with another require.
- shopper/framework[v1.0.7, ..., v1.1.2] require illuminate/database ^8.0|^9.0 -> found illuminate/database[v8.0.0, ..., v8.83.27, v9.0.0, ..., v9.52.9] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires shopper/framework * -> satisfiable by shopper/framework[v0.0.1, ..., v0.0.26, v1.0, ..., v1.1.2].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require shopper/framework:*" to figure out if any version is installable, or "composer require shopper/framework:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
This is my php ini
;extension=ldap
extension=curl
;extension=ffi
;extension=ftp
extension=fileinfo
;extension=gd
extension=gettext
;extension=gmp
extension=intl
;extension=imap
extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
;extension=oci8_19 ; Use with Oracle Database 19 Instant Client
;extension=odbc
;extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
extension=pdo_odbc
extension=pdo_pgsql
extension=pdo_sqlite
extension=pgsql
;extension=shmop
; The MIBS data available in the PHP distribution must be installed.
; See https://www.php.net/manual/en/snmp.installation.php
;extension=snmp
;extension=soap
extension=sockets
;extension=sodium
;extension=sqlite3
;extension=tidy
extension=xsl
;extension=zip
;zend_extension=opcache
I don't understand the error. I tried this solution #154 (comment)
As I write on Twitter, update your project to the latest version of the wireui to fix the security issue
https://twitter.com/ph7jack/status/1525909343744434176
Hi Arthur,
I like the Laravel shopper 2 and installed the framework successfully today. I'm not able to login the backend system
after installation setup, I have followed the commands, while creating admin user through artisan i have got an error
Call to undefined method App\Models\User::assignRole()
Please help..
Hello there,
First of all congratulations on the beta release of the new Laravel Shopper package!
This version is miles ahead of the last version of the framework and provides an immense value compared to existing solutions.
I decided to do a proper beta test of all the features and came across several small issues.
While I am leaving for vacation tommorow I might be able to create a pull request next week that tries to fix the below issues.
The newest version of Laravel (8.40.x) uses guzzlehttp/guzzle version ^7.0.1 out of the box which causes an error when trying to install the package. Reverting back to guzzlehttp/guzzle version ^6.5.5 fixed this issue for me.
As described in issue #45 there is an installation error when installing the beta into a new Laravel project. When the package is succesfully installed into a new project the auto-load fails. Due to this error it is not possible to execute the installer command. I fixed this issue by proving a fallback value to the prefix method as illustrated in the below image.
While not a big issue, it is currently not possible to publish all the shopper vendor files. The output of the php artisan shopper:publish command can be seen below. However when manually using the normal php artisan vendor:publish command and selecting the tags shopper-config, shopper-lang and shopper-seeders it works succesfully.
The Livewire UI Modal is not working within a fresh Laravel Shopper installation. Due to this, it is currently impossible to execute the following tasks (the button does not trigger the modal):
In comparison the default modals e.g. Two Factor Authentication does work. It might be smart to use livewire-ui/modal v.1.0.0 instead of the ^v.0.1.5 version as there are several improvements and a stable release.
When creating a new product I get the following error message:
Handling Error - Typed property Shopper\Framework\Http\Livewire\Products\Create::$defaultChannel must not be accessed before initialization
This error message appears despite having added a default location during the onboarding. I have looked through the application but I did not manage to find a place to create a default channel. When refreshing the page, the product is created but the available stock is not persisted.
Some pages are not Mobile responsive, The cards over lab to the right on mobile.
Create Product,
Create Brands,
Create Collection
Create Categories,
Hi there guys,
So I see that about the last 4 months you used the source for the MailEclipse package in the framework, I know this as it uses my package that allows the actual thing to function :) Which is totally cool that others are using it.
I totally understand that we all make use of others code, but I do acknowledge the source of my code if I have to make use of someone else's source code. I am sure Yassine would agree on this. (A point in case is that of a similar situation of the canvas editor using the same code as themsaid's code and not initially crediting him for the base code)
I do think that it would be the nice thing to do is acknowledge in the head of the actual files that use the same source code, not much was changed, so it wasn't new code. I do know and see that some was adjusted for the use with the Livewire stack. But you more than likely could have overridden the UI and extended. (Or opened an issue and I could have helped 😃)
It would be great again if you could at least acknowledge the source of that code as it would mean that the framework does actually become questionable as to how much more is used.
Please understand that this is meant in the best way possible to keep respect in the open source community as I know that everyone put's quite a bit of time in maintaining packages.
/cc @Qoraiche
Hi,
I create product but error: Attempt to read property "id" on null
How can fix it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.