After installing the ShopBite Plugin, you need to configure it to activate the gastronomy-specific functions and adapt them to your requirements.
Navigate to ShopBite > Settings in the administration:
https://Your-Storefront.de)https://Your-Storefront.de)| Field | Description | Example |
|---|---|---|
| Sales Channel | Select sales channel | "My Restaurant" |
| Day of Week | Day of the week (0=Sunday, 1=Monday, etc.) | 1 (Monday) |
| Opening Time | Opening time in HH:MM format | 11:00 |
| Closing Time | Closing time in HH:MM format | 22:00 |
| Closed | Mark day as closed | ✓ |
Monday: 11:00 - 22:00
Tuesday: 11:00 - 22:00
Wednesday: Closed
Thursday: 11:00 - 23:00
Friday: 11:00 - 00:00
Saturday: 12:00 - 00:00
Sunday: 12:00 - 22:00
For special occasions or seasonal changes:
| Field | Description | Example |
|---|---|---|
| Sales Channel | Select sales channel | "My Restaurant" |
| Date | Date of special opening | 24.12.2024 |
| Opening Time | Special opening time | 10:00 |
| Closing Time | Special closing time | 14:00 |
| Description | Optional description | "Christmas Eve - shortened hours" |
Business hours can be retrieved via the Store API:
# API Endpoint
GET /store-api/shopbite/business-hour
# Example Response
{
"data": [
{
"dayOfWeek": 1,
"openingTime": "11:00",
"closingTime": "22:00",
"salesChannelId": "019a36f224b0704fb6835914050392f4"
},
{
"dayOfWeek": 2,
"openingTime": "11:00",
"closingTime": "22:00",
"salesChannelId": "019a36f224b0704fb6835914050392f4"
}
]
}
| Field | Description | Example |
|---|---|---|
| Name | Name of the holiday | "Christmas" |
| Start Date | Beginning of closure | 24.12.2024 18:00 |
| End Date | End of closure | 26.12.2024 23:59 |
| Sales Channel | Select sales channel | "My Restaurant" |
| Recur Annually | Repeat holiday annually | ✓ |
| Description | Optional description | "Christmas holidays" |
New Year's Day: 01.01.2024 00:00 - 01.01.2024 23:59
Good Friday: 29.03.2024 00:00 - 29.03.2024 23:59
Easter Monday: 01.04.2024 00:00 - 01.04.2024 23:59
Labor Day: 01.05.2024 00:00 - 01.05.2024 23:59
Christmas: 24.12.2024 18:00 - 26.12.2024 23:59
For annually recurring holidays:
Holidays can be retrieved via the Store API:
# API Endpoint
GET /store-api/shopbite/holiday
# Example Response
{
"data": [
{
"id": "019a36f224b0704fb6835914050392f4",
"start": "2024-12-24T18:00:00+01:00",
"end": "2024-12-26T23:59:00+01:00",
"salesChannelId": "019a36f224b0704fb6835914050392f4",
"name": "Christmas",
"description": "Christmas holidays"
}
]
}
ShopBite supports different order types:
Configure the available order types under ShopBite > Checkout > Order Types
Set how far in advance orders can be placed:
The plugin supports different receipt print types for products:
Configure delivery time factors for products:
| Field | Value | Description |
|---|---|---|
| Name | ShopBite Storefront | Name of the integration |
| Description | API access for ShopBite | Description |
| Permissions | order:read, order:write, product:read | Required API permissions |
| Access Type | Admin Integration | Full API access |
For real-time updates:
| Event | URL | Description |
|---|---|---|
order.state.changed | https://Your-Storefront.de/api/webhooks/order-status | Order status changes |
order.created | https://Your-Storefront.de/api/webhooks/order-created | New orders |
product.changed | https://Your-Storefront.de/api/webhooks/product-changed | Product changes |
Configure CORS for the storefront:
# In .env or configuration
SHOPWARE_CORS_ALLOW_ORIGIN="https://Your-Storefront.de"
SHOPWARE_CORS_ALLOW_METHODS="GET, POST, PUT, DELETE, OPTIONS"
SHOPWARE_CORS_ALLOW_HEADERS="Authorization, Content-Type, sw-access-key"
-- Indexes for ShopBite tables
ALTER TABLE `shopbite_business_hour` ADD INDEX `idx_sales_channel` (`sales_channel_id`);
ALTER TABLE `shopbite_holiday` ADD INDEX `idx_sales_channel` (`sales_channel_id`);
-- Optimization for frequent queries
ALTER TABLE `shopbite_business_hour` ADD INDEX `idx_day_of_week` (`day_of_week`);
ALTER TABLE `shopbite_holiday` ADD INDEX `idx_date_range` (`start`, `end`);
Symptoms:
Solutions:
# Check API credentials
bin/console integration:list
# Check CORS settings
bin/console config:get Shopware.Core.SystemConfig.corsAllowOrigin
# Check firewall settings
sudo ufw status
Symptoms:
Solutions:
# Clear cache
bin/console cache:clear
# Check database
mysql -u shopware -p shopware -e "SELECT * FROM shopbite_business_hour;"
# Check Sales Channel ID
bin/console sales-channel:list
Symptoms:
Solutions:
# Check holiday data
mysql -u shopware -p shopware -e "SELECT * FROM shopbite_holiday;"
# Check time format
bin/console database:check-timezone
# Test API query
curl -X GET "https://Your-Domain.de/store-api/shopbite/holiday" -H "Authorization: Bearer YourToken"
Symptoms:
Solutions:
# Check custom fields
bin/console custom-field:set:list
# Clear plugin cache
bin/console plugin:refresh ShopBite
# Check checkout processor
bin/console debug:container --tag=shopware.checkout.cart.processor