Download the PHP package lyrasoft/shopgo without Composer
On this page you can find all versions of the php package lyrasoft/shopgo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package shopgo
LYRASOFT ShopGo Package
- Installation
- Seeders
- Global Settings
- Session
- Favorites Type
- Language Files
- CSS/JS
- Add Cart Button
- Register Admin Menu
- Frontend Available Routes
Installation
Install from composer
ShopGo dependents on lyrasoft/sequence and lyrasoft/favorite packages. Please read their README and configure them first.
Then copy files to project
Seeders
Add these files to resources/seeders/main.php
Add these types to category-seeder.php
Global Settings
Open /etc/packages/shopgo.php
, you can configure there settings:
After you configure the base settings, you should not change it after site release. And then you can run migtaiotns/seeders, all orders No and faker locale will use this setting.
Env
You can add SHOPGO_MPDF_FONT_DIR
to configure Invoice PDF fonts position.
In developing, provide Mac default font dir:
You can change this dir after deployed to server.
Session
As ShopGo may need to redirect to outside Payment service to process checkout, you must disable SameSite
cookie poilicy
and set secure
as TRUE
.
Favorites Type
ShopGo will auto install lyrasoft/favorite
and copy config file. You must add product
to allow_types
to allow
AJAX call.
Language Files
Add this line to admin & front middleware if you don't want to override languages:
Or run this command to copy languages files:
CSS/JS
ShopGo dependents on lyrasoft/favorite
, you must add these vendors to fusionfile.mjs
Then run this command to install npm vendors:
The ShopGo Scripts will auto-register in destinestion pages. But if you want, you can register it globally in FrontMiddleware
.
If you want ot make all JS alert as SweetAlert style, you can replace u.alert
at main.js
Add Cart Button
Currently ShopGo Beta has no cart button widget. You must add it to HTML manually.
You must includes these 2 attributes to make JS works:
[data-role=cart-button]
[data-role=cart-quantity]
Register Admin Menu
Edit resources/menu/admin/sidemenu.menu.php
Frontend Available Routes
product_list
product_item
my_wishlist
my_order_list
my_order_item